Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am tasked with trying to 'improve' the quality of video from a point and shoot camera. I was considering perhaps up-sampling and then applying some unsharp masking.

Can any FFMPEG experts suggest some starting settings for unsharp masking, both with, and without up-sampling (say from 320X180 to 720P 1280X720)?

share|improve this question
"You keep using that word. I do not think it means what you think it means." The project is spelled FFmpeg. The command line tool is spelled ffmpeg. – LordNeckbeard Nov 16 '12 at 22:55
thanks for that Clarification – eco_bach Nov 17 '12 at 18:15
use the hqdn3d filter? – rogerdpack May 15 '13 at 21:07
up vote 1 down vote accepted

See the scale and unsharp filters in ffmpeg:

ffmpeg -i input -filter:v "scale=1280:-1,unsharp=5:5:1.0:5:5:0.0" output

The -1 in the scale filter tells ffmpeg to automatically choose the correct height to preserve aspect ratio. You can change the scaler with the -sws_flags option, such as -sws_flags lanczos. For upsampling lanczos is worth trying. Default is bicubic. See the full list at ffmpeg -h full.

My example uses the default unsharp settings: 5:5:1.0:5:5:0.0, which I included for demonstration purposes. These values allow you to sharpen or blur chroma and/or luma. See the documentation with man ffmpeg for more examples.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.