[FFmpeg-user] cropping problem

Carles Vila cvilad at gmail.com
Wed Feb 22 20:41:50 EET 2017

El 22 feb. 2017 16:46, "Benjamin Houtman" <houtmania at gmail.com> escribió:

Hello all,

I'm trying to crop a video that has a large green stripe at the bottom.
Using Cropdetect I've determined that the dimensions of the content for the
video are 720:480, not the 720:576 it displays at. When I try to crop it
two things happen (or don't happen, rather): A) It doesn't produce a file I
can play in quicktime, which my company would like to do, and B) when I
play it using ffplay, it did not crop the video.

The code I used (with variations) is below:

ffmpeg -i /Volumes/VIDEO_1/2009-10-28-Cmp-Multi-1872-C1.mov -vf
"crop=720:480:0:0" -c:v libx264 -crf 15 -c:a copy

There are two things that appear during the process that I haven't been
able to determine how to fix yet:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd9ea807000] Using non-standard frame rate

Guessed Channel Layout for Input Stream #0.1 : stereo

No pixel format specified, yuv422p for H.264 encoding chosen.

Use -pix_fmt yuv420p for compatibility with outdated media players.

The frame rate for the original video is 25/sec, as I'm sure you've noted.
It's German. I've run the file through mediainfo -f and haven't seen
anything about pixel format, so I'm not sure what to do with that.

Any pointers on how to get a workable file?


Ben Houtman
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

use -vf format=yuv420p or -pix_fmt yuv420p

More information about the ffmpeg-user mailing list