linux把m4s格式转换mp4,video - ffmpeg将m4s转换为mp4 - SO中文参考 - www.soinside.com

将m4s片段合并为一个文件,确保文件顺序正确。例如:

cat video-0.m4s >> all.m4s

cat video-1.m4s >> all.m4s

cat video-2.m4s >> all.m4s

cat video-3.m4s >> all.m4s

cat video-4.m4s >> all.m4s

cat video-5.m4s >> all.m4s

cat video-6.m4s >> all.m4s

cat video-7.m4s >> all.m4s

cat video-8.m4s >> all.m4s

cat video-9.m4s >> all.m4s

cat video-10.m4s >> all.m4s

然后立即进行所有转换。ffmpeg -i all.m4s -c copy video.mp4

这不是尝试流方法时遇到相同的问题(could not find corresponding trex)。

我在all.txt文件中包含了所有想要的文件,其中包含

file 'video-0.m4s'

file 'video-1.m4s'

file 'video-2.m4s'

file 'video-3.m4s'

file 'video-4.m4s'

file 'video-5.m4s'

file 'video-6.m4s'

file 'video-7.m4s'

file 'video-8.m4s'

file 'video-9.m4s'

file 'video-10.m4s'

并且我尝试了ffmpeg -f concat -safe 0 -i all.txt -c copy video.mp4,导致了同样的问题。[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fde2d0c520] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720): unspecified pixel format

Consider increasing the value for the 'analyzeduration' and 'probesize' options

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fde2d0c520] Auto-inserting h264_mp4toannexb bitstream filter

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fde2d0c520] could not find corresponding track id 1

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fde2d0c520] could not find corresponding trex

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fde2d0c520] error reading header

[concat @ 0x55fde2cff900] Impossible to open 'rifle-1.m4s'

[concat @ 0x55fde2cff900] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1280x720): unspecified pixel format

Consider increasing the value for the 'analyzeduration' and 'probesize' options

Input #0, concat, from 'all.txt':

[... omitted ...]

all.txt: Input/output error

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值