Log in

View Full Version : Announcing the first free software Blu-ray encoder


Dark Shikari
25th April 2010, 19:42
The x264 demo Blu-ray is now available as we announce official Blu-ray encoding support!

Read the full article (http://x264dev.multimedia.cx/?p=328).

bob0r
25th April 2010, 19:51
Yeah baby!

shon3i
25th April 2010, 20:30
Now officially Congratulations :)

Btw we have free Authoring app's with menus and chapters: multiAVCHD.

kieranrk
25th April 2010, 20:36
Now officially Congratulations :)

Btw we have free Authoring app's with menus and chapters: multiAVCHD.

Did you check it with Sony Verifier?

shon3i
25th April 2010, 20:45
Did you check it with Sony Verifier?
Yes it passes, with few warnings, about missing AACS files and other unnecessary things.

Blue_MiSfit
25th April 2010, 21:04
Congratulations to everyone who worked on this project. Truly fantastic work!

CruNcher
25th April 2010, 21:19
Yep a big step for Free consumer Blu-Ray creation :)

sebazvideo
25th April 2010, 21:36
It's great, but the URL in the article has the source files, where do we get the compiled x264.exe for both 32 and 64 bit (if it exists yet), and can we replace the x264.exe in the Megui tools directory? Sorry if this sounds ignorant, but I'm a video geek and I don't know anything about commits, diffs and trees, except for the ones growing in my garden. :confused:

I already burned the BD5 from the image and I'll play it in a few minutes.

Gser
25th April 2010, 21:38
I think I just pissed my pants a little.

Dark Shikari
25th April 2010, 21:41
It's great, but the URL in the article has the source files, where do we get the compiled x264.exe for both 32 and 64 bit (if it exists yet), and can we replace the x264.exe in the Megui tools directory? Sorry if this sounds ignorant, but I'm a video geek and I don't know anything about commits, diffs and trees, except for the ones growing in my garden. :confused:

I already burned the BD5 from the image and I'll play it in a few minutes.x264 has supported Blu-ray authoring for a few weeks now, this is just the official announcement :)

