9

I've got a 720p video, that contains a picture that's only 4:3, so the edges left and right stay empty/black.

I want to cut of the left and right so that video is 4:3. How do I do this in Windows?

  • Input: WMV, 1280x720px
  • Output: WMV, AVI or MPEG, 960x720px

2 Answers 2

12

Download Handbrake.

Open your source video, then select Picture Settings. The following is a screenshot from OS X, but it's similar on Windows.

Your source is 1280px wide. You need 960px, thus 320px to get rid of. This means you want to crop 160px at each side of the video.

enter image description here

Choose your export options as you like, but you should know that by doing this, you will lose a fair amount of video quality, as the video will be re-encoded. This is why you should probably use the highest quality settings possible (i.e. the High Profile, with h.264 as codec.

Also note that cropping and destructively editing a video because it was poorly encoded (i.e. with black borders, "pillarboxed") is probably the wrong approach. Consider switching to a playing software that allows you to selectively crop the video, such as VLC.

23

With a recent version of ffmpeg, you can achieve this effect from the command-line:

ffmpeg -i input.mp4 -filter:v 'crop=ih/3*4:ih' \
-c:v libx264 -crf 23 -preset veryfast -c:a copy output.mp4

See the ffmpeg filter documentation for more information about the crop filter.

The -crf 23 -preset veryfast are libx264 options that set the quality. Basically: a lower CRF=better quality, but larger file. A faster preset means faster encoding, but a larger file. See this page on the excellent FFmpeg wiki for details of their use.

4
  • 1
    A little explanation would be fine. The docu is quite good but a pain to read. What is the meaning of -crf 23? Commented Aug 19, 2013 at 13:12
  • 1
    -crf 23 is a constant frame rate value. 0 would be lossess. I've found for some case I have the -crf 14 basically produces the same output file size as my particular input, for instance. Commented Jun 1, 2017 at 17:33
  • 4
    verfast should be veryfast Commented Mar 15, 2019 at 17:30
  • 1
    @NickFranceschina Fixed, albeit 8 years later. Commented Apr 5, 2021 at 19:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .