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 Display Modes
Old 12th August 2009, 02:43   #1  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
DivX H.264 Encoder Beta 2

In response to your feedback after our Beta 1 release we've been working on the DivX command-line H.264 encoder, and in the first of several updates we are introducing several popularly requested features. These include a target quality mode, support for flagging sample aspect ratio, and support for input via stdin.

Visit DivX Labs to get the download and find more information about Beta 2.

Complementing this encoder, we're also jointly releasing a beta AAC encoder today, check out the thread in the Audio Encoding forum.
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 02:44   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
I'll try this encoder and add it to this test. Thanks!

Edit: or I would, if it didn't give me "access denied" when going to your link...

Last edited by Dark Shikari; 12th August 2009 at 02:47.
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 02:48   #3  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
No access for you!

Okay okay, try again
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 02:49   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
Quote:
Originally Posted by DigitAl56K View Post
No access for you!

Okay okay, try again
Works great now! Thanks. Unfortunately now I realize I can't really do a fair test, because the keyframe interval range is only 1-4 seconds, while the test requires 10 seconds, and given the low motion, that'd probably hurt the results pretty badly.

(any plans to allow longer keyframe intervals?)

Edit: Nevermind, by changing the framerate to 60fps and encoding at 625kbps instead of 250kbps, I can cheat the keyframe interval up to 10 seconds

Last edited by Dark Shikari; 12th August 2009 at 02:53.
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 02:57   #5  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
Potential bug (in commandline parsing?). Output file is all I-frames:

Quote:
Summary information:
Number of coded frames 5000
Total encoding time 159531 ms
Average time per frame 31.906 ms
Average speed achieved 31.3 fps
Average bitrate 1819514.21 kbit/sec @ 60.000 Hz
Commandline:

$ /c/Program\ Files/DivX/DivX\ H.264\ Codec\ CLI/bin/DivX264.exe -i maikaze.avs -aqo 2 -I -pyramid -bf 3 -br 625 -npass 1 -o divx.mp4

I notice that I messed up the commandline ("-I" with no arguments), but instead of erroring out, it chose a keyframe interval of zero?

Last edited by Dark Shikari; 12th August 2009 at 03:02.
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 03:04   #6  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
Dark Shikari,

I was just thinking the same thing. The maximum IDR interval is limited to 4 seconds because we wanted to improve seeking for consumer electronics devices and through experimental testing our team found that this was a reasonable trade-off to make in terms of the impact on overall efficiency and navigation experience, so our encoder adheres to this recommendation.

P.S. Excellent! New bugs to log already
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 03:05   #7  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
And another bug (matches the previous report as well):

818365.54 kbit/sec @ 60.000 Hz

the output bitrate is off by exactly a factor of 1000, apparently. The output file itself is correct, of course.
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 03:07   #8  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
And another bug: even at 60fps, -I 4 sets the keyframe interval to 96, which is actually 1.5 seconds, not 4 seconds.
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 03:13   #9  |  Link
Chengbin
Registered User
 
Join Date: Oct 2007
Posts: 975
Also, 60.000 Hz?? Shouldn't it be fps?
Chengbin is offline   Reply With Quote
Old 12th August 2009, 03:20   #10  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
Thanks Dark Shikari, these all sound like issues with the parser, I'll file issues on all of them.

Chengbin: I think hz and fps are reasonably interchangeable in this context.
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 05:30   #11  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,896
Also, remind your asm coders that pshuflw/punpcklqdq is faster than pshuflw/pshufd when splatting a value across a register
Dark Shikari is online now   Reply With Quote
Old 12th August 2009, 08:38   #12  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 1,710
What encoder is behind AAC? or you made from scratch?
shon3i is offline   Reply With Quote
Old 12th August 2009, 09:18   #13  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
shon3i: The core comes from MainConcept who are now also part of DivX. The command-line version was jointly developed.

Let's try to keep the AAC encoder questions on the AAC encoder thread, otherwise the conversation gets hard to follow

Last edited by DigitAl56K; 12th August 2009 at 09:20.
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 14:25   #14  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Germany
Posts: 7,322
x264 r1206 -vs- DivX264 Beta-2:
* Part 1: http://www.mediafire.com/file/gldmmq...vX264-Beta2.7z
* Part 2: http://www.mediafire.com/file/zj2wjc...Beta2.Part2.7z

HD and CIF samples. Anime and Film included. Both encoders configures for maximum quality (but no "placebo" settings).

