View Full Version : How to encode to interlaced with ffmpeg libx264?
Atak_Snajpera
6th June 2011, 19:02
My ffmpeg command line
"ffmpeg.exe" -i "E:\pal.mts" -vcodec libx264 -preset superfast -tune fastdecode -threads 0 -b 50000000 -r 25.000 -x264opts keyint=1:tff -ab 384000 "C:\temp\video.mp4"
and i get this
http://www.picamatic.com/show/2011/06/06/10/01/7609703_641x484.png
I used latest builds from http://ffmpeg.zeranoe.com/builds/
PS. I also tried tff=1 and interlaced=1
poisondeathray
6th June 2011, 19:08
I haven't tested it but apparently you need to add --nal-hrd --vbv-buffersize --vbv-maxrate
i don't know if "buffersize" is a typo for vbv-bufsize as the CLI version
see this thread
http://doom10.org/index.php?topic=1757.0
Atak_Snajpera
6th June 2011, 19:26
Thanks for your help!
Proper command line for interlaced looks like this
"ffmpeg.exe" -i "E:\pal.mts" -vcodec libx264 -preset superfast -tune fastdecode -threads 0 -b 50000000 -r 25.000 -flags +ildct+ilme -x264opts keyint=1:nal-hrd=vbr:vbv-bufsize=5000:vbv-maxrate=50000:tff=1 -ab 384000 "C:\temp\video.mp4"
Atak_Snajpera
6th June 2011, 19:34
BTW Does anybody know where can I find multithreaded ffmpeg builds?
Chikuzen
6th June 2011, 21:18
Multi-threaded AVC decoder has already been committed both ffmpeg/libav.
http://git.libav.org/?p=libav.git;a=commit;h=6a9c85944427e3c4355bce67d7f677ec69527bff
latest builds are here.
http://win32.libav.org/
LoRd_MuldeR
6th June 2011, 21:19
BTW Does anybody know where can I find multithreaded ffmpeg builds?
Shouldn't any recent build be multi-threaded (we are talking about the decoders, right?), since the 'MT' branch has been merged?
Recent FFmpeg builds can be found here, for examples:
http://ffmpeg.zeranoe.com/builds/
Atak_Snajpera
7th June 2011, 11:34
Is this normal that on my Q6600@3ghz I have no more that 65% of cpu utilization
latest builds from http://ffmpeg.zeranoe.com/builds/
"ffmpeg/ffmpeg.exe" -i "E:\pal.mts" -vcodec libx264 -preset superfast -tune fastdecode -threads 0 -b 50000000 -r 25.000 -flags +ildct+ilme -x264opts keyint=1:nal-hrd=vbr:vbv-bufsize=5000:vbv-maxrate=50000:tff=1 -acodec copy "C:\temp\video.mp4"
http://www.picamatic.com/show/2011/06/07/02/31/7610883_1375x816.png
PS. Also ffplay.exe does not EXCEED 25% (1 core) while playing.
http://www.picamatic.com/show/2011/06/07/02/51/7610899_607x211.png
Chikuzen
7th June 2011, 17:23
"ffmpeg/ffmpeg.exe" -threads 4 -i "E:\pal.mts" -vcodec libx264 -preset superfast -tune fastdecode -threads 0 ...
Atak_Snajpera
8th June 2011, 13:02
Thanks!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.