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)

查看:236
本文介绍了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天全站免登陆