Last edited by LoRd_MuldeR; 19th August 2009 at 14:28.
LoRd_MuldeR is offline   Reply With Quote
Old 12th August 2009, 15:55   #15  |  Link
nakTT
Registered User
 
Join Date: Dec 2008
Posts: 264
Quote:
Originally Posted by LoRd_MuldeR View Post
x264 r1206 -vs- DivX264 Beta-2:
http://www.mediafire.com/file/gldmmq...vX264-Beta2.7z

HD and CIF samples. Both encoders maxed out.
Great. Downloading as we speak. Can't wait to see how far ahead of the curve x264 is compared to DivX Beta 2. Or should I say how close the DivX Beta 2 to x264.

Last edited by nakTT; 12th August 2009 at 15:58.
nakTT is offline   Reply With Quote
Old 12th August 2009, 17:02   #16  |  Link
bob0r
Pain and suffering
 
bob0r's Avatar
 
Join Date: Jul 2002
Posts: 1,270
LOL @ DiVX:
x264 r1206 -vs- DivX264 Beta-2

cif_samples.divx.mkv, the red wall = one big brick, LOL!
bob0r is offline   Reply With Quote
Old 12th August 2009, 17:02   #17  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 2,697
@DigitAl56K

StaxRip is now destributed as big package including all used software. Applications with license that don't permit this will simply not be supported at all! Does your new encoders permit this and how big is the compressed file size of your cmdl tools?
__________________
StaxRip thread | StaxRip website
stax76 is offline   Reply With Quote
Old 12th August 2009, 19:02   #18  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 913
LoRd_MuldeR: x264 with settings maxed out is using very different settings than divx264 with settings maxed out. I would expect to see differences, it's not a very fair comparison.

For example, as Dark Shikari pointed out divx264 is using max IDR interval of 4 seconds to improve navigation on CE devices, whereas you have 20 seconds. You haven't set any vbv parameters, we also limit refs by level 4 requirements and consecutive b-frames to 3 for broad device compatibility whereas you have used 8 (this version of the encoder is expecting to work mainly with HD btw, not CIF material). If you test x264 without similar constraints then of course you are likely to get a better result, potentially at the expense of some device interoperability later. Keep in mind that we always look to find an balance between efficiency and interoperability.

stax76: Interesting. I'll grab the latest StaxRip and take a look today. I'll see what I can work out The size of our tools compressed of course varies by compressor. 7-Zip will compress the AAC and H.264 encoders to about 528kb total using zip-compatible deflate.
DigitAl56K is offline   Reply With Quote
Old 12th August 2009, 19:04   #19  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Germany
Posts: 7,322
Added more samples:
http://forum.doom9.org/showpost.php?...2&postcount=15
LoRd_MuldeR is offline   Reply With Quote
Old 12th August 2009, 19:07   #20  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Germany
Posts: 7,322
Quote:
Originally Posted by DigitAl56K View Post
LoRd_MuldeR: x264 with settings maxed out is using very different settings than divx264 with settings maxed out. I would expect to see differences, it's not a very fair comparison.

For example, as Dark Shikari pointed out divx264 is using max IDR interval of 4 seconds to improve navigation on CE devices, whereas you have 20 seconds. You haven't set any vbv parameters, we also limit refs by level 4 requirements and consecutive b-frames to 3 for broad device compatibility whereas you have used 8 (this version of the encoder is expecting to work mainly with HD btw, not CIF material). If you test x264 without similar constraints then of course you are likely to get a better result, potentially at the expense of some device interoperability later. Keep in mind that we always look to find an balance between efficiency and interoperability.

stax76: Interesting. I'll grab the latest StaxRip and take a look today. I'll see what I can work out The size of our tools compressed of course varies by compressor. 7-Zip will compress the AAC and H.264 encoders to about 528kb total using zip-compatible deflate.
Well, this was a test with "high quality" (but not "placebo") settings. That's what I actually use every day

If your encoder has hardcoded limitations that can't be bypassed, there is nothing I can do. But it's certainly not "unfair", because you could offer more (and less restrictive) options.

IMO it would be unfair to force restrictions on other encoders - restrictions I don't have normally - just because yours does have these restrictions...

Last edited by LoRd_MuldeR; 12th August 2009 at 19:58.
LoRd_MuldeR is offline   Reply With Quote
Reply

Thread Tools
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 08:48.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.