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 23rd May 2010, 23:02   #41  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
If you add the transfer characteristics/color primaries/colormatrix (to bt709) you also need (or, it's better) to add also the videoformat 'ntsc' if you're encoding at 30/60/23.98/24 fps. The pro-encoders do this (you can not add the information, but if you add them also the NTSC video format is specified). I haven't tested it, but probably for 25/50 fps the 'pal' video format is added.
mp3dom is offline   Reply With Quote
Old 3rd June 2010, 10:01   #42  |  Link
Sagittaire
Testeur de codecs
 
Sagittaire's Avatar
 
Join Date: May 2003
Location: France
Posts: 2,484
Quote:
Originally Posted by laserfan View Post
Thanks shon3i for the charts.

Question: I've been using --keyint 24 and 15000/15000 for all "BD"-on-DVD work, and given my bitrates are typically in the low 3500-7000 range should I really be using --keyint 48 instead to minimize "pulsing" at GOP changes?
yes will work for all scenario ... and GOP 48 vs GOP 24 produce ~2% better compression efficiency.
__________________
Le Sagittaire ... ;-)

1- Ateme AVC or x264
2- VP7 or RV10 only for anime
3- XviD, DivX or WMV9
Sagittaire is offline   Reply With Quote
Old 3rd June 2010, 15:08   #43  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Quote:
Originally Posted by Sagittaire View Post
... and GOP 48 vs GOP 24 produce ~2% better compression efficiency.
Thanks a lot for this--while I'm unlikely to notice this type of improvement, I have changed my default to 48 keyint and the results work in my player!
laserfan is offline   Reply With Quote
Old 4th June 2010, 12:49   #44  |  Link
MadMonkey57
Duh!
 
MadMonkey57's Avatar
 
Join Date: Dec 2008
Posts: 239
Quote:
Originally Posted by MadMonkey57 View Post
And what about --min-keyint ? Does it have to be set with regards to --keyint or x264 default (auto) is blu ray compliant ?
Anyone ?
MadMonkey57 is offline   Reply With Quote
Old 4th June 2010, 13:08   #45  |  Link
rack04
Registered User
 
Join Date: Mar 2006
Posts: 1,538
Quote:
Originally Posted by MadMonkey57 View Post
Anyone ?
I don't know whether it needs to be set but I error on the side of caution. If I know that something needs to be set I don't rely of a default/preset/tune to set it for me.
rack04 is offline   Reply With Quote
Old 4th June 2010, 13:38   #46  |  Link
MadMonkey57
Duh!
 
MadMonkey57's Avatar
 
Join Date: Dec 2008
Posts: 239
I agree. That's why I always set --min-key-int to 2 (which most of us use) for my 23.976p encodes.

Still I am wondering for other encodes especially 50p and 25i...
MadMonkey57 is offline   Reply With Quote
Old 4th June 2010, 15:29   #47  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Just leave default x264 setting. From revision r1537 x264 automaticly calculate min-keyint with keyint/10. so with Shot GOP min-keyint will be 2 with long 4, wich is just fine.

btw i am currently work to complete this stuff, be patient few more days with all need explanations
shon3i is offline   Reply With Quote
Old 4th June 2010, 16:06   #48  |  Link
MadMonkey57
Duh!
 
MadMonkey57's Avatar
 
Join Date: Dec 2008
Posts: 239
All right.Thanks.
MadMonkey57 is offline   Reply With Quote
Old 4th June 2010, 18:57   #49  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
--fake-interlace or --tff?

Will --fake-interlaced produce blu-ray compliant 576 encodes
of a progressive PAL DVD source? Or do I have to set --tff?
Sharc is offline   Reply With Quote
Old 4th June 2010, 19:05   #50  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by Sharc View Post
Will --fake-interlaced produce blu-ray compliant 576 encodes
of a progressive PAL DVD source? Or do I have to set --tff?
--fake-interlaced should work. You will need --pic-struct of course.
kieranrk is offline   Reply With Quote
Old 4th June 2010, 19:48   #51  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Thanks, and for reminding me of the --pic-struct.
Sharc is offline   Reply With Quote
Old 10th June 2010, 05:18   #52  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
I wrote a simple guide for the most common Blu-Ray scenarios. See my sig.
kieranrk is offline   Reply With Quote
Old 10th June 2010, 22:20   #53  |  Link
Lyris
Registered User
 
