[FFmpeg-user] directpred question

Lou lou at lrcd.com
Wed Jun 6 20:55:49 CEST 2012


On Wed, 6 Jun 2012 11:23:30 +0800
"Rick C." <rickcorteza at gmail.com> wrote:

> Hi,
> 
> With version 0.11 of FFmpeg I'm getting the following error (see output below).  I did not get this with version 10.3 (same command line).  I've seen a few issues out there with this but haven't been able to figure it out yet.  Any assistance would be great.  Thanks!
> 
> 
> mahalkos-iMac:~ mahalko$ /Users/mahalko/Desktop/ffmpeg -i /Users/mahalko/Desktop/test.mov -vcodec libx264 -acodec aac -strict experimental -y -threads 0 -coder 1 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 2 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 3 -trellis 0 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree -wpredp 2 -coder 0 -bf 0 -flags2 -wpred-dct8x8+mbtree -wpredp 0 -b 300k -ab 192k -ar 48000 -r 30000/1001 -vf scale=480:270 /Users/mahalko/Desktop/test.mp4

Is there a particular reason you are not using the libx264 preset
option? How are you planning on using the output? Declaring each option
is an outdated method of encoding with libx264 and some options are now
ignored as shown by "Unrecognized option 'directpred'" in your console
output below. Also you are declaring some options (coder, bf, wpredp)
twice with different values. Looks like a combination of the old
libx264-fastfirstpass.ffpreset and maybe libx264-baseline.ffpreset.

A more recent command somewhat based on your options:

ffmpeg -i input -pass 1 -c:v libx264 -preset medium -profile:v \
baseline -b:v 300k -r 30000/1001 -vf scale=480:-1 -f mp4 -y /dev/null \
&& ffmpeg -i input -pass 2 -c:v libx264 -preset medium -profile:v \
baseline -b:v 300k -r 30000/1001 -vf scale=480:-1 -c:a aac -strict \
experimental -b:a 192k -ar 48000 output.mp4

Isn't that nicer?

> ffmpeg version 0.11 Copyright (c) 2000-2012 the FFmpeg developers

It's good that you're using recent FFmpeg.

> Unrecognized option 'directpred'
> Failed to set value '3' for option 'directpred'


More information about the ffmpeg-user mailing list