尝试合并 MP4 时的 FFMPEG Conact 解复用器重新编码

发布于 2025-01-19 08:09:27 字数 776 浏览 0 评论 0原文

我试图将MP4录音直接合并为一个MP4。据我了解,我正在使用Concat Demuxer来实现此目的,因为它“非常快地”合并了不重新编码的文件。

我正在使用该命令

ffmpeg.exe -f concat -safe 0 -i "mylist.txt" -c copy video.mp4

如说明

  1. concat demuxer要避免重新编写并且格式不支持文件级串联时使用此方法(大多数文件 一般用户使用的不支持文件级串联)。

该命令成功运行,但是该过程需要很长时间。我认为这些视频正在重新编码,因为这就是显示的内容:

输出#0,mp4,to'video.mp4':元数据: 编码器:LAVF58.51.100 流#0:0(UND):视频:H264(高)(AVC1 / 0x31637661),YUV420P(TV,BT709),1920x2160 [SAR 1:1 DAR 8:9],Q = 2-31,1 < / p >

我是我不确定该过程为什么要花这么长时间,并且想知道如何将MP4文件合并到单个MP4输出文件中。

I am trying to merge MP4 recordings straight out of OBS together into one MP4. From what I understand, I am using the concat demuxer to achieve this as it merges the files "extremely quickly" without re-encoding.

I am using the command

ffmpeg.exe -f concat -safe 0 -i "mylist.txt" -c copy video.mp4

as explained in this post

  1. concat demuxer Use this method when you want to avoid a re-encode and your format does not support file-level concatenation (most files
    used by general users do not support file-level concatenation).

The command runs successfully, but the process takes a very long time. I assume the videos are being re-encoded as this is what shows:

Output #0, mp4, to 'video.mp4': Metadata:
encoder : Lavf58.51.100
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x2160 [SAR 1:1 DAR 8:9], q=2-31, 1

I'm unsure as to why the process is taking so long and want to know how I can merge the MP4 files into a single MP4 output file almost instantly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文