Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th June 2011, 20:02   #1  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,328
How to encode to interlaced with ffmpeg libx264?

My ffmpeg command line
Code:
"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


I used latest builds from http://ffmpeg.zeranoe.com/builds/

PS. I also tried tff=1 and interlaced=1

Last edited by Atak_Snajpera; 6th June 2011 at 20:08.
Atak_Snajpera is online now   Reply With Quote
Old 6th June 2011, 20:08   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 4,041
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
poisondeathray is offline   Reply With Quote
Old 6th June 2011, 20:26   #3  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,328
Thanks for your help!

Proper command line for interlaced looks like this
Code:
"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 is online now   Reply With Quote
Old 6th June 2011, 20:34   #4  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,328
BTW Does anybody know where can I find multithreaded ffmpeg builds?
Atak_Snajpera is online now   Reply With Quote
Old 6th June 2011, 22:18   #5  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 597
Multi-threaded AVC decoder has already been committed both ffmpeg/libav.
http://git.libav.org/?p=libav.git;a=...f677ec69527bff

latest builds are here.
http://win32.libav.org/
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 6th June 2011, 22:19   #6  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,071
Quote:
Originally Posted by Atak_Snajpera View Post
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/
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.


LoRd_MuldeR is offline   Reply With Quote
Old 7th June 2011, 12:34   #7  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,328
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/
Code:
"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"


PS. Also ffplay.exe does not EXCEED 25% (1 core) while playing.

Last edited by Atak_Snajpera; 7th June 2011 at 12:51.
Atak_Snajpera is online now   Reply With Quote
Old 7th June 2011, 18:23   #8  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 597
Code:
"ffmpeg/ffmpeg.exe" -threads 4 -i "E:\pal.mts" -vcodec libx264 -preset superfast -tune fastdecode -threads 0 ...
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 8th June 2011, 14:02   #9  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,328
Thanks!
Atak_Snajpera is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.