m3u8 stream to mp4 using ffmpeg
07 Jun 2020
ffmpeg powershellRepost of GitHub Gist
echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
Or in simplest form
ffmpeg -i <url> -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 <filename>
Example
ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.