nurbs
25th April 2010, 21:43
where do we get the compiled x264.exe for both 32 and 64 bit (if it exists yet)
x264.nl (http://x264.nl) or the patched builds thread on this forum.
can we replace the x264.exe in the Megui tools directory
Sure.

sebazvideo
25th April 2010, 21:56
OK, I found them at http://x264.nl/

The author writes, in that announcement, about some parameters that are required by the blu-ray spec and gives an example for 24p footage:

x264 --crf 16 --preset veryslow --tune film --weightp 0 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 <input> -o <output>

While I will be encoding some 24p footage, my main use will be for 29.97 interlaced footage, and mostly at a constant bitrate of 20 Mbps, since that's the highest that at least my blu-ray player will play when I burn a bd structure to DVD media. Since BD-Rs are still a little expensive, I have a lot of footage shot by myself that I normally put on BD9s at that bitrate. If someone can guide me, which are the parameters that are absolutely obligatory to make my encode blu-ray compliant? All I encoded so far plays in my player (Sony BDP-S300) but I don't want to risk getting a newer player at some point and not being able to play my personal footage.

Also, are there are parameters that have to be different when encoding 23.98 fps as opposed to 24 fps? I have a Panasonic AVCHD camera that shoots 23.98 native and I don't want to screw up anything, considering the amount of time it takes to encode to h.264.

Dark Shikari
25th April 2010, 22:03
OK, I found them at http://x264.nl/

The author writes, in that announcement, about some parameters that are required by the blu-ray spec and gives an example for 24p footage:

x264 --crf 16 --preset veryslow --tune film --weightp 0 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --b-pyramid strict --slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 <input> -o <output>

While I will be encoding some 24p footage, my main use will be for 29.97 interlaced footage, and mostly at a constant bitrate of 20 Mbps, since that's the highest that at least my blu-ray player will play when I burn a bd structure to DVD media. Since BD-Rs are still a little expensive, I have a lot of footage shot by myself that I normally put on BD9s at that bitrate. If someone can guide me, which are the parameters that are absolutely obligatory to make my encode blu-ray compliant? All I encoded so far plays in my player (Sony BDP-S300) but I don't want to risk getting a newer player at some point and not being able to play my personal footage.

Also, are there are parameters that have to be different when encoding 23.98 fps as opposed to 24 fps? I have a Panasonic AVCHD camera that shoots 23.98 native and I don't want to screw up anything, considering the amount of time it takes to encode to h.264.24 and 23.976 FPS are both allowed on Blu-ray, nothing different about them.

The primary thing you have to do is use lower VBV settings to work on DVDs (BD9s). I think 15000/15000 are the appropriate numbers.

SomeJoe
25th April 2010, 22:39
24 and 23.976 FPS are both allowed on Blu-ray, nothing different about them.

DS is right, Blu-Ray supports both.

However, there are a couple things you should know:

1. To make your interlaced encode, you will need to add --tff or --bff to your x264 encode line to tell x264 to encode the content interlaced, and to tell it what the field order is. Most AVCHD cameras shoot interlaced footage as top field first, so you would use --tff.

2. Though Blu-Ray supports 23.976 (actually 24/1.001) and 24.000, virtually all Hollywood Blu-Ray discs are 23.976. This is so that the downconverted output from a Blu-Ray player (on the composite or S-video outputs) is compatible with standard definition NTSC TVs. Blu-Rays that are 24.000 will not be able to be downconverted to SD by the typical Blu-Ray players available in the US.

3. There are some HDTVs sold in the US that have problems with 24.000 input. These TVs assume that the input is actually 23.976 always, even if it's actually 24.000. These TVs will show a display glitch about every (1/(24 - (24/1.001))) = 42 seconds when playing back 24.000 material. Yes, technically this is a bug in the TV, because ATSC specs specifically allow 24.000 fps, but nevertheless, these TVs do exist.


For reasons #2 and #3 above, I recommend that Blu-Rays (or BD content on DVD media, aka BD5/BD9) be authored at 23.976, not 24.000. Since your material is natively 23.976 as shot by your camera, this is not a problem. For content that is natively 24.000, I recommend applying a 0.1% slowdown to 23.976 for the video and audio prior to encoding.

Please note that I am speaking here assuming you're making a disc for NTSC/USA use. If you're making a disc for use in a PAL-based country, you can either author at 23.976 which will playback on HDTVs fine, or speedup the content by 4% to 25.000 to make a disc where it's downconverted SD output is compatible with standard definition PAL TVs.

By the way, we're getting OT here, so if you want to continue this discussion of authoring your camera-shot material, I recommend you start a new thread.

sebazvideo
25th April 2010, 22:40
OK, I replaced the x264.exe and x264_64.exe in the tools directory in Megui, and after creating an AVS script and loading it, when I try to encode it stops and this is the log:

[Error] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.4.0
--[NoImage] OS : Windows Seven Premium Edition x64 (6.1.0.7600)
--[NoImage] Latest .Net Framework installed : 3.5 SP1 (3.5.30729.4926)
--[NoImage] Avisynth Version : 2.5.8.5
-[Error] Log for job1 (video, 3 Minutes Canopus HQ Max.avs -> 3 Minutes Canopus HQ Max.264)
--[Information] [4/25/2010 5:37:31 PM] Started handling job
--[Information] [4/25/2010 5:37:31 PM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\x264\x264.exe" --bitrate 20000 --thread-input --deblock -6:-6 --keyint 18 --min-keyint 3 --interlaced --slices 4 --vbv-bufsize 20000 --vbv-maxrate 20000 --aud --nal-hrd --sar 1:1 --aud --output "E:\George encoding tests April 2010\3 Minutes Canopus HQ Max.264" "E:\George encoding tests April 2010\3 Minutes Canopus HQ Max.avs"
--[Information] [4/25/2010 5:37:31 PM] Encoding started
--[Error] An error occurred: x264 [error]: invalid argument: nal-hrd = --sar
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [4/25/2010 5:37:31 PM] Job completed


I don't understand, isn't nal-hrd one of those parameters that are obligatory for blu-ray? I also don't understand why in the error log it shows as invalid "nal-hrd = --sar", when the way it's in the command line that Megui sends to x264 it's "--nal-hrd --sar 1:1 "

Can anyone give me a clue?

SomeJoe
25th April 2010, 22:45
OK, I replaced the x264.exe and x264_64.exe in the tools directory in Megui, and after creating an AVS script and loading it, when I try to encode it stops and this is the log:

I don't understand, isn't nal-hrd one of those parameters that are obligatory for blu-ray? I also don't understand why in the error log it shows as invalid "nal-hrd = --sar", when the way it's in the command line that Megui sends to x264 it's "--nal-hrd --sar 1:1 "


The new x264 requires a parameter along with the --nal-hrd entry, wither "vbr" or "cbr". The proper one for Blu-Ray is --nal-hrd vbr. MeGUI is not aware that the new parameter is required, so x264 is giving you an error.

Edit: Follow the directions below ... you can put the --nal-hrd vbr as a custom parameter in MeGUI.

nurbs
25th April 2010, 22:47
Deactivate NAL-HRD in the codec configuration and add --nal-hrd vbr as a custom command line switch.

While you can use any version of x264 with megui you are bound to run into problems if the commands an old megui version uses aren't the same a new x264 revision expects.

mp3dom
25th April 2010, 22:47
Nal-hdr is mandatory for BD compliance. The error you have comes because now for the nal-hrd you need to specify either vbr or cbr nal. So in your command line you need to put "--nal-hrd vbr" (without quotes).
Edit: Ops nurbs already comes first...

nurbs
26th April 2010, 00:07
The news is getting pretty widespread.

I learned something new reading slashdot today: Apparently people using BD-Rebuilder are only imagining their backups work, because blu-ray players never play discs without AACS. :rolleyes:

sebazvideo
26th April 2010, 00:12
Thanks to all that replied about the nal-hdr, I had already figured it out when I read the example command line, but I appreciate it regardless.

That Sony Verifier program, is it free or does it cost money? I googled it and I couldn't find anything about it, other than I think it comes with BluPrint, but I don't know if it's available separately.

mp3dom
26th April 2010, 00:16
The Sony verifier is available separately. Its codename is Sony VRF001 BD Verifier and its cost is about 10.000$.
Anyway, almost every replication facility test your BDCMF (the image you sent for replication) into a verifier (it could be the Sony but most probably it's the EclipseSuite verifier since EclipseSuite is also the software to made the replication). Also there are some companies that offer the bluray verification if you need to (useful if you cannot spend 10.000$ for a verifier but you want to be sure that your project meets the BD specs)

sebazvideo
26th April 2010, 00:50
The news is getting pretty widespread.

I learned something new reading slashdot today: Apparently people using BD-Rebuilder are only imagining their backups work, because blu-ray players never play discs without AACS. :rolleyes:

I don't know where you got that from, but it's wrong. At least my blu-ray player happily plays everything with a BD structure, whether it comes from DVD Architect, Encore, MultiAVCHD, or TSMuxer. No AACS at all.

sebazvideo
26th April 2010, 00:51
The Sony verifier is available separately. Its codename is Sony VRF001 BD Verifier and its cost is about 10.000$.

Excellent, give me 10, please. :p

sebazvideo
26th April 2010, 00:52
I just saw the demo BD and it's very impressive. Can we know exactly what parameters were used for each of the three projects?

Dark Shikari
26th April 2010, 01:08
I just saw the demo BD and it's very impressive. Can we know exactly what parameters were used for each of the three projects?You can check the header of the x264 files by using "strings".

sebazvideo
26th April 2010, 01:28
You can check the header of the x264 files by using "strings".

I don't know what "strings" is. Is that how mediainfo gets the information it shows, or is it more complete?

AlekseiV
26th April 2010, 01:34
I don't know what "strings" is. Is that how mediainfo gets the information it shows, or is it more complete?Linux program. Windows version here: http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx

L:\Temp\stringstest>strings.exe Movie.mkv > strings.txt
open strings.txt
some of the initial lines:
libebml v0.7.9 + libmatroska v0.8.1WA
mkvmerge v3.2.0 ('Beginnings') built on Feb 12 2010 16:46:17D

x264 - core 88 r1471 1144615 - H.264/MPEG-4 AVC codec - Copyleft 2003-2009 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:-1:-1 analyse=0x3:0x113 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 mbaff=0 constrained_intra=0 bframes=6 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 wpredb=1 wpredp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=100 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
note this is just a video I had lying around, not the blu-ray.


MediaInfo is easier for this purpose probably :p

prOnorama
26th April 2010, 01:40
MediaInfo is easier for this purpose probably :p

Yes, just mount the ISO with VirtualCloneDrive or Daemon Tools and check the m2ts files with MediaInfo

ChronoCross
26th April 2010, 03:51
I could get the video to play on my PS3 but it didn't have any audio. Any suggestions on getting it playing with audio on the PS3?

nurbs
26th April 2010, 06:34
I don't know where you got that from, but it's wrong. At least my blu-ray player happily plays everything with a BD structure, whether it comes from DVD Architect, Encore, MultiAVCHD, or TSMuxer. No AACS at all.

I know that it's wrong, hence the smiley.

Warperus
26th April 2010, 09:53
Is it possible to add some sort of tune, preset or whatever to make BR-compatible encoding without adding every mandatory option by hands?

deank
26th April 2010, 11:32
Now officially Congratulations :)

Btw we have free Authoring app's with menus and chapters: multiAVCHD.

Did you check it with Sony Verifier?

Yes it passes, with few warnings, about missing AACS files and other unnecessary things.

That is really nice to know :)

sneaker_ger
26th April 2010, 13:40
German c't magazine (sells some 350.000 copies monthly) made a short article (http://www.heise.de/newsticker/meldung/Freier-H-264-Encoder-x264-nun-offiziell-Blu-ray-tauglich-986218.html) on their website about x264's blu-ray capabilities.

sebazvideo
26th April 2010, 14:45
I know that it's wrong, hence the smiley.

He he, sorry, I haven't been sleeping well. I missed the sarcastic smiley.

OvejaNegra
26th April 2010, 15:16
YAY!!!

Now we need XDTS and XAC3 :)

