我正在制作一个应用程序,用户可以发送视频,并且它会自动地与其他视频连接起来。由于这些视频的格式各不相同,所以在连接之前,我需要使用以下命令将它们转换为相同格式:
ffmpeg -y -i {orginalVideo.itsExtention} -vcodec wmv2 4.wmv
对于连接操作,我有以下命令:
ffmpeg -y -i concat.wmv -i 4.wmv -filter_complex "[0:0][0:1][1:0][1:1] concat=n=2:v=1:a=1" output.wmv
但我收到了以下错误提示。
Input link in1:v0 parameters (size 640x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (1080x1920, SAR 1:1)
Failed to configure output pad on Parsed_concat_0
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #1:0
感谢您的回答。