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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd October 2006, 23:14   #1  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Explanation for new switches in x264

Can somebody explain new switches in x264

--direct-8x8 <-1|0|1>
--deadzone-inter <int>
--deadzone-intra <int>

and can it improve picture in low-mid bitrate encoding?
shon3i is offline   Reply With Quote
Old 2nd October 2006, 23:20   #2  |  Link
Kostarum Rex Persia
Banned
 
Join Date: May 2005
Location: Serbia
Posts: 560
That's good question. Sharktooth, can you or Bond explain there switches?

Thank you.
Kostarum Rex Persia is offline   Reply With Quote
Old 2nd October 2006, 23:28   #3  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
I'm interrested to know too. For RealAnime
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 2nd October 2006, 23:46   #4  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,315
--direct-8x8 for better HD-DVD compability.
--deadzone to increase detail level at high bitrates. Noises, filmgrain another misc. details
IgorC is offline   Reply With Quote
Old 2nd October 2006, 23:49   #5  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
so what would be good examples when to use deadzone (bitrate or which crf number) and what value to enter there then?
btw. i cant see those options to be toggled in megui, hasnt the gui been updated for this yet ?

Last edited by Thunderbolt8; 2nd October 2006 at 23:54.
Thunderbolt8 is offline   Reply With Quote
Old 3rd October 2006, 00:21   #6  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Does --direct-8x8 change the quality? or it's just a comptability flag?
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 3rd October 2006, 07:18   #7  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Yes, turning it off will probably slightly lower the quality. I have no idea how much or little though. In the past it's always been on (when allowed), but not exposed as an option.
foxyshadis is offline   Reply With Quote
Old 3rd October 2006, 07:23   #8  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
In the past it has always been off whenever possible, even when that violated Levels, (under the assumption that off was better quality). Then I ran some tests and found that it had no measurable effect on quality one way or the other, so I fixed it to be compliant.

Last edited by akupenguin; 3rd October 2006 at 08:09.
akupenguin is offline   Reply With Quote
Old 3rd October 2006, 07:38   #9  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Oh, I must not have looked back enough in the sources, since it looked like it could be set on in the old diffs. Sorry!
foxyshadis is offline   Reply With Quote
Old 3rd October 2006, 15:22   #10  |  Link
AlexW
x264 contributor
 
Join Date: Feb 2005
Posts: 22
Hi everybody.

As IgorC said --deadzone should help to preserve more fine details and film grain at medium - high bitrates, i would suggest that people start by tweaking --deadzone-intra because that seems to make the most difference here, the default value for --deadzone-intra is 11 but something closer to 0 should help detail preservation a bit, it might also be beneficial to combine it with a CQM.
AlexW is offline   Reply With Quote
Old 3rd October 2006, 19:36   #11  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Uhm... doing some usual movie trailers encodings...
Sharktooth is offline   Reply With Quote
Old 3rd October 2006, 19:42   #12  |  Link
virus
Senior n00b
 
Join Date: Jan 2004
Location: Italy
Posts: 446
Quote:
Originally Posted by AlexW
Hi everybody.
OMG he has talked

