[FFmpeg-user] creating h264 .mp4 MBAFF tff/bff h264 with AAC audio

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Dec 18 00:43:37 CET 2012

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

> I'm quite new to FFmpeg and want to create Interlaced h264 files with
> AAC/MP2 sound from Interlaced MPEG2/DV/AVI sources
> The basics is quite simple, and a progressive output is created quite
> quickly. But I can't manage to get Interlaced h264 output.
> I see a lot of options in manuals, but non of them seem to work, or very
> tricky to put in the CLI
> I'm using Windows 7
> f:\ffmpeg.exe -i f:\sample.mpg -vcodec h264 -setfield='bff' -b 1500k
> -strict -2 -acodec aac -ab 128k f:\output.mp4
> or
> f:\ffmpeg.exe -i f:\sample.mpg -vcodec h264 --interlaced  -b 1500k -strict
> -2 -acodec aac -ab 128k f:\output.mp4 don't seem to work.
> What am I doing wrong?

Apart from not providing complete, uncut console output 
(it is needed for every question on this mailing list), 
please read the fine x264 manual and provide the necessary 
options to libx264 with -x264opts.

This way of handling x264 options allows FFmpeg to support 
latest changes / new options in x264 without any code change.

Carl Eugen

More information about the ffmpeg-user mailing list