This project provides a Python-based solution for finding and encoding video files on a Linux machine using FFmpeg and HandBrakeCLI. It consists of several modules that work together to scan for video files, encode them, and provide a user-friendly interface for operation.
To install the necessary dependencies, run:
sudo apt-get install -y python3 ffmpeg libdvdread4 libbluray-bdj libdvdcss2 udisks2
pip install -r requirements.txt
If you are working with blurays you'll need 'makemkv'. Depending on your OS you will have different installation methods
To find and encode video files, you can run the script using python
sudo python3 path/to/your/directory/autoencoder.py
This will initiate the scanning of connected video files and encode them using the specified settings in the config.json file.
- search_path - You can specify a specific directory to search if the scan doesn't find your files.
- output_dir - Where your videos will be encoded to
- rip_dir - Where your ripped blurays will be saved
- final_dir - Where you encoded video are sent after a sucessful run. Set to null if the output_dir if where you want them to stay.
- max_threads - How many simulaneous encodes you want running
- rescan_interval - Wait time between scans in seconds
- min_size_mb - The minimum size in Megabytes for a video to be encoded
- video_extensions - A list of video extensions that will be encoded
- profile - The profile you want to use for encoding
- profiles - These are examples created that use the ffmpeg and HandBrakeCLI commands. See their docs for other parameters.
This project is licensed under the MIT License. See the LICENSE file for more details.