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.0.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.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optilibre-2.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ffc8134c534f50ec662c762397a8c8ea9acfc33d506ea2e20922d2b619d0ee3b
MD5 1dadb524e62c1cab0b577d52ce596625
BLAKE2b-256 84f8786ebe6e19609177d59e2e56df25a51e337644092510d7dc4602335c9675

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optilibre-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce7a9ebb70d606c4d7165f6834a91e5225e842bd204ac1a3b0ea6822a0ceeb3c
MD5 a9c8017f2524911874b0527c70b6c6e5
BLAKE2b-256 af5ee5e190f79c2428df67deb529297f278906f7650db5602f00db9853d76825

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