Congratullations for the good work!!!

Now coming soon i hope:

>>> The video content of this disc was encoded with x264. A professional-quality encoder you can get for free. Please visit http://x264.nl/ for the latest version<<<<

Or :)

BD authoring tool X -> Export -> AVC encoding -> about this encoding plugin -> encoding powered by x264

Good work!

Atak_Snajpera
26th April 2010, 20:59
Wouldn't be simpler to use uncompressed audio instead of DTS-MA? You still have plenty of space to use on DVD-SL. This also could solve some audio problem with some BD-players.

Blue_MiSfit
26th April 2010, 21:48
I think it would affect video quality, since the VBV settings are already aggressive to work on DVD5..

~MiSfit

Atak_Snajpera
26th April 2010, 22:46
Are you joking?
Audio -> 48000hz x 6 ch x 2 (16bit) = 562.5 KB/s
Video -> 15000kbps / 8 = 1875 KB/s
-----------------------------------------------
Audio + Video = 2437.5 KB/s (DVD x1.85) [http://en.wikipedia.org/wiki/DVD]

This extra data should not be a problem for DVD.

Blue_MiSfit
27th April 2010, 02:37
Well, I thought the video was suffering from VBV restrictions already and didn't want to make things any worse :)

~MiSfit

mariush
27th April 2010, 04:49
Wouldn't be simpler to use uncompressed audio instead of DTS-MA? You still have plenty of space to use on DVD-SL. This also could solve some audio problem with some BD-players.

What's wrong with plain AC3?

Atak_Snajpera
27th April 2010, 17:15
AC3 is not lossless.

Blue_MiSfit
27th April 2010, 21:37
A suggestion, perhaps this thread could be merged with the "preliminary announcement" thread, along with a post detailing BluRay compliant settings? A sticky might not be the worst thing :)

~MiSfit