Default settings:
- Input = /home/user/media/transcode_input
- Output = /home/user/media/transcode_output
- H.264 video codec (Change in config.json. More in "Configuration" section)
- 320 kbps audio bitrate
Simple-Transcoder is a simple and effecient way to transcode video files. It uses HandbrakeCLI under the hood to transcode video files. It is designed to be run as a schedualed task or manually. I am not a python programmer, so forgive me if this is not up to python standards.
- Install HandbrakeCLI
sudo apt install handbrake-cli
- Install Python
sudo apt install python3
- Install ffmpeg
sudo apt install ffmpeg
- Update your packages and libraries
sudo apt update && sudo apt upgrade -y
- Install the Simple-Transcoder script by running
git clone https://github.com/oliverdougherC/Simple-Transcoder
- Navigate to the Simple-Transcoder directory
cd Simple-Transcoder
- If desired, change the transcoding settings in the config.json file.
nano config.json
- Run the script
python3 run_transcode.py
The first time you run the script, the it will create the default directories specified in the config.json file if they do not exist.
- Sit back and relax while the script transcodes your videos.
- If you run into an error or are just curious, take a look at the log file
cat logs/transcoding.log