G_M_C
23rd September 2008, 08:42
In another tread i tried to make a start to centralize all info we might need to make our own BD9's. I did that cause i've been browsing through this forum, and discussing about this subject for a few moths now. In that time i found 1 important thing; All information about this is fragmented and spreaded all over this forum. some parts contain the discussions about the VBV-rate, or GOP rate; Other parts contain all kinds of discussions about the muxing-programms etc.
What i allso see is that there are all kins of threads on BD-reencoding, transcoding or remuxing all over the place. And since i've been discussing this subject for a while now, I know that answers to many of those questions could have been found through :search: .
So in this tread/post i want to try to get al relevant links to all posts made up till now assembled. In a later stadium we could "assimilate" all info gathered into a more comprehensible form and/or guide or whatever. I'll start with posting all links i remember and can re-find here in htis thread. PM me if you have more that is relevant/interesting to put here, dont post to many loose questions in this thread, cause it will get confusing again (and thats exactly what we're trying to stop).
So here goes;
>> External (EMediaLive) << The Authoritative Blu-ray Disc (BD) FAQ (http://www.emedialive.com/Articles/ReadArticle.aspx?ArticleID=11392)
>> External (avchd-info) << Official AVCHD-specs (used as basis for some parameters in x264) (http://www.avchd-info.org/format/index.html)
>> Internal << Discussion about keyint / GOP-length (x 264 settings) (http://forum.doom9.org/showthread.php?p=1178034#post1178034)
>> Internal << More about --keyint (in discussion with jdobbs) (http://forum.doom9.org/showthread.php?p=1178480#post1178480)
>> Internal << Discussion about maximum bitrate and VBV buffersize (http://forum.doom9.org/showthread.php?p=1181884#post1181884)
>> Internal << New findings on maximum bitrate and VBV buffersize (http://forum.doom9.org/showthread.php?p=1222422#post1222422)
Also in that thread the final settings on Key-int en GOP-size;
- GOP must be at 1 sec if you use max bitrate > 15 Mbps and 2 sec for max bitrate < 15 Mbps (24 or 48 frames for 1080p24).
As example for the x264 settings, I give the short .BAT I use for encoding;
Edited on 15/12/2008
1) Use the new findings on maximum bitrate and VBV buffersize and new info on keyint / GOP size;
The correct settings for keyframe-interval depends on the max bitrate of your encode:
When the max bitrate < 15000 kbps, then keyint = 2 x framerate (rounded off) (You need to edit the .BAT if you use < 15 Mbps maxrate).
When the max bitrate > 15000 kBps, then keyint = framerate (ronded off)
min-keyint is always 1.
@SET IN_TITLE="........"
@SET IN_BITRATE= .....
@set IN_EXTRA= (Extra options, for instance --zones 0,128800,b=1/128801,140153,b=0.5, not between "")
@Echo off
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Pass 1
Echo .
Echo .
Echo .
"path to x264.exe\x264.exe" --threads auto --thread-input --progress --no-psnr --no-ssim "%IN_TITLE%.AVS" --stats "%IN_TITLE%.stats" --output NUL --pass 1 --bitrate %IN_BITRATE% --vbv-bufsize 30000 --vbv-maxrate 24000 --level 4.1 --keyint set yourself --min-keyint 1 --nal-hrd --aud --sar 1:1 --bframes 3 --b-adapt 2 --b-pyramid --weightb --ref 3 --mixed-refs --no-fast-pskip --ipratio 1.2 --pbratio 1.2 --direct auto --subme 2 --trellis 2 --psy-rd 0.8:0.7 --partitions none --me dia --merange 24 --mvrange 511 --aq-strength 0.9 --cqmfile "path to eqm_avc_hr.cfg\eqm_avc_hr.cfg" %IN_EXTRA%
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Pass 2
Echo .
Echo .
Echo .
"path to x264.exe\x264.exe" --threads auto --thread-input --progress --no-psnr --no-ssim "%IN_TITLE%.AVS" --stats "%IN_TITLE%.stats" --output "%IN_TITLE%.264" --pass 2 --bitrate %IN_BITRATE% --vbv-bufsize 30000 --vbv-maxrate 24000 --level 4.1 --keyint set yourself --min-keyint 1 --nal-hrd --aud --sar 1:1 --bframes 3 --b-adapt 2 --b-pyramid --weightb --ref 3 --mixed-refs --no-fast-pskip --ipratio 1.2 --pbratio 1.2 --direct auto --subme 9 --trellis 2 --psy-rd 0.8:0.7 --partitions all --8x8dct --me umh --merange 24 --mvrange 511 --aq-strength 0.9 --cqmfile "path to eqm_avc_hr.cfg\eqm_avc_hr.cfg" %IN_EXTRA%
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Finished !
Pause
PS: Others speak only of keyframe-interval of 24, so try with a DVD-RW to see what works best.
>> Internal << Multiple HD-videos on one DVD - Hacking your own menu driven AVCHD (Mini-BD/BD5/BD9) (http://forum.doom9.org/showthread.php?p=1184425#post1184425)
>> Internal << Workaround for tsMuxeR to get fforward/reverse working (http://forum.doom9.org/showthread.php?p=1168293#post1168293)
>> Internal << Workaround for muxing TrueHD / DTSMA (http://forum.doom9.org/showthread.php?p=1170182#post1170182)
>> Internal << How to force a subtitle "on" by default after muxing with tsMuxeR (http://forum.doom9.org/showthread.php?p=1224266#post1224266)
>> Internal << thread containing kaid's progress to find out the exact specs and structure of the AVCHD/BD files (bdmv, .clpi, .mpls and .m2ts) (http://forum.doom9.org/showthread.php?p=1187136#post1187136)
>> Internal << thread containing jdobbs progress into BD-reencoding Blu-Ray~DVD Backup & Conversion (http://forum.doom9.org/showthread.php?t=135335)
What i allso see is that there are all kins of threads on BD-reencoding, transcoding or remuxing all over the place. And since i've been discussing this subject for a while now, I know that answers to many of those questions could have been found through :search: .
So in this tread/post i want to try to get al relevant links to all posts made up till now assembled. In a later stadium we could "assimilate" all info gathered into a more comprehensible form and/or guide or whatever. I'll start with posting all links i remember and can re-find here in htis thread. PM me if you have more that is relevant/interesting to put here, dont post to many loose questions in this thread, cause it will get confusing again (and thats exactly what we're trying to stop).
So here goes;
>> External (EMediaLive) << The Authoritative Blu-ray Disc (BD) FAQ (http://www.emedialive.com/Articles/ReadArticle.aspx?ArticleID=11392)
>> External (avchd-info) << Official AVCHD-specs (used as basis for some parameters in x264) (http://www.avchd-info.org/format/index.html)
>> Internal << Discussion about keyint / GOP-length (x 264 settings) (http://forum.doom9.org/showthread.php?p=1178034#post1178034)
>> Internal << More about --keyint (in discussion with jdobbs) (http://forum.doom9.org/showthread.php?p=1178480#post1178480)
>> Internal << Discussion about maximum bitrate and VBV buffersize (http://forum.doom9.org/showthread.php?p=1181884#post1181884)
>> Internal << New findings on maximum bitrate and VBV buffersize (http://forum.doom9.org/showthread.php?p=1222422#post1222422)
Also in that thread the final settings on Key-int en GOP-size;
- GOP must be at 1 sec if you use max bitrate > 15 Mbps and 2 sec for max bitrate < 15 Mbps (24 or 48 frames for 1080p24).
As example for the x264 settings, I give the short .BAT I use for encoding;
Edited on 15/12/2008
1) Use the new findings on maximum bitrate and VBV buffersize and new info on keyint / GOP size;
The correct settings for keyframe-interval depends on the max bitrate of your encode:
When the max bitrate < 15000 kbps, then keyint = 2 x framerate (rounded off) (You need to edit the .BAT if you use < 15 Mbps maxrate).
When the max bitrate > 15000 kBps, then keyint = framerate (ronded off)
min-keyint is always 1.
@SET IN_TITLE="........"
@SET IN_BITRATE= .....
@set IN_EXTRA= (Extra options, for instance --zones 0,128800,b=1/128801,140153,b=0.5, not between "")
@Echo off
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Pass 1
Echo .
Echo .
Echo .
"path to x264.exe\x264.exe" --threads auto --thread-input --progress --no-psnr --no-ssim "%IN_TITLE%.AVS" --stats "%IN_TITLE%.stats" --output NUL --pass 1 --bitrate %IN_BITRATE% --vbv-bufsize 30000 --vbv-maxrate 24000 --level 4.1 --keyint set yourself --min-keyint 1 --nal-hrd --aud --sar 1:1 --bframes 3 --b-adapt 2 --b-pyramid --weightb --ref 3 --mixed-refs --no-fast-pskip --ipratio 1.2 --pbratio 1.2 --direct auto --subme 2 --trellis 2 --psy-rd 0.8:0.7 --partitions none --me dia --merange 24 --mvrange 511 --aq-strength 0.9 --cqmfile "path to eqm_avc_hr.cfg\eqm_avc_hr.cfg" %IN_EXTRA%
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Pass 2
Echo .
Echo .
Echo .
"path to x264.exe\x264.exe" --threads auto --thread-input --progress --no-psnr --no-ssim "%IN_TITLE%.AVS" --stats "%IN_TITLE%.stats" --output "%IN_TITLE%.264" --pass 2 --bitrate %IN_BITRATE% --vbv-bufsize 30000 --vbv-maxrate 24000 --level 4.1 --keyint set yourself --min-keyint 1 --nal-hrd --aud --sar 1:1 --bframes 3 --b-adapt 2 --b-pyramid --weightb --ref 3 --mixed-refs --no-fast-pskip --ipratio 1.2 --pbratio 1.2 --direct auto --subme 9 --trellis 2 --psy-rd 0.8:0.7 --partitions all --8x8dct --me umh --merange 24 --mvrange 511 --aq-strength 0.9 --cqmfile "path to eqm_avc_hr.cfg\eqm_avc_hr.cfg" %IN_EXTRA%
Echo .
Echo .
Echo .
Echo .[ %IN_TITLE% ] [%TIME% ] Encoding Finished !
Pause
PS: Others speak only of keyframe-interval of 24, so try with a DVD-RW to see what works best.
>> Internal << Multiple HD-videos on one DVD - Hacking your own menu driven AVCHD (Mini-BD/BD5/BD9) (http://forum.doom9.org/showthread.php?p=1184425#post1184425)
>> Internal << Workaround for tsMuxeR to get fforward/reverse working (http://forum.doom9.org/showthread.php?p=1168293#post1168293)
>> Internal << Workaround for muxing TrueHD / DTSMA (http://forum.doom9.org/showthread.php?p=1170182#post1170182)
>> Internal << How to force a subtitle "on" by default after muxing with tsMuxeR (http://forum.doom9.org/showthread.php?p=1224266#post1224266)
>> Internal << thread containing kaid's progress to find out the exact specs and structure of the AVCHD/BD files (bdmv, .clpi, .mpls and .m2ts) (http://forum.doom9.org/showthread.php?p=1187136#post1187136)
>> Internal << thread containing jdobbs progress into BD-reencoding Blu-Ray~DVD Backup & Conversion (http://forum.doom9.org/showthread.php?t=135335)