


With ffplay and crop filter: ffplay -vf "crop=480:270:200:100" input.mp4 See one of the other methods below if you want an output file. This will use your video player to crop while it is playing. This method will not create an output file. Crop with your playerĪ possible solution would be to crop during playback, so you don't even need to re-encode. Development is very active and there is no reason to use an antique.You can't perform any filtering without losing quality when encoding to a lossy format, but you have some options. If this is the case for you then get a modern ffmpeg. This is possible with any player worth using.Īncient ffmpeg builds used -croptop, -cropbottom, -cropleft, -cropright options instead of the crop filter. Instead of cropping and re-encoding, consider cropping upon playback. See FFmpeg Wiki: H.264 Video Encoding Guide for more info. Notesĭefault encoder for MP4 is libx264 (H.264 video) or mpeg4 (MPEG-4 Part 2 video) depending on your ffmpeg build. This way you can experiment and adjust your cropping without the need to encode, view, repeat. You can take a crop (heh heh) and preview it live with ffplay: ffplay -i input -vf "crop=in_w:in_h-40"

