Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

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.


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.