<p>Any Video Converter is recommended to overlay another video on a video file. You can use it to customize overlays to suit any video by changing their position, size, duration, or create your own layout such as side by side.</p>
<ol>
<li><p>Run the Any Video Converter program, and click the &quot;Video Overlay&quot; option on the main interface.
<a href="https://i.sstatic.net/IYtQTkQW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IYtQTkQW.png" alt="enter image description here" /></a></p>
</li>
<li><p>Choose the video file you want to overlay with other video.
<a href="https://i.sstatic.net/H3aecZeO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/H3aecZeO.png" alt="enter image description here" /></a></p>
</li>
<li><p>Click the &quot;Add&quot; button to choose another video you want to overlap the original one. You can add multiple videos and adjust the transparency of the video.
<a href="https://i.sstatic.net/9e7pxkKN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9e7pxkKN.png" alt="enter image description here" /></a></p>
</li>
<li><p>Click the &quot;Start&quot; button to start the video overlay.
<a href="https://i.sstatic.net/3K6t0bGl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3K6t0bGl.png" alt="enter image description here" /></a></p>
</li>
<li><p>When it finishes, the output file will be listed in the &quot;History&quot; panel automatically. You can open the folder to view the video which has been modified.
<a href="https://i.sstatic.net/pzx3Sv3f.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pzx3Sv3f.png" alt="enter image description here" /></a></p>
</li>
</ol>

CC BY-SA 4.0
2024-10-31T07:05:23.117Z
2024-10-31T07:05:23.117Z
Caroline1233
<p>I have two videos (let's say 1.mp4 and 2.mp4). I would like to overlay only the top-right quarter of 2.mp4 onto 1.mp4.</p>
<p>The output would be a single video with the content from 1.mp4 in the top left, bottom left and bottom right, and the content from 2.mp4 in the top right.</p>
<p>(To be clear, I don't mean shrinking anything. The output would show only three quarters of the frame from 1.mp4 and only one quarter of the frame from 2.mp4)</p>
<p>Is it possible to do this with ffmpeg or something similar?</p>

CC BY-SA 4.0
2024-10-27T05:10:39.353Z
ffmpeg 7 → `ffmpeg -i 1.mp4 -i 2.mp4 -lavfi "
[1][0]scale=rw/2:rh/2[a];
[0][a]overlay=W/2:0
" -c:a copy out.mp4`, ffmpeg <7 → `[1][0]scale2ref=main_w/2:main_h/2[a][b];
[b][a]overlay=main_w/2:0`
Баяр Гончикжапов
CC BY-SA 4.0
2024-10-27T18:17:58.280Z
OP wants to overlap a cropped portion, not a rescaled video.
Gyan
CC BY-SA 4.0
2024-11-01T04:52:10.370Z
Ah, my bad. this? → `ffmpeg -i 1.mp4 -i 2.mp4 -lavfi "
[1]crop=iw/2:ih/2:iw/2:0[a];
[0][a]overlay=W/2:0
" -c:a copy /tmp/out.mp4`
Баяр Гончикжапов
<ffmpeg><video><alpha>
How to overlay only part of a video using ffmpeg or a similar tool (not the full frame)
velw
# How to overlay only part of a video using ffmpeg or a similar tool (not the full frame)

(Asked by: username_0 on 2024-10-26)

I have two videos (let's say 1.mp4 and 2.mp4). I would like to overlay only the top-right quarter of 2.mp4 onto 1.mp4.

The output would be a single video with the content from 1.mp4 in the top left, bottom left and bottom right, and the content from 2.mp4 in the top right.

(To be clear, I don't mean shrinking anything. The output would show only three quarters of the frame from 1.mp4 and only one quarter of the frame from 2.mp4)

Is it possible to do this with ffmpeg or something similar?

**Tags:** ffmpeg, video, alpha

> **Comments:**
> **username_1**: ffmpeg 7 → `ffmpeg -i 1.mp4 -i 2.mp4 -lavfi " [1][0]scale=rw/2:rh/2[a]; [0][a]overlay=W/2:0 " -c:a copy out.mp4`, ffmpeg <7 → `[1][0]scale2ref=main_w/2:main_h/2[a][b]; [b][a]overlay=main_w/2:0`  
> **username_2**: OP wants to overlap a cropped portion, not a rescaled video.  
> **username_1**: Ah, my bad. this? → `ffmpeg -i 1.mp4 -i 2.mp4 -lavfi " [1]crop=iw/2:ih/2:iw/2:0[a]; [0][a]overlay=W/2:0 " -c:a copy /tmp/out.mp4`  

---

## 1 answers

### Answer by username_3 on 2024-10-31. Score: 0

Any Video Converter is recommended to overlay another video on a video file. You can use it to customize overlays to suit any video by changing their position, size, duration, or create your own layout such as side by side.

1. Run the Any Video Converter program, and click the "Video Overlay" option on the main interface.
   [![enter image description here](https://i.sstatic.net/IYtQTkQW.png)](https://i.sstatic.net/IYtQTkQW.png)
2. Choose the video file you want to overlay with other video.
   [![enter image description here](https://i.sstatic.net/H3aecZeO.png)](https://i.sstatic.net/H3aecZeO.png)
3. Click the "Add" button to choose another video you want to overlap the original one. You can add multiple videos and adjust the transparency of the video.
   [![enter image description here](https://i.sstatic.net/9e7pxkKN.png)](https://i.sstatic.net/9e7pxkKN.png)
4. Click the "Start" button to start the video overlay.
   [![enter image description here](https://i.sstatic.net/3K6t0bGl.png)](https://i.sstatic.net/3K6t0bGl.png)
5. When it finishes, the output file will be listed in the "History" panel automatically. You can open the folder to view the video which has been modified.
   [![enter image description here](https://i.sstatic.net/pzx3Sv3f.png)](https://i.sstatic.net/pzx3Sv3f.png)


---

