bentasker / HLS-Stream-Creator

Simple Bash Script to take a media file, segment it and create an M3U8 playlist for serving using HLS
BSD 3-Clause "New" or "Revised" License
273 stars 101 forks source link

Add input options as an environmental variable #29

Closed 404NetworkError closed 5 years ago

404NetworkError commented 5 years ago

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.

bentasker commented 5 years ago

This looks good, and the README changes look fine. Merging.

Thanks!