egress icon indicating copy to clipboard operation
egress copied to clipboard

M3u8 -> mp4 conversion script

Open frostbyte73 opened this issue 2 years ago • 2 comments

Would be convenient to have a tool for conversion (maybe in livekit-cli?)

frostbyte73 avatar Jan 13 '23 06:01 frostbyte73

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.

AshanCG avatar Jan 31 '23 01:01 AshanCG

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

frostbyte73 avatar Jul 05 '23 20:07 frostbyte73