Hardware Acceleration - cccaaannn/telegram_youtube_downloader GitHub Wiki
Running ffmpeg with hardware acceleration
Get supported encoders from ffmpeg
ffmpeg -encoders
Add this line to your configs/config.yaml
file's video_options
section
- Replace
h264_nvenc
with your encoder
postprocessor_args: ['-c:v', 'h264_nvenc']
It should look like this
video_options:
postprocessor_args: ['-c:v', 'h264_nvenc']
postprocessors:
- key: "FFmpegVideoConvertor"
preferedformat: "mp4"
Check the example on Google Colab