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.0.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

optilibre-2.0.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optilibre-2.0.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for optilibre-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5472c909a4d18b1dfc0a28fe7abb1d6938917f8e2a494fb18e86e0b5006535e0
MD5 324398ac4aa1f718c9909b2ccaec98db
BLAKE2b-256 2c44023323bd0e852791dd6d49405061ac69c06cb28bab10986f58f52331f75a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optilibre-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for optilibre-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b57936f31f3727e32f31bbd938ed64c2656cc8ad49177ccceedc5174d7d5fef6
MD5 b16fdd513a21665c48b2a93248ef7256
BLAKE2b-256 0a51198954d3111d6bb616c8f5990a0980b9d5c0e441e39748a8498712e40ff4

See more details on using hashes here.

Supported by

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