By adding an input option, it will allow the script to work for hardware accelerated decoding, which requires -hwaccel as an option for the input file. For example, I can manually run something like ffmpeg -hwaccel cuvid -vcodec h264_cuvid -i input.mp4 -y -vcodec h264_nvenc -acodec aac -hls_list_size 0 output.m3u8 so that my CPU only has to do the audio encoding. Everything else is offloaded to the GPU.
Also, feel free to modify the README if it sounds too repetitive.
By adding an input option, it will allow the script to work for hardware accelerated decoding, which requires
-hwaccel
as an option for the input file. For example, I can manually run something likeffmpeg -hwaccel cuvid -vcodec h264_cuvid -i input.mp4 -y -vcodec h264_nvenc -acodec aac -hls_list_size 0 output.m3u8
so that my CPU only has to do the audio encoding. Everything else is offloaded to the GPU.Also, feel free to modify the README if it sounds too repetitive.