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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 20th November 2009, 21:24   #2661  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
@Trahald, thanks for info

btw i tryed to set --vui-hrd-bit-rate and --vui-hrd-cpb-size to 30000 but x264 refuse commandline with invalid argument? while other new params vui-hrd-cbr work just fine.
shon3i is offline   Reply With Quote
Old 20th November 2009, 21:52   #2662  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
Quote:
Originally Posted by shon3i View Post
@Trahald, thanks for info

btw i tryed to set --vui-hrd-bit-rate and --vui-hrd-cpb-size to 30000 but x264 refuse commandline with invalid argument? while other new params vui-hrd-cbr work just fine.
seems to be an inconsistency in the patch:
vui-hrd-bit-rate and vui-hrd-cpb-size are added to libx264
while
vui-hrd-bit-rate-value and vui-hrd-cpb-size-value were added to x264cli

this causes the parameters to be unusable in x264cli

applying
Code:
diff --git a/encoder/encoder.c b/encoder/encoder.c
index feb8ff6..d1e707a 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -773,7 +773,7 @@ static int x264_validate_parameters( x264_t *h )
 
     h->param.b_sei_pic_timing += h->param.i_pulldown;
     
-    if( h->param.rc.i_vbv_max_bitrate == 0 || h->param.rc.i_vbv_buffer_size == 0 )
+    if( h->param.vui.b_nal_hrd_parameters_present && (!h->param.rc.i_vbv_max_bitrate || !h->param.rc.i_vbv_buffer_size) )
     {
         x264_log( h, X264_LOG_WARNING, "NAL HRD parameters require VBV max bitrate and buffer size to be specified\n" );
         h->param.vui.b_nal_hrd_parameters_present = 0;
diff --git a/x264.c b/x264.c
index 4263890..cc1ddc7 100644
--- a/x264.c
+++ b/x264.c
@@ -541,7 +541,7 @@ static struct option long_options[] =
     { "sei-pic-timing", no_argument, NULL, 0 },
     { "vui-timing-info-present", required_argument, NULL, 0 },
     { "vui-nal-hrd-parameters-present", required_argument, NULL, 0 },
-    { "vui-hrd-bit-rate-value", required_argument, NULL, 0 },
-    { "vui-hrd-cpb-size-value", required_argument, NULL, 0 },
+    { "vui-hrd-bit-rate", required_argument, NULL, 0 },
+    { "vui-hrd-cpb-size", required_argument, NULL, 0 },
     { "vui-hrd-cbr", required_argument, NULL, 0 },
     { "vui-hrd-initial-cpb-removal-delay", required_argument, NULL, 0 },
on top of the patch should fix this issue.

Edit:
updated patch to fix the constant nal-hrd warning well.
__________________
custom x264 builds & patches | F@H | My Specs

Last edited by kemuri-_9; 20th November 2009 at 22:39.
kemuri-_9 is offline   Reply With Quote
Old 20th November 2009, 22:07   #2663  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Thanks kemuri-_9 i hope will be fixed asap. Btw can somebody recompile or wait for new patch. I realy want to do a deeper test.
shon3i is offline   Reply With Quote
Old 20th November 2009, 23:45   #2664  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
http://pastebin.com/d72a44cf2 is the newest patch from alex.. does not include kemuri-_9's code.
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 21st November 2009, 01:29   #2665  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
x264_x86_r1342_with_Alex's_nal-hrd

gcc: 4.4.2-dw2
-march=core2
patch: http://pastebin.com/d72a44cf2

Edit: Alex removed prefix "vui-" from param names.
vui-timing-info-present -> timing-info-present
vui-nal-hrd-parameters-present -> nal-hrd-parameters-present
and so on.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 21st November 2009 at 01:45.
VFR maniac is offline   Reply With Quote
Old 21st November 2009, 11:30   #2666  |  Link
techouse
Strictly Rhythm
 
techouse's Avatar
 
Join Date: Jul 2007
Location: Ljubljana, Slovenia
Posts: 166
x264_x64_r1342_unpatched | MD5
GCC 4.4.2 20091019 (x86_64.core2.Komisar), unpatched, generic, fprofiled

________________________________________________________________________________

x264_x86_r1342_NAL-HRD-ALEX_techouse | INFO
GCC 4.4.2 20091019 (x86.core2.Komisar), fprofiled, -march=core2

x264_x64_r1342_NAL-HRD-ALEX_techouse | INFO
GCC 4.4.2 20091019 (x86_64.core2.Komisar), fprofiled, -march=core2

Patches used:

x264_win_zone_parse_fix_06.diff
x264-r1342-nal_hrd-pic_struct-v10a.patch

________________________________________________________________________________

x264_x86_r1342_NAL-HRD-16-1301_techouse | INFO
GCC 4.4.2 20091019 (x86.core2.Komisar), fprofiled, -march=core2

x264_x64_r1342_NAL-HRD-16-1301_techouse | INFO
GCC 4.4.2 20091019 (x86_64.core2.Komisar), fprofiled, -march=core2

Patches used:

x264_win_zone_parse_fix_06.diff
x264_hrd_pd_interlace.16_r1301.diff
__________________

Last edited by techouse; 23rd November 2009 at 10:23. Reason: Fixed broken links
techouse is offline   Reply With Quote
Old 21st November 2009, 11:32   #2667  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,949
little side question: will vui-hrd-bit-rate-value and vui-hrd-cpb-size-value be used instead of vbv-maxrate and vbv-bufsize when using --nal-hrd or need both (the vbv and the vui-hrd values) to be specified ?
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 21st November 2009, 11:35   #2668  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Selur View Post
little side question: will vui-hrd-bit-rate-value and vui-hrd-cpb-size-value be used instead of vbv-maxrate and vbv-bufsize when using --nal-hrd or need both (the vbv and the vui-hrd values) to be specified ?
No, because I won't commit any patch that makes such a distinction.
Dark Shikari is offline   Reply With Quote
Old 21st November 2009, 14:41   #2669  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 581
Quote:
Originally Posted by techouse View Post
x264_x86_r1342_NAL-HRD-ALEX_techouse | INFO
GCC 4.4.2 20091019 (x86.core2.Komisar), fprofiled, -march=core2


x264_x86_r1342_NAL-HRD-16-1301_techouse | INFO
GCC 4.4.2 20091019 (x86.core2.Komisar), fprofiled, -march=core2
404 Not Found for both.
Only the unpatched version is available.
Brazil2 is offline   Reply With Quote
Old 21st November 2009, 18:19   #2670  |  Link
Fr4nz
Registered User
 
Join Date: Feb 2003
Posts: 448
Quote:
Originally Posted by Brazil2 View Post
404 Not Found for both.
Only the unpatched version is available.
Go here: http://techouse.project357.com/
Fr4nz is offline   Reply With Quote
Old 21st November 2009, 21:00   #2671  |  Link
Trahald
Wewkiee
 
Trahald's Avatar
 
Join Date: Feb 2002
Location: kashyyyk
Posts: 2,269
@Selur
Quote:
Originally Posted by Zm_Gorynych
the intent of the parameter is only when you want to have HRD say syntactically something different from the real VBV settings
so, it shouldn't ever be used w/o a very good reason ;-)
__________________
...yeah...but...why on earth would I compare apples with apples?
Trahald is offline   Reply With Quote
Old 22nd November 2009, 07:56   #2672  |  Link
Selur
.
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,949
missed that, thanks
__________________
Hybrid here in the forum, homepage, its own forum
Selur is offline   Reply With Quote
Old 22nd November 2009, 11:55   #2673  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,680
End of the test of version compiled with Intel compiler. Exactly the same video/settings/etc than in post #2653.
SSE4.2 profiled version :
1rt pass : 9.51fps, 2nd pass : 6.73fps.
jpsdr is offline   Reply With Quote
Old 22nd November 2009, 15:29   #2674  |  Link
Brazil2
Registered User
 
Join Date: Jul 2008
Posts: 581
Quote:
Originally Posted by Fr4nz View Post
Thanks
Brazil2 is offline   Reply With Quote
Old 22nd November 2009, 16:38   #2675  |  Link
XhmikosR
Registered User
 
Join Date: Mar 2007
Location: Hellas (Greece)
Posts: 543
Quote:
Originally Posted by jpsdr View Post
End of the test of version compiled with Intel compiler. Exactly the same video/settings/etc than in post #2653.
SSE4.2 profiled version :
1rt pass : 9.51fps, 2nd pass : 6.73fps.
So there is a gain over the x264.nl build and over my QxSSSE3 build.
Your results put all together:

Code:
CPU: Intel Core i7
Video test : a 2000 frames 1920x1080 anime video encoded in Lagarith YV12.
x264 --preset slow --tune animation -p 2 -B 15000 --stats "stats.stats" --threads auto --thread-input -o NUL "test.avs"

/Ox /QxSSE4.2 profiled :
1st pass : 9.51fps, 2nd pass : 6.73fps.
/Ox /QxSSSE3 profiled :
1st pass : 8,78fps, 2nd pass : 6,58fps.
x264.nl built profiled:
1st pass : 8,97fps, 2nd pass : 6,52fps.
__________________
My Specs
XhmikosR is offline   Reply With Quote
Old 22nd November 2009, 18:22   #2676  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Ok, sorry for wait, i been bussy these days. I do test with VRF Maniac buld. First i use classical command line posted here and i get exatly same values for VBV. Then i add HRD VBV values

Quote:
--keyint 24 --min-keyint 2 --slices 4 --vbv-maxrate 30000 --vbv-bufsize 30000 --sar 1:1 --level 4.1 --threads 12 --aud --nal-hrd --hrd-bit-rate 30000 --hrd-cpb-size 30000
And i get

Quote:
Stream info:
file name : I:\fnf2.264
file size : 25 177 156 bytes

video format : AVC/H.264
initial CBP removal relay : 0.88 sec
buffer size : 30 720 000 bits
declared bitrate : 30 720 000 bps

declared frame rate : 23.98 fps
bitrate type : VBR
padding : 0 bits
Which isn't good at all, out of specs.. , i hope new patch comming ASAP.

Last edited by shon3i; 22nd November 2009 at 18:25.
shon3i is offline   Reply With Quote
Old 23rd November 2009, 00:58   #2677  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
sounds like it's using a multiply by 1024 where it should be using a multiply by 1000
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 23rd November 2009, 05:18   #2678  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
x264_x86_r1342_with_Alex's_nal-hrd_v11

gcc: 4.4.2-dw2
-march=core2
patch: http://mailman.videolan.org/pipermai...er/006563.html
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 23rd November 2009, 05:41   #2679  |  Link
Boolsheet
Registered User
 
Join Date: Apr 2009
Location: Switzerland
Posts: 69
Quote:
Originally Posted by XhmikosR View Post
Can someone with a Core i7 make some tests?
Here's what I got:
Code:
CPU: Intel Core i7 920 @ 3045 Mhz
OS: Windows Vista 64bit
Test video: first 2000 frames Big Buck Bunny 720p raw y4m
4 two-pass encodes for each build with the following command line:

--preset slow --tune animation -p 1 -B 2500 --quiet --no-progress --stats "stats.stats" -o NUL bbb.y4m
--preset slow --tune animation -p 2 -B 2500 --quiet --no-progress --stats "stats.stats" -o NUL bbb.y4m

                    Pass 1  Pass 2
ICC11-QxSSE4.2:     22.10 / 23.52
ICC11-QxSSSE3:      20.56 / 22.83
ICC11-imk:          20.53 / 22.78
ICC11-QaxSSSE3:     20.50 / 22.74
ICC11-MasterNobody: 20.48 / 22.71
gcc.core2.mssse3:   20.57 / 22.52

All runs
Hyperthreading is on. I thought this would have a bigger impact on the first pass performance.
ICC11-QxSSE4.2 without HT:
Code:
x264.x86.r1342M.ICC11-QxSSE4.2.exe
	Pass 1
		22.18 fps, 2470.67 kb/s
		22.19 fps, 2470.67 kb/s
		22.18 fps, 2470.67 kb/s
		22.19 fps, 2470.67 kb/s
	Pass 2
		18.14 fps, 2496.70 kb/s
		18.21 fps, 2496.70 kb/s
		18.16 fps, 2496.70 kb/s
		18.19 fps, 2496.70 kb/s
__________________
My nightmares are horrifying, they're all interlaced!

Last edited by Boolsheet; 23rd November 2009 at 05:43.
Boolsheet is offline   Reply With Quote
Old 23rd November 2009, 09:57   #2680  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,680
Quote:
Originally Posted by kemuri-_9 View Post
sounds like it's using a multiply by 1024 where it should be using a multiply by 1000
Most of people forget or don't know, that in the international standard unit system, ONLY kiloBYTE is 1024 bytes, NOTHING else.
Megabyte or gigabyte are 10e6 and 10e9 bytes, in reference to the international standard system unit.
In windows (don't know about linux/unix), size are 1024² and 1024^3, but it's not standard.
jpsdr is offline   Reply With Quote
Reply

Tags
h.264, x264, x264 builds, x264 patches, x264 unofficial builds


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 17:20.


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