user310291
user310291

Reputation: 38228

Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_concat_0

I first converted 2 gifs of same width and height to mp4 using ffmpeg options

ffmpeg -i video1.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video1.mp4
ffmpeg -i video2.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video2.mp4

afterwards I joined with

ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "concat=n=2:v=1:a=1" -f MP4 -y video.mp4

But I got error

Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_concat_0

with other mp4 in the past joining works so I don't understand why.

Upvotes: 0

Views: 5421

Answers (1)

Gyan
Gyan

Reputation: 93299

Your inputs for concat have no audio but the filter is expecting them because of a=1. Change it to a=0.

Upvotes: 6

Related Questions