Join Date: Sep 2007
Location: Europe
Posts: 602
Much appreciated, Kieran, good to know my tests have been BD compliant.

Can you advise me (and others) here - are the following encode settings also good?

16:9 "NTSC" 720x480 Secondary Video stream
I know the max bit rate here is quite conservative, that is my intention.
Code:
x264 --bitrate 3000 --pass 1 --preset veryslow --weightp 0 --bframes 3 --me umh --merange 24 --partitions all
--subme 10 --trellis 2 --rc-lookahead 60 --direct auto --ref 6 --nal-hrd vbr --vbv-maxrate 4000 --vbv-bufsize 6000
--level 3.2 --keyint 24 --b-pyramid strict --slices 1 --aud --colorprim "smpte170m" --transfer "smpte170m"
--colormatrix "smpte170m" --sar 40:33 infile.avs -o outfile.avc

x264 --bitrate 3000 --pass 2 --preset veryslow --weightp 0 --bframes 3 --me umh --merange 24 --partitions all
--subme 10 --trellis 2 --rc-lookahead 60 --direct auto --ref 6 --nal-hrd vbr --vbv-maxrate 4000 --vbv-bufsize 6000
--level 3.2 --keyint 24 --b-pyramid strict --slices 1 --aud --colorprim "smpte170m" --transfer "smpte170m"
--colormatrix "smpte170m" --sar 40:33 infile.avs -o outfile.avc
Standard Definition Primary video (for bonus features, etc)
I gather that since 23.976fps is not allowed for SD material on BD, we need to add some sort of 3:2 pulldown flag. Is the way X264 does this BD compliant?
Lyris is offline   Reply With Quote
Old 10th June 2010, 22:40   #54  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Can you advise me (and others) here - are the following encode settings also good?
Everything look good to me. Just advice about vbv, keep both value near each other. You can use --keyint 48 aslo.

Quote:
Standard Definition Primary video (for bonus features, etc)
I gather that since 23.976fps is not allowed for SD material on BD, we need to add some sort of 3:2 pulldown flag. Is the way X264 does this BD compliant?
Yes but need to be interlaced aslo. If you sourtce is 23.976p you can use fake interlaced with 3:2 pulldown.
shon3i is offline   Reply With Quote
Old 11th June 2010, 04:19   #55  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 707
Quote:
Originally Posted by shon3i View Post
Yes but need to be interlaced aslo. If you sourtce is 23.976p you can use fake interlaced with 3:2 pulldown.
I'm not 100% sure that will pass some verifiers. It's a very strict interpretation of the spec.

Last edited by kieranrk; 11th June 2010 at 04:24.
kieranrk is offline   Reply With Quote
Old 11th June 2010, 06:55   #56  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by kieranrk View Post
I'm not 100% sure that will pass some verifiers. It's a very strict interpretation of the spec.
As long is 29.97i should pass, but if someone send me a sample i can verify

EDIT: i create my own 23.976p sample, encoded using fake interlaced and puldown 32 to produce 29.97i stream, but this file will not pass mui generator.

Last edited by shon3i; 11th June 2010 at 08:31.
shon3i is offline   Reply With Quote
Old 11th June 2010, 08:50   #57  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,991
Maybe just forget about fake interlaced and only use pulldown??

Derek
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 11th June 2010, 08:57   #58  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
23.98p to 29.97i via 3:2 pulldown is allowed. Probably the fake-interlaced is not needed in this case.
mp3dom is offline   Reply With Quote
Old 11th June 2010, 08:57   #59  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
Quote:
Originally Posted by Blue_MiSfit View Post
Maybe just forget about fake interlaced and only use pulldown??

Derek
it's ok for secondary video, but for primary 720x480 must be interlaced (or fake interlaced)
shon3i is offline   Reply With Quote
Old 11th June 2010, 09:16   #60  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
Doesn't the pulldown already flag the stream as interlaced?
mp3dom is offline   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 16:41.


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