This command:

ffmpeg -i left.mp4 -i right.mp4 \
       -filter_complex "[0:v][1:v]hstack=inputs=2[v]; \
                        [0:a][1:a]amerge[a]" \
       -map "[v]" -map "[a]" -ac 2 output.mp4

Returns this error:

Stream specifier ':a' in filtergraph description
[0:v][1:v]hstack=inputs=2[v]; [0:a][1:a]amerge[a] matches no streams.

1 Answer 1


Make sure the original video file contains an audio track, otherwise use this:


Which means "skip the audio track if doesn't exist".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .