transcoder FFmpeg based wrapper
Project description
tabarnak - transcoder FFmpeg based utility tool
Description
In the Province of Québec tabarnak is a swear derived from the tabernacle but it is an acronym for:
Transcoder All Basically Accessible Resolutely Not All Klingon
Le tact dans l'audace, c'est de savoir jusqu'où on peut aller trop loin.
Jean Cocteau
This script is used to convert video or audio media files to modern codecs such as HEVC, VP9, AV1 (experimental) or Opus. It walks into a directory and probes media files for video or audio that are not encoded with specified codec (default HEVC). Then it transcodes them. The idea is to use a more modern codec that has a better quality/bitrate ratio. Resulting files are significantly smaller than original h264, mpeg2, mpeg4 or likely any other formats that they are currently encoded to.
tabarnak uses crf encoding. All channels are copied. The audio is converted by ffmpeg to ogg vorbis by default.
tabarnak won’t delete or clean up your files. It will skip files that are already done. Basic sanity check is performed after encoding and it will print a warning if the input and output size do not match.
If you plan to use your media files with a chrome cast, be sure the buy chromecast ultra since the 3rd generation chromecast does not support HEVC.
Features
- Easy to use out of the box
- input & output directory support
- keep relative path option for transcoding entire hierarchy of media files
- copy your metadata (default) or not
- Basic default configuration for basic codecs such as h264, hevc, vp9 & opus
- Custom configuration workflow using either json or yaml
- Configurable logging including basic prometheus support
- Transcoder stats output (yaml)
- Automatic tests
Usage
Install
pip3 install tabarnak-desjare
Getting help
For help: tabarnak -h
Example usage
transcode all media files recursively using h264 codec and output them to the output directory
tabarnak --input-dir . --output-dir output --h264
transcode your entire music library recursively using opus codec in ogg container while keeping your directory structure and copy non media files
tabarnak --copy --opus --keep-relative-path --output-dir your_output_dir
Requirements
I prepared a tutorial video to learn how to do that on Windows 10: https://gist.github.com/desjare/adc1514d46bcb38414a5e2a602f6d12d
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
Built Distribution
File details
Details for the file tabarnak-desjare-0.0.5.tar.gz
.
File metadata
- Download URL: tabarnak-desjare-0.0.5.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3355b991aab45e9b4ec383235712534761101180636fd8bc8a9569552849f043 |
|
MD5 | 551c78823f4924395ed04d4a9f23c8e2 |
|
BLAKE2b-256 | dca46fa339e3d105a372c72dfe7b99183c4c7c4a0abd34b2ad4edbc1dbeef585 |
File details
Details for the file tabarnak_desjare-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: tabarnak_desjare-0.0.5-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab05d9585bafbc69d4c2375bc5dd32ab94abbb882aeed60caf73e4e64aba0b7 |
|
MD5 | e7d8360256785177befb9181416864d3 |
|
BLAKE2b-256 | f9b345335ab257198af39d91ace5e46d4c4a09d55963172c65f17e766d1fe99f |