Skip to main content

Video and Image optimizer

Project description

Optilibre

Optilibre is a simple python program to automatically optimize video and images files using ffmpeg and other image optimizers. See Supported formats to have a list of supported file format you can convert to/from.

Official repo : https://gitlab.com/daufinsyd/optilibre

Installation

Simply install it using pip:

pip3 install optilibre

Usage

Copy the optilibre.example.conf to optilibre.conf and change the values according to your need.

optilibre optimize --config /path/to/opilibre.conf

You can find a systemd service and timer in systemd folder, which you can copy to /etc/systemd/system/ .

Requirements

See Supported formats .

Configuration

Copy and edit optilibre.example.conf to optilibre.conf . For each folder you want to process, create a new entry as shown in the example file.

You can put the configuration of a section in another optilibre.toml configuration file (see optiimage.example.toml and optivideo.example.toml for an example) by referencing it in optilibre.conf.

Video

  • The directive [optivideo] configure the video encoder.
  • The directive [optivideo.meta] defines which meta args should ffmpeg use.
  • The directive [optivideo.audio] defines which codec should ffmpeg use to audio.
  • The directive [optivideo.video] defines which codec should ffmpeg use to video.
  • The directive [optivideo.CODEC] defines a list of options for ffmpeg to be passed through. See man ffmpeg.

Image

  • The directive [optiimage] configure the image encoder.
  • The directive [optiimage.CODEC] defines a list of options for the image encoder to be passed through. See man <image_encoder>.

Supported formats

Video

  • any -> h264 (requires ffmpeg with libx264 encoder)
  • any -> h265 (requires ffmpeg with libx265 encoder)

Images

  • jpeg -> jpeg (requires jpegoptim)
  • any jpeg -> jpeg-xl (requires cjxl)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optilibre-2.1.1.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optilibre-2.1.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file optilibre-2.1.1.tar.gz.

File metadata

  • Download URL: optilibre-2.1.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for optilibre-2.1.1.tar.gz
Algorithm Hash digest
SHA256 45082f04e49928394c2a642407e7f1b410a6483b7730713f4794e00b2adaa1fd
MD5 643b2cecdf85133921fe1a85c3f7ab1c
BLAKE2b-256 3606fc0bb5c6c9d25a8bee465d5989544d0afd1a749049cc37c4851db8caac05

See more details on using hashes here.

File details

Details for the file optilibre-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: optilibre-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for optilibre-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 509b97154d09b8e6c836f4e0e8b09692842515078db212aa5e7a708b82f6935d
MD5 f29eff9cc2b822d1e129cfc63a8c804c
BLAKE2b-256 2a3cabeab979e04a7fd091cfa0aab3f06170ee48a441173e40d2603435e669f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page