(9 patches committed to x264's SVN, 6 posts. this guy must have a zipper instead of a mouth )
virus is offline   Reply With Quote
Old 3rd October 2006, 20:40   #13  |  Link
lexor
Registered User
 
Join Date: Jan 2004
Posts: 849
Quote:
Originally Posted by AlexW View Post
Hi everybody.

[...] --deadzone should help to preserve more fine details and film grain at medium - high bitrates [...]
what would you define as medium to high.

for me >3mbps is high, 1.5-3mbps is medium and <1.5mbps is low (this is where most my encodes are). So is the switch unlikely to affect me, or are your numbers lower for respective ranges?

this info should be put in some sticky, I hear people all the time saying low/mid/high bitrate, those words mean nothing without numbers.
__________________
Geforce GTX 260
Windows 7, 64bit, Core i7
MPC-HC, Foobar2000

Last edited by lexor; 3rd October 2006 at 20:58.
lexor is offline   Reply With Quote
Old 3rd October 2006, 21:00   #14  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
when someone generalizes on the bitrate, it means a number would be useless.
It ALL depends on the source compressibility.
Think it this way:
ultralow bitrate = the encoding looks like crap.
low bitrate = the encoding looks acceptable but certainly not good.
mid bitrate = the encoding looks good but it's not perfect.
high bitrate = the encoding looks near perfect.
Sharktooth is offline   Reply With Quote
Old 3rd October 2006, 21:02   #15  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Quote:
Originally Posted by AlexW View Post
Hi everybody.

As IgorC said --deadzone should help to preserve more fine details and film grain at medium - high bitrates, i would suggest that people start by tweaking --deadzone-intra because that seems to make the most difference here, the default value for --deadzone-intra is 11 but something closer to 0 should help detail preservation a bit, it might also be beneficial to combine it with a CQM.
Can you please also specify the encoding time relation between default values and user set values>
Sharktooth is offline   Reply With Quote
Old 3rd October 2006, 21:21   #16  |  Link
lexor
Registered User
 
Join Date: Jan 2004
Posts: 849
Quote:
Originally Posted by Sharktooth View Post
when someone generalizes on the bitrate, it means a number would be useless.
It ALL depends on the source compressibility.
Think it this way:
ultralow bitrate = the encoding looks like crap.
low bitrate = the encoding looks acceptable but certainly not good.
mid bitrate = the encoding looks good but it's not perfect.
high bitrate = the encoding looks near perfect.
hmm an interesting rating system, quite different from what I do (especially since the thing you rated high is, to my taste, unachievable withing x264+DVD5 limits).

DVD5 = great movie that I'd watch over and over
1/2 DVD5 = a (cult)classic that wouldn't be watched more then a few times a year (if that)
1 CD - 1/3 DVD5 = movie is worth a chuckle, but not the bitrate

this farily stably derives the value ranges I gave above.

Series are of course exempt from the above.
__________________
Geforce GTX 260
Windows 7, 64bit, Core i7
MPC-HC, Foobar2000

Last edited by lexor; 3rd October 2006 at 21:24.
lexor is offline   Reply With Quote
Old 3rd October 2006, 21:25   #17  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Just to give people a bit more of an idea of what deadzone does; Deadzone determines how much "insignificant" information is droped. Higher values of deadzone help avoid artifacts by eliminating useless information at lower bitrates, and freeing up the bitrate that information would have used - to keep more important information with better quality. Lower values preserve more of the original source information, but to reach a given bitrate that information will have to be compressed more then if a higher value of deadzone was used.

Higher values of deadzone will give a cleaner, smoother, less detailed look, while lower values will give a noisier, crisper, higher detail look, similar to older mpeg varients.

Edit: updated the description of deadzones effect, after preliminary testing 6 seems to have about the same detail preservation as Xvid.

Last edited by *.mp4 guy; 3rd October 2006 at 23:28.
*.mp4 guy is offline   Reply With Quote
Old 3rd October 2006, 22:42   #18  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
again my question, i cant find that in megui, so is this implented in the x264 installer only to be found on x264.nl ? if so, will this implemention also be done for the megui (or if its already there enlighten me plz how I can find it).
Thunderbolt8 is offline   Reply With Quote
Old 3rd October 2006, 22:54   #19  |  Link
asdfsauce
VEIG Master
 
Join Date: Nov 2005
Location: US/CA
Posts: 73
Use the "Custom CommandLine Options" field in the Zones tab of the x264 configuration window.
asdfsauce is offline   Reply With Quote
Old 3rd October 2006, 23:20   #20  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Quote:
Originally Posted by Thunderbolt8 View Post
again my question, i cant find that in megui, so is this implented in the x264 installer only to be found on x264.nl ? if so, will this implemention also be done for the megui (or if its already there enlighten me plz how I can find it).
it's not implemented in megui (yet).
do what asdfsauce said.
Sharktooth is offline   Reply With Quote
Reply


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 13:54.


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