GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Video Crop |
20200924 This current section deals with cropping the video image over the extent of the video. If you are wanting to extract time extents of the video see Section 96.5.
Using ffmpeg we can remove, for example, the right most 230 pixel wide margin of a video with the following command.
$ ffmpeg -i input.mp4 -vf "crop=iw-230:ih:0:0" cropped.mp4 |
Here, iw refers to the original input video's width, and similarly ih for the height. The 0:0 is then the reference point.