[FFmpeg-user] Facing issue while video crop

Michael Koch astroelectronic at t-online.de
Thu Aug 8 12:04:42 EEST 2019


> I am facing issue while cropping the video. i am using  the following
> command to crop the video it is working perfect for land scap videos but
> for portrait  video it is always crop to top.
> Please help in this
>
> potrait
> top
> -y-ss00:00.0-i input.mp4-t00:06.235-vfcrop=480:480:240:0:exact=0 output.mp4
>
> center
> -y-ss00:00.0-i input.mp4-t00:06.235-vfcrop=480:480:145:0:exact=0 output.mp4
>
> bottom
>
> -y-ss00:00.0-i input.mp4-t00:06.235-vfcrop=480:480:12:0:exact=0 output.mp4

Of course it's always cropped to top, because the y position value is 0 
in all three cases.

Michael



More information about the ffmpeg-user mailing list