如何从http live streaming m3u8文件中提取mp4?我试过下面这条命令:FFMPEG mp4来自http live streaming m3u8文件?
ffmpeg -i {input file} -f rawvideo -bsf h264_mp4toannexb -vcodec copy out.mp4
我把这个错误:
[NULL @ 0000000002f07060] Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: I
你好,这个答案帮助我记录来自m3u8网址的实况流,并且视频也被保存在output.mp4中。我的问题是我们可以在这个命令中以秒/分钟为单位指定时间,以便保存的视频具有指定的时间。目前它继续录制并停止,直到我在控制台中按q。谢谢 –
@Mayuri'-t
@MayuriRuparel:如何记录实时流m3u8并保存为mp4 –