2

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.
Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
  • https://unix.stackexchange.com/questions/233832/merge-two-video-clips-into-one-placing-them-next-to-each-other/521878#521878 – Sanjay Hadiya May 30 '19 at 04:27

1 Answers1

0

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

[1:a:?]

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

agc
  • 7,223