Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got an .mp4 file that's currently 830x1100 (it's a screencast) that I need to resize down to 114x150. I've been experimenting for hours with ffmpeg settings and nothing comes out looking nice and sharp. The original file looks decent, and I can't figure out why the downscaling makes it look so blurry.

Unfortunately I can't share the video because it contains a walkthrough for software that hasn't yet been released.

share|improve this question

migrated from Oct 31 '12 at 4:52

This question came from our site for professional and enthusiast programmers.

up vote 4 down vote accepted

114x150 is incredibly small considering the size of the source and I'm not sure if any scaling method will give you a satisfactory result. That being said you can experiment with the -sws_flags option in ffmpeg.

ffmpeg -i input -filter:v scale=114:-1 -sws_flags lanczos output

This is just an example: I'm not suggesting that lanczos is going to be your best bet. Default is bicubic. See the full list at ffmpeg -h full.

Also remember to provide a high enough quality that compression artifacts don't interfere. See the FFmpeg and x264 Encoding Guide for examples.

Another option, although probably not a great suggestion, is to try the unsharp filter.

share|improve this answer

One of the most dirty DSP tricks is to slowly scale up and then scale down the final result.

The first step is called "Incremental Upsampling". And they appear to teach it in University level photoshop (?) See

The second step is to resize to your original output.

share|improve this answer

You must log in to answer this question.

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