Skip to content

Instantly share code, notes, and snippets.

@kibotu
Last active April 21, 2020 11:46
Show Gist options
  • Save kibotu/ec33edb67197bec9667cbd9e438f1835 to your computer and use it in GitHub Desktop.
Save kibotu/ec33edb67197bec9667cbd9e438f1835 to your computer and use it in GitHub Desktop.
FFMpeg crop video dimensions.

Use the crop filter:

ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4

Where the options are as follows:

out_w is the width of the output rectangle out_h is the height of the output rectangle x and y specify the top left corner of the output rectangle Original image

Screenshot

->

Screenshot

source: https://video.stackexchange.com/a/4571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment