![]() |
Easy way to create Blu-ray/AVCHD using the X264 encoder
1 Attachment(s)
Hi
Please check the pre-requisites below as it will not work without a couple of other programs (all free). I've now uploaded for anyone who would like it an easy application that uses the very good x264 encoder to create Blu-ray/AVCHD compliant video from Sony Vegas (my main use but can be used with any editor that can output to the Lagarith codec). This isn't a commercial application, and no advertising, no nag screens, just an application I did for myself that other's may benefit from. Download from my SkyDrive here Download Please note I haven't gone to the trouble or expense of digitally signing the install file, so on Windows Vista/7 you will get an "are you sure" alert when installing. Feel free to pre-scan with a virus scanner if you wish. The application uses .NET 3.5. What it does?
Pre-requisites:
To use from Vegas:
Note: if you play the Lagarith file back it may look washed out, don't worry, after encoding all will be okay Encoding
Let me know of any problems, hope it is of use to someone. Credit to: This application uses the free libraries from MediaInfo and TSMuxer, and of course the open-source X264 encoder, these are included in the installation. The x264 encoder is the latest version as of todays date. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Great work Phil. Let's bump this thread up.
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Phil, you really should put this in the Sony Vegas Tutorials sticky so it doesn't get buried in a few days.
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
I would also put it as a sticky in the Non-Linear Editing on the PC forum, as it will be really helpful for all users on Windows, not just Vegas.
Great work, thanks for sharing! As this is something you created for yourself, I assume there's not much point in making "feature requests", but for what it's worth: - A no-installer version would be great - With CineForm and DNxHD both available for free, what is the reason you prefer to still use Lagarith? (I know CF and DNxHD aren't lossless, but do you actually notice a difference that justifies the monstrous file sizes?) |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
Preference for Lagarith is just that it's free and lossless, other methods are frame serving from Vegas but I've found that a bit of a hassle and not always reliable. Given most of us have huge hard-disks with tons of space working with big files isn't too much of an issue hopefully. Also using Lagarith it will accept and store the video in the RGB colour space, which is what Vegas works in on the timeline, so it's avoiding colour space conversions, leaving AVISynth to sort that out with the correct colour matrix for Blu-ray/AVCHD, and that seems to keep things very true to the original. My main goal was not to introduce any extra conversions or losses just because encoding was happening by x264 outside of Vegas, so Lagarith is essentially the raw output from Sony Vegas. I can look at supporting other inputs, I'll have a go with Cineform, in theory any codec supported by the PC should work via AVISynth, just the application doesn't let it as some of the AVISynth colour conversions might not be correct. A no installer version I can put together easily, I'll upload this as an option shortly. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
1 Attachment(s)
Hi Phil,
May I ask you, why your "Easy Blu-ray encoder" doesn't support 23.976 frame rate for blu-ray encoding (1920x1080)? |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
An oversight on my part, I'll add support in the next update, which also includes the ability to use CineForm files as well. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
A new version is here: Windows Installer or Download Files only Please see first post for pre-requisites and usage. Changes: Added support for CineForm AVI files Added support for 24fps AVI files Added option to set the tuning for x264 (film/video, grain, animation, still images) Added Maximum Quality option for x264 Added support for Lagarith YUV, it is recommended to output to Lagarith using RGB but it will now encode Lagarith YUV. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Thanks again for all the effort!
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Nice! Thank you very much, Phil! We appreciate your hard work Well done!
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
3 Attachment(s)
Hi Phil,
It's me again. I am sorry, but I have another question: why is output color space YUV? I rendered from Vegas 11 to LAG with RGB color space. After encoding in "Easy Blu-ray Encoder" the color space now is YUV. Take a look at this pictures, please. First pic is input info, second is output info and last pic is interface of "Easy Blu-ray Encoder". Anyway, thanks again. |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
H264 for Blu-ray/AVCHD files are always YUV, so it is correct the final encoding is YUV 4.2.0. The output from Sony Vegas being RGB to Lagarith is a convenient way of avoiding any extra colour space conversions and so stops any small rounding errors that might be introduce with multiple colour space changes. Sony Vegas works internally with RGB, so outputting as RGB to Lagarith is essentially the raw output from Sony Vegas. AVISynth is then used by the Easy encoder to convert RGB into YUV 4.2.0 for the x264 encoder. This method seems to provide the most accurate final output with no shifts in colours due to colour space conversions. I don't think H264 supports RGB colour space, it has to be YUV regardless. Hope that helps explain. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Thanks a lot, Phil! :-)
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Question answered. Thank you Phil for this tutorial.
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
I've encountered a little problem, when encoding with x264, I selected the bit rate at the maximum value allowable for bluray, which is 40,000. Now I'm trying to have DVD Architect author it, and it can't. There's an error message stating that the overall bitrate is above 28,000. So apparently, DVD Architect cannot author anything that has a bit rate above 28,000. Am I misunderstanding what DVD Architect is telling me? FYI, I'm trying to have DVD Architect author this 5.5 GB .m2ts file as a BD, to a 8.5 GB double-layer DVD+R.
I've been able to author a BD this way before, but have never used a bitrate this high. Thanks for any help, |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
On DVD you can't go higher than around 18Mbits/sec, this is because DVD's can't be read faster than that in Blu-ray players to guarantee they will work without stuttering and stopping. Not sure where DVD Architect gets it 28MBit/sec from? Blu-ray is only Blu-ray when on a Blu-ray disc. There is a bug with DVD Architect anyway where it crashes on preparing the footage when it is interlaced and produced by x264. I'd recommend using MultiAVCHD (a google will find it) which is free and and is more accepting of video without wanting to re-encode it. Hope that helps. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Phil, I may be over-cautious but when I tried to download your first link I got this message :
"This item might not exist or is no longer available This item might have been deleted, expired, or you might not have permission to view it. Contact the owner of this item for more information." After a bit more fiddling around it appeared to be hijacked by "sendspace.com" - Is this legit ? RonC. |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
::: multiAVCHD home ::: This program is a free but closed source work of a single author that has not been updated for more than two years. The author apparently wrote the program by reverse engineering the AVCHD file catalogue. MultiAVCHD makes use of the multiplexing program tsMuxeR which was also released as free but closed source by smartlabs. SmartLabs Smartlabs removed tsMuxeR from their public downloads a couple years ago, about the same time that multiAVCHD stopped being updated. The main advantage of x264 is its professional quality and efficiency. While multiAVCHD can be used to master an AVCHD or blu-ray disk from x264 output, I would not recommend it for professional use. Moreover, for casual use I would recommend the standard Vegas encoders and DVD Architect. It is surprising that open source blu-ray mastering tools don't exist which are similar in quality to the open source x264 encoder. I think this thread is an important one, because there is a great need to come up with a good way to master AVCHD and blu-ray disks from x264 output. |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
Thank you, |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
|
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
The reason even the casual user benefits by using multiAVCHD and TSmuxeR is the output quality of the video far exceeds what you can get from the AVC encoders included with Vegas Pro 11. x264 at about 2.5Mb/s is equal quality to Sony/Main Concept AVC at 16Mb/s. TSmuxeR is available for download from Digital Digest tsMuxeR 1.10.6 | Software - Digital Digest TSmuxeR alone is a highly useful utility for muxing/demuxing streams, and simple authoring of a Blu-ray playable disk with chapter stops, just not menus. And it works with AC3 5.1 audio and 1080/60p. multiAVCHD just completes the project by allowing you to have menus. Used in conjunction with Phil Lee's GUI with AVI Synth scripts and Lagarith lossless codec, or the free Avid DNxHD plugin for Vegas and x264,or multiAVCHD and TSmuxeR, the tools remain highly relevant and available for free. If you shoot native AVCHD, using a workflow that includes x264, TSmuxeR and a lossless or nearly lossless intermediate codec like Lagarith or DNxHD, is going to be the only way to maintain the native quality end to end. TSMuxeR remains available for download from Digital Digest here. V.1.10.6 is the latest. Development has ceased but this version is bug free and completed. Doom9 is another valuable souce through the HD authoring forums. DeanK is the author of multiAVCHD and if you're lucky he may answer your questions to him. I've been burning Blu-ray playable, AVCHD and even HD-DVD disks with menus and chapters onto all manner of media including USB flash drives, red laser DVD and dual layer, and BD-R/RE for years. These are the pc tools I recommend at a minimum: Vegas Pro 11.0 64 bit -the only to pay for, the others all free. Quicktime V.7 Avid DNxHD plugin x264 TSmuxeR Imgburn V.1.10.6 is the latest. Development has ceased but this version is bug free and completed. tsMuxeR 1.10.6 | Software - Digital Digest Doom9 is another valuable souce through the HD authoring forums. DeanK is the author of multiAVCHD and if you're lucky he may answer your questions to him. I've been burning Blu-ray playable, AVCHD and even HD-DVD disks with menus and chapters onto all manner of media including USB flas drives, red laser DVD and dual layer, and BD-R/RE for years. These are the pc tools I recommend at a minimum: Vegas Pro 11.0 64 bit -the only to pay for, the others all free. Quicktime V.7 Avid DNxHD plugin x264 TSmuxeR Imgburn |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Tom,
Thanks for your detailed response. I'm still a little unclear on the exact steps to follow, please help a newbie. So I used Phil's tutorial to obtain an .avi file. DVD Architect would not touch this file, saying the bitrate is too high. Since you've been burning bluray quality videos to all kinds of media, obviously I don't have to burn my project to a bluray disc, I can burn it to a DVD, while keeping the high bluray quality of that .avi file. What should be my next step? Assuming I don't need a menu, I can use TSmuxeR to burn my video to a DVD, and it will have BDMV folder structure and thus playable on a standalone bluray player? Do I even need to Avid DNxHD plug in? Thank you! |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
1. Start with some sort of HD video file. 2. Encode the audio as an elementary AC3 audio stream using FFmpeg or Aften. 3. Encode the video as an elementary H264 video stream using x264. 4. Multiplex the video and audio to a blu-ray or AVCHD catalogue using tsMuxeR. 5. Burn the resulting catalogue on a DVD using ImgBurn. The result will be a DVD with HD content that plays in some blu-ray players. There are online guides which explain the details better than I can here. In addition to the technical discussions on Doom9 you may prefer to start with the howto guides on VideoHelp. Guide, How To, Tutorial and Article list - VideoHelp.com |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
Correct you can burn an AVCHD disk to a DVD, but as Eric says you can't guarantee compatibility, will play on some but not all. Burning to Blu-ray media is more compatible generally but even a few Blu-ray players won't read Blu-ray writable media. Eric's guide above is very good. |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Hi
Quote:
If a player doesn't play BD-R or BD-RW, it will either be an authoring issue, for example using the wrong file format or not create the file structure correctly, or the media, player or writer is faulty. Regards Phil |
Re: Easy way to create Blu-ray/AVCHD using the X264 encoder
Quote:
|
All times are GMT -6. The time now is 04:26 PM. |
DV Info Net -- Real Names, Real People, Real Info!
1998-2025 The Digital Video Information Network