Cannot find a matching stream for unlabeled input pad 7 on filter Parsed_concat_2
Hello, This seems similiar to the other issue I posted last night. I was able to get that issue resolved but now I am getting this error: Cannot find a matching stream for unlabeled input pad 7 on filter Parsed_concat_2 when running this command: ffmpeg \ -loop 1 -framerate 30 -t 1.32 \ -i filler640480.jpg \ -i f.mp4 -y \ -loop 1 -framerate 30 -t -451.356 \ -i filler640480.jpg \ -i 9.mp4 -y \ -f lavfi -t 0.1 -i anullsrc=channel_layout=mono:sample_rate=48000 \ -filter_complex "[0:v]setsar=1[v0];[2:v]setsar=1[v1];[v0][4:a][v1][4:a]concat=n=4:v=1:a=1" -vsync 2 0225-grid.mp4 Any idea what is going on with this error? Thank You, Randy
On October 29, 2020, Nicolas George <george@nsup.org> wrote:
Randy Johnson via ffmpeg-user (12020-10-29):
"[0:v]setsar=1[v0];[2:v]setsar=1[v1];
[v0]
1
[4:a]
2
[v1]
3
[4:a]
4
concat=n=4:v=1:a=1"
4×(1+1) = 8 ≠4
Can you please elaborate on the (1+1) part? I see here https://trac.ffmpeg.org/wiki/Concatenate that n=x where x is the number of input segments
Thank You, Randy
Hi,
Can you please elaborate on the (1+1) part? I see here https://trac.ffmpeg.org/wiki/Concatenate
that n=x where x is the number of input segments
Since there is a video stream and an audio stream in each segment (1+1), for 4 segments there should be 8 inputs. Regards, Ted Park
On October 29, 2020, Edward Park <kumowoon1025@gmail.com> wrote:
Hi,
Can you please elaborate on the (1+1) part? I see here https://trac.ffmpeg.org/wiki/Concatenate that n=x where x is the number of input segments
Since there is a video stream and an audio stream in each segment (1+1), for 4 segments there should be 8 inputs.
I changed the output but still get the same error: Cannot find a matching stream for unlabeled input pad 7 on filter Parsed_concat_2 Here is the command: ffmpeg \ -loop 1 -framerate 30 -t 1.32 -i filler640480.jpg -i f.mp4 -y \ -loop 1 -framerate 30 -t -451.356 -i filler640480.jpg -i 9.mp4 -y \ -f lavfi -t 0.1 -i anullsrc=channel_layout=mono:sample_rate=48000 \ -filter_complex " [0:v]setsar=1[v0];[2:v]setsar=1[v1];[v0][4:a][v1][4:a]concat=n=8:v=1:a=1" -vsync 2 0225-grid.mp4 Any other ideas what could be wrong?
Randy Johnson via ffmpeg-user (12020-10-29):
[0:v]setsar=1[v0];[2:v]setsar=1[v1];[v0][4:a][v1][4:a]concat=n=8:v=1:a=1" 1 2 3 4
Still 4 inputs. Now, 8×(1+1) = 16. Sixteen is still not equal to four. Regards, -- Nicolas George
On October 29, 2020, Nicolas George <george@nsup.org> wrote:
Randy Johnson via ffmpeg-user (12020-10-29):
[0:v]setsar=1[v0];[2:v]setsar=1[v1];[v0][4:a][v1][4:a]concat=n=8:v=1:a=1" 1 2 3 4
Still 4 inputs. Now, 8×(1+1) = 16. Sixteen is still not equal to four.
Sorry Nicolas, but I think I am still confused. I changed it to 16 and get the same error so I am thinking I am not understanding.
Hi,
Sorry Nicolas, but I think I am still confused. I changed it to 16 and get the same error so I am thinking I am not understanding.
The concat filter should have [# of segments] × ([# of audio streams] + [# of video streams]), or n × (v + a) as specified to the filter. You seem to have 2 segments (n=2) with 2 streams (v=1:a=1) each. Regards, Ted Park
The concat filter should have [# of segments] × ([# of audio streams] + [# of video streams]), or n × (v + a) as specified to the filter. You seem to have 2 segments (n=2) with 2 streams (v=1:a=1) each. Thank You Ted. I believe I have it now. Thanks for your patience.
Randy Johnson via ffmpeg-user (12020-10-29):
Sorry Nicolas, but I think I am still confused. I changed it to 16 and get the same error so I am thinking I am not understanding.
16×(1+1) is still not equal to 4. Please make a little effort, this is middle-school-level math at best. Regards, -- Nicolas George
participants (3)
-
Edward Park -
Nicolas George -
Randy Johnson