0

I have a .MOV video -created with Final Cut Pro 7 - which I'm converting to .flv using FFMPEG. I'm very happy about the quality and the size of the output file, but whenever I have fade in/out transitions in the input video, I get a pixelate effect on the output file. Any advice on how to solve this, without increase too much the output file size?

FRAME_SIZE=720x576
BIT_RATE=1200k

ffmpeg -s $FRAME_SIZE -i $1 -g 250 -ar 44100 -deinterlace -b $BIT_RATE -minrate $BIT_RATE -maxrate $BIT_RATE -bufsize 10000k -qblur 0.3 $2

Where $1 and $2 are, respectively, the input and output file.

4
  • Can you post what parameters you are using in ffmpeg? It sounds like a bitrate issue
    – Colum
    Jul 21, 2011 at 23:14
  • @Colum: There you go. Jul 22, 2011 at 9:44
  • I think it is an issue with interlacing. Try removing that flag
    – Colum
    Jul 23, 2011 at 14:04
  • @Colum. That didn't help. Actually, it causes horizontal lines to be displayed on the output video. Jul 25, 2011 at 12:29

3 Answers 3

2

You should explicitly specify a video codec using -vcodec as well as quality settings.

The problem is that ffmpeg's defaults aren't very sensible when you only specify a container format for the output, often choosing a sub-standard video format by default.

If you want H.264 output, try using the presets, e.g. -vcodec libx264 -vpre max. (To see what presets are available, try ls /usr/share/ffmpeg/*.ffpreset.)

1

Try converting the file using [MPEG Streamclip], MPEG Streamclip is a good free file converter. Export the project from Final Cut Pro 7 and use MPEG Streamclip to convert the file.

(http://www.squared5.com/)

-2

Try the -sameq option. It tells ffmpeg to use the same quality in the output as in the input. I often find that ffmpeg likes to use sub-standard video codecs.

2
  • 4
    no it doesn't. It tells ffmpeg to use the same Quantizer. Common mistake.
    – stib
    Dec 20, 2012 at 6:14
  • 1
    And there is no -sameq option in ffmpeg/avconvanymore. Mar 30, 2015 at 7:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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