acgnhiki / blrec

Bilibili Live Streaming Recorder 哔哩哔哩直播录制
GNU General Public License v3.0
583 stars 40 forks source link

录制fmp4流之后,没有设置转MP4功能,如何把录制的M4S文件转MP4 #193

Open miedao opened 12 months ago

miedao commented 12 months ago

没有设置文件处理转封装MP4格式,现在录播结束后,看见录播文件的M4s格式文件抓耳扰腮,QAQ。

Sodapopoo commented 12 months ago

ffmpeg -i index.m3u8 -i index.m3u8.meta -map_metadata 1 -bsf:v filter_units=remove_types=12 -codec copy output.mp4 此问题同#188

miedao commented 12 months ago

非常感谢,解决了。

ChooseBetterr commented 11 months ago

ffmpeg -i index.m3u8 -i index.m3u8.meta -map_metadata 1 -bsf:v filter_units=remove_types=12 -codec copy output.mp4 此问题同#188

2.0没m3u8.meta,只有meta.json

acgnhiki commented 11 months ago

metadata 文件可以参考 https://ffmpeg.org/ffmpeg-formats.html#Metadata-1 自己写

letsky192 commented 9 months ago

ffmpeg -i index.m3u8 -i index.m3u8.meta -map_metadata 1 -bsf:v filter_units=remove_types=12 -codec copy output.mp4 此问题同#188

求问-bsf:v filter_units=remove_types=12是什么意思啊。求科普各种type可以从哪里查到。

Genteure commented 9 months ago

参考文档: