[FFmpeg-user] Invalid pixel format string '-1'

Lou lou at lrcd.com
Thu Jan 10 04:22:24 CET 2013


<On Wed, 9 Jan 2013 19:07:18 -0800>
Tim Gustafson <tjg at soe.ucsc.edu> wrote:

> Hi,
> 
> I've been running ffmpeg to convert user-supplied videos for a while
> now, and I've just come across a video that ffmpeg doesn't seem to
> understand.  I'm running ffmpeg like this:
> 
> /usr/local/bin/ffmpeg -y -i '1357776129.uploaded' -threads 4 -vcodec
> libx264 -vpre libx264-lossless_slow -vpre libx264-baseline -b '128000'
> -ar 22050 -r 30 -g 150 -s '800x600' -f flv '1357776129.flv.tmp'
> ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers

This is considered old for general users who are recommended to use
current git head. Releases are targeted for distributors. If that is
not possible a sample should be supplied (a sample now would be useful
too). Current ffmpeg has support for camtasia decoding, but I'm not
sure if this is what your input is.

If you update, the current similar syntax would be:

ffmpeg -i input -c:v libx264 -preset slow -profile:v baseline \
-c:a libmp3lame -ar 22050 -vf scale=800:-1 -r 30 -g 150 output.flv

I recommend -crf instead of -b:v unless you're targeting a specific
output file size, and if this is the case do two-passes if possible.

<https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide>
<https://ffmpeg.org/trac/ffmpeg/wiki/Encoding%20VBR%20%28Variable%20Bit%20Rate%29%20mp3%20audio>


More information about the ffmpeg-user mailing list