<p><code>ffmpeg -i left.mp4 -i right.mp4 -i -filter_complex &quot;[1:v]tpad=start_mode=clone:start_duration=5[rvideo];[1:a]adelay=5s:all=true[raudio];[0][rvideo]hstack[vout];[0:a][raudio]amix[aout]&quot; -map &quot;[vout]&quot; -map &quot;[aout]&quot; output.mp4</code></p>
<p>You have to manually set the delay of the second (right) video from the 5 seconds in the example.</p>

CC BY-SA 4.0
2022-05-02T04:41:08.437Z
Thanks above works if both videos are of same resolution. How can i concatenate two videos of two different resolutions along with above effect.    Also, I would like to add small  text below the video describing what the video is all about (as seen in sample video link in question) ..  Is all this possible in one command?
user1087474
CC BY-SA 4.0
2022-05-01T21:02:22.093Z
2022-05-01T21:02:22.093Z
Anonymous
<p>I have two videos, that i want to concatenate side by side but second one should play after the first one. If the video is not playing, thumbnail should be shown</p>
<p>Below is the example that i want to achieve using ffmpeg <a href="https://twitter.com/sunmor2901/status/1520024861619658752" rel="nofollow noreferrer">https://twitter.com/sunmor2901/status/1520024861619658752</a></p>

<ffmpeg>
Stack two videos side and side but play one after another. Show thumbnail when not playing
user1087474
# Stack two videos side and side but play one after another. Show thumbnail when not playing

(Asked by: username_0 on 2022-05-01)

I have two videos, that i want to concatenate side by side but second one should play after the first one. If the video is not playing, thumbnail should be shown

Below is the example that i want to achieve using ffmpeg <https://twitter.com/sunmor2901/status/1520024861619658752>

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_1 on 2022-05-01. Score: 1 | Accepted answer

`ffmpeg -i left.mp4 -i right.mp4 -i -filter_complex "[1:v]tpad=start_mode=clone:start_duration=5[rvideo];[1:a]adelay=5s:all=true[raudio];[0][rvideo]hstack[vout];[0:a][raudio]amix[aout]" -map "[vout]" -map "[aout]" output.mp4`

You have to manually set the delay of the second (right) video from the 5 seconds in the example.

> **Comments:**
> **username_0**: Thanks above works if both videos are of same resolution. How can i concatenate two videos of two different resolutions along with above effect.    Also, I would like to add small  text below the video describing what the video is all about (as seen in sample video link in question) ..  Is all this possible in one command?  

---

