GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Video Image Crop |
20201113 This section deals with cropping the video image over the extent of the video. If you are wanting to extract time extents of the video (i.e., trim or cut the video) see Section 89.13.
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.