Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cuchulain/video-transcoder

FFmpeg wrapper for automatically video transcoding
https://github.com/cuchulain/video-transcoder

audio ffmpeg ffmpeg-wrapper recode subtitles television tv video video-processing video-recoding

Last synced: about 2 months ago
JSON representation

FFmpeg wrapper for automatically video transcoding

Awesome Lists containing this project

README

        

# Video Transcoder

The script is designed to automatically transcode a movie for playback from a flash drive on a TV using **FFmpeg**.

Based on the parameters set in the input file, it selects an audio stream in one of the preferred languages and adds "forced" subtitles in the same language if available.

If audio in the preferred language is not available, it selects the default audio and adds subtitles in one of the preferred languages.

If needed, it will reduce the number of audio channels and video resolution so that the TV can play it without stuttering or lagging.

## Dependencies

`ffmpeg` and `ffprobe` binaries installed in system path.

### Install Python libraries

`pip3 install -f requirements.txt`

## Configuration

The script reads the configuration from the `~/.video-transcoder.toml` file.
If the file does not exist, the script will create it and populate it with default values when it is first run.

## Run script

```shell
python3 ./recode_video.py
```

## Author

Jan Čejka

- GitHub: [@Cuchulain](https://github.com/Cuchulain)
- web: [jancejka.cz](https://jancejka.cz), [merguian.eth](http://merguian.eth)