[FFmpeg-user] ffmpeg h.264 long gop encoding and interlaced encoding

Filippo filippo1982 at gmail.com
Thu Mar 21 14:56:32 CET 2013


Albert Scholtalbers <compuvision.sr <at> gmail.com> writes:

> 
> >How can i maintain the same GOP settings codification for both progressive
> and interlaced video files?
> >And how can i change the "scan type" into interlaced?
> >How can i change the "scan order" (Bottom Field First - Top Field First)
> fot interlaced encoding?
> 
> Don't know about the GOP, I know mp4 don't know traditional Interlaced,
> they use MBAFF.
> To get MBAFF and TFF use following  (-flags +ildct+ilme) and (tff=1)
> "F:\ffmpeg.exe" -i "f:\sample.mpg" -vcodec libx264 -threads 0 -b 1500000 -r
> 29.97 -flags +ildct+ilme -x264opts tff=1 -ab 128000 "F:\video.mp4"
> 
> Good luck.
> 


I tried the suggested options:

for i in *.mov; do newname=`basename $i .mov`.mp4; ffmpeg -i $i -s 1280x720 -b
15000k -aspect 16:9 -r 25 -vcodec libx264 -flags +ildct+ilme -x264opts tff=1 -ac
2 -ar 48000 -ab 256k -threads 4 $newname; done

 but the message is:

" Unrecognized option 'x264opts'
Failed to set value 'tff=1' for option 'x264opts' "


:(



More information about the ffmpeg-user mailing list