ffmpeg - 输入链接 in1:v0 参数(大小 640x640,SAR 16:9)与对应的输出链接 in0:v0 参数(640x640,SAR 427:240)不匹配 [英] ffmpeg - Input link in1:v0 parameters (size 640x640, SAR 16:9) do not match the corresponding output link in0:v0 parameters (640x640, SAR 427:240)

查看:21
本文介绍了ffmpeg - 输入链接 in1:v0 参数(大小 640x640,SAR 16:9)与对应的输出链接 in0:v0 参数(640x640,SAR 427:240)不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接 4 个 mp4 文件.我正在使用下面的命令但无法连接

I'm trying to concat 4 mp4 files. I'm using the command below but not able to concat

ffmpeg -i new1.mp4 -i new2.mp4 -i new3.mp4 -i new4.mp4 -filter_complex concat=n=4:v=1:a=1 output.mp4

出现此错误:

Input link in1:v0 parameters (size 640x640, SAR 16:9) do not match the corresponding output link in0:v0 parameters (640x640, SAR 427:240)

所有四个视频都具有相同的编解码器、相同的大小 (640x640) 和相同的比特率 (30)

All four vides has the same codec and same size (640x640) and the same bitrate (30)

我做错了什么?

推荐答案

输入的样本纵横比不同.试试

The inputs don't have identical sample aspect ratios. Try

ffmpeg -i new1.mp4 -i new2.mp4 -i new3.mp4 -i new4.mp4 -filter_complex 
        "[0]setdar=16/9[a];[1]setdar=16/9[b];[2]setdar=16/9[c];[3]setdar=16/9[d]; 
         [a][b][c][d]concat=n=4:v=1:a=1" output.mp4

这篇关于ffmpeg - 输入链接 in1:v0 参数(大小 640x640,SAR 16:9)与对应的输出链接 in0:v0 参数(640x640,SAR 427:240)不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