egress
egress copied to clipboard
M3u8 -> mp4 conversion script
Would be convenient to have a tool for conversion (maybe in livekit-cli?)
The idea is to have an .sh and .bat ( for win.) ( Or universal script) to support HLS video to MP4.
In zoom a simple script is provided with every recording ( in free tier) where one can double click .zoom file and convert. Better if we can embed the script with each recordings ( as of recording meta json) so user can run locally after downloading all files.
This would probably require gstreamer or ffmpeg to be installed (script could also handle that).
I haven't tested this command, but you should be able run something like ffmpeg -i "http://folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
to do the conversion