2

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

enter image description here

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

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?

| improve this question | | | | |
2

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.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.