Hi everyone. I'm about to go crazy working on my first Blu-Ray disc! I work on a Mac Pro using Encore CS6 on Mac OS X 10.6.8. I am looking to use an AVC/H.264 encoded file by the x264 compression engine, which is supposed to be the best out there. For this, I have tried using FFmpegX and Handbrake with regular settings (1920x1080p, 23,976fps, 16:9, constant quality) starting from an Uncompressed 10-bit output from my Premiere timeline.
I am very satisfied by the compressed H264 outpout file, but no matter which application I use and the different configurations (tried different profiles inside Handbrake), everytime I import the file, Encore sees it as a file that has to be Transcoded again. And of course you can imagine how the result looks like when an h264 file is encoded twice...
I have tried reading every possible forum on the subject of H264 Blu-Ray compatible files... without any success. I desperately need your help!
I have even tried pointing to the "encoded" file on my hard drive by telling Encore it has been encoded already, but the compilation of my Blu-Ray fails everytime when I does this.
I have succeeded once to create a file with Handbrake that is "sometimes" accepted in Encore (happened twice, I think), but it's bitrate was too risky to my taste for compatibility (38mbps) and therefore was only a test. I have no idea why this one worked...
Hi Eric
Join the club. I have spent over a week now trying to resolve this problem without success. I have found that it fails to get the correct aspect ratio or recognise the correct interlace with 1440x1080i25 HDV video. As you probably know Encore is riddled with bugs but I have been kooking for a work around. The built in mainconcept encoder does work but is greatly inferior to x264. There is a plugin called x264pro which seems to work with progressive video. I have been testing this and found there is a bug with interlaced video which they are fixing now. I have done alot of web searching without success.
Regards Trevor
Haha! Thanks Trevor. ![]()
I must say it is a relief to know that somebody else shares the same pain. My file isn't even as fancy as yours (purely traditionnal/common 1080p 23,976fps file)
Unfortunately, since I'm on a mac, I cannot try x264pro (windows-based only)... But I don't see why Encore wouldn't be able to accept ANY file compressed by a mac-based x264 encoder. It's just driving me crazy!!
And the problem is that there is absolutely no other alternative on the mac platform to author Blu-Ray discs.
Thanks Stan. Here's another one with "constant framerate". Same problem. Still "untranscoded".
Go to View -> Tree. Then, under the Video section, find "Frame Rate." For me, the "Frame Rate Mode: Variable" is right before that; and after them is a minimum and maximum.
In Handbrake, check both that you specify "constant," and also that you specify a rate (rather than using "source" or whatever).
I don't think the mediainfo should be different. (I am PC.) Can you post a screenshot of what you are seeing?
I don't know for a fact that variable framerate is an issue; but it seems a logical problem - and once EN transcodes it, it is a constant 23.976.
Is the 23.976 a drop down in Handbrake?
Thx Jim. Only renaming the files doesn't work, of course. In the handbrake manual it says:
You can simply change the file extension between .mp4 and .m4v as the file is exactly the same. There are no differences in the content or container itself.
Did you make it work on your side just by changing the file extension Jim? I will adjust the preference in Handbrake for my next tests in order to output the m4v file directly.
Eric_Daoust wrote:
I have tried reading every possible forum on the subject of H264 Blu-Ray compatible files... without any success. I desperately need your help!
Hi Eric,
Can you download and try the sample pmk3.264 in encore. The sample can be downloaded from here: http://hem.bredband.net/b131706/
This sample is blu-ray compliant and works perfectly with Sony DVD Architect Pro 5. but I need to know if it also work with encore.
Hi PMK3! Your file works perfectly fine. When imported, it says "Do not transcode" in Encore. Now please allow me to ask a way to encode a file like this with x264 on mac? ![]()
I've also tried compiling x264 yesterday on my mac, but I'm such a newbie I couldn't add mp4 support to it. I've installed Xcode, then Mac Ports, then the basic tools. But I would probably require more guidance on install it properly.
Yes. My main problem was with amorphic video as encore would not recognise the correct sar. It turns out that Encore has not kept up todate with the H.264 specs for aspect_ratio_idc. I was able to patch x264 to fix this. I am still having problems with getting the interlace field order right but that doesn't seem to stop me building blu-rays. I would advise you to run x264 directly and not through a gui at the moment. These are my settings:
x264.exe --level 4.1 --bluray-compat --tune film --bitrate 20000 --threads 16 --keyint 25 --open-gop --weightp 0 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 25000 --tff --input-res 1440x1080 --videoformat pal --fps 25/1 --force-cfr --output-csp i420 --input-csp i420 --sar 4:3 --log-level info --output "output.264" "input.avs"
The unfixed x264 will work with progressive video but you will need to edit the options. I am using YV12 input. I am not saying these settings are optimum but they work with my HDV video. Always check the logs for warnings.
Look at this:
http://mailman.videolan.org/pipermail/x264-devel/2011-January/008186.h tml
Encore uses a table which has not been updated to the latest h264 spec. All you have to do is find the table in x264 binary and patch with a hex editor. You need to change 04 03 0E to 00 00 ff. x264 will then use the extended form of aspect_ratio_idc. Make sure you find the correct place in the binary by checking for the whole table. This will make x264 confirm to the old h264 standard. To summarize x264 will create an aspect_ratio_idc of 14 for HDV video which encore will not recognize.
The Mainconcept encoders gets the pic_struct wrong in the SEI. It uses 1 and 2 for top and bottom fields respectivly wheras it should be 3 and 4 as used by x264. Unfortunatly Encore perpetuates Mainconcepts bug and interprets pic_struct wrongly. To change to this in x286 would require the source to be edited but I don't think it is worth doing as the resulting stream will not conform to H264 standards. Encore will accept x286 video as don't transcode so encore will build a disc with H264 complient video which certainly not true using Mainconcepts encoder.
Please note that the values 1 and 2 should be used for paff interlacing and 3 and 4 for mbaff. Unfortunatly Mainconcept uses 1 and 2 for both. Encore thinks x286 video is progressive for tff video and tff for bff video.
Encore is very out of date and has numerous bugs which have been around for years.
Hope this helps
Regards Trevor
Thanks Trevor. Unfortunately, I'm a real newbie when it comes to programming knowledge. I've used an Hex editor in the past on PC, but are you aware if there is a solution like this on the mac platrform which I'm currently using?
If it was just to patch the exe file with your recommendation, I could probably do it easily. But then again, I'll need access to a PC ![]()
You're saying also that any file encoded in Mainconcept won't be *really* H264 compliant even if Encore is accepting it?
You only need the patch if you are using amorphic video ie non square pixels such as 1440x1080i25.
The interlace problem is seperate. There are 2 ways to encode interlace in the h264 specification PAFF and MBAFF. In PAFF pict_struct can have a value of 1 or 2. With MBAFF pict_struct can have a value of 3 or 4. Mainconcept encoders have got this wrong and use 1 & 2 for both PAFF and MBAFF. In other words Mainconcept does not conform to the standard for MBAFF encoded video. In general MBAFF works best and x264 only supports MBAFF.
Progressive video should be no problem as long as the basic rules are followed see
http://www.x264bluray.com/home
One importent point progessive video is not supported with HD at 25 or 30 fps. To get round this there is a special option in x264 called fake_interlaced which will turn progressive into fake interlaced complient with Blu-ray.
Hope this helps.
It does help alot. I really appreciate your comments. I've tried compressing my file with these settings on my mac in terminal :
x264 --level 4.1 --bluray-compat --tune film --keyint 24 --open-gop --slices 4 --bitrate 35000 --preset veryslow --vbv-bufsize 30000 --vbv-maxrate 25000 --colorprim bt709 --transfer bt709 --colormatrix bt709 --fps 24000/1001 --force-cfr --input-res 1920x1080 input.mov --videoformat ntsc --sar 16:9 --output OUTPUT_tjh65.264
The program seems to work great and does not make any error message during or after compression. But when I import the resulting file in Encore, it still says that Encore has to transcode it and it seems that the content itself of the .264 file is corrupted. Here's a sample image (the video looks like this anywhere on the timeline):
You can download a video sample here if you want to try and see the original specs of the video. Thanks in advance!
North America
Europe, Middle East and Africa
Asia Pacific