<p>Basic syntax is</p>

<pre><code>ffmpeg -i in -vf "split=2[pip][full];[pip]crop=W:H:X:Y[pip];[full][pip]overlay=W-w:H-h,crop=iw-M:ih:M:0" -c:a copy out
</code></pre>

<p>where W,H,X,Y are as per your diagram. M is the margin from the left edge which needs to be cropped out. Select M so that <code>iw-M</code> results in an even number.</p>

CC BY-SA 4.0
2020-01-09T14:28:26.300Z
2020-01-09T14:28:26.300Z
Gyan
<p>I have a video file let's say it's the following one.</p>

<p><a href="https://i.sstatic.net/2fDdv.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2fDdv.jpg" alt="enter image description here"></a></p>

<p>What I want is the following operations:</p>

<ul>
<li>Copy the part in the red rectangle to the bottom-right corner for the whole video.</li>
<li>Remove the left red shadowed part of the whole video.</li>
</ul>

<p>So the expected result looks like this:</p>

<p><a href="https://i.sstatic.net/TP705.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/TP705.jpg" alt="enter image description here"></a></p>

<p>Notice the part has been copied to the bottom-right corner and the left part has been removed. </p>

<p>Is is possible to do this with ffmpeg or I must use something like Adobe Premiere Pro?</p>

<ffmpeg><video-editor>
Is it possible to use ffmpeg to move part of the video to another position and crop the video at the same time?
Just a learner
# Is it possible to use ffmpeg to move part of the video to another position and crop the video at the same time?

(Asked by: username_0 on 2020-01-09)

I have a video file let's say it's the following one.

[![enter image description here](https://i.sstatic.net/2fDdv.jpg)](https://i.sstatic.net/2fDdv.jpg)

What I want is the following operations:

* Copy the part in the red rectangle to the bottom-right corner for the whole video.
* Remove the left red shadowed part of the whole video.

So the expected result looks like this:

[![enter image description here](https://i.sstatic.net/TP705.jpg)](https://i.sstatic.net/TP705.jpg)

Notice the part has been copied to the bottom-right corner and the left part has been removed.

Is is possible to do this with ffmpeg or I must use something like Adobe Premiere Pro?

**Tags:** ffmpeg, video-editor


---

## 1 answers

### Answer by username_1 on 2020-01-09. Score: 2 | Accepted answer

Basic syntax is
ffmpeg -i in -vf "split=2[pip][full];[pip]crop=W:H:X:Y[pip];[full][pip]overlay=W-w:H-h,crop=iw-M:ih:M:0" -c:a copy out

where W,H,X,Y are as per your diagram. M is the margin from the left edge which needs to be cropped out. Select M so that iw-M results in an even number.


---

