Articles - > Xbox 360 H.264 Conversion Guide

Printer Friendly Version Printer Friendly Version

User Rating:
(2 votes)
Details / Vote Now

User Comments:
karto: Great guide! I've been trying to...
More / Post Your Comments

Page Select:

  1   2   3   4   5   6   7   8   Next Page

Page 6 of 8: MeGUI: Cutting, Bitrate Calculator and AutoEncode

Related Articles:
  1. PS3 H.264 Conversion Guide
  2. AVI to (Xbox 360 compatible) WMV Conversion Guide
  3. RipBot264 PS3, Xbox 360 H.264 Encoding Guide
  4. DivX Converter: PS3/Xbox 360 compatible H.264 Encoding Guide
  5. Xbox 360 DivX, XviD Playback Guide

Step 6: MeGUI: Cutting, Bitrate Calculator and AutoEncode

If you wish to cut your input so that you don't encode the entire video, it is possible to do this using MeGUI's AVS Cutter tool. To launch it, go to the "Tools" drop down menu and select "AVS Cutter". You will be asked to load in your AVS file (the one generated in Step 3) - do it.

MeGUI: AVS Cutter


MeGUI: Preview Cut Position


What's going to happen here is that a list of "zones" need to be added. Each zone has a start frame and an end frame, and all frames in between will be kept (and all frames outside of the zones will be cut). You can either manually enter the desired frame number into the "Start Frame" and "End Frame" input box of the AVS Cutter tool and then press "Add" to add the zone, or use the video preview to skip to the appropriate sections and press the "Zone Start" and "Zone End" buttons to set a start/end frame, and then the "Set" button to add the zone to the list. If you specified multiple zones, you can also specify a transition between the zones (fade is the default setting). Once you are all done, press the "Add cuts to script" button and the cuts will be added to your AVS script. Press "Close" to close the "AVS Cutter" tool.

Press the "AutoEncode" button or from the "Tools" drop down menu, select "AutoEncode" to launch the Automatic Encoder setup windows.

MeGUI: Automatic Encoder


This is pretty straight forward - just specify the output size of your video file either as a file size, or as an average bitrate and make sure the Container is set correctly, to "MP4" for the purpose of this guide. For AVI/DivX/XviD conversion, you can get the same quality video at roughly 80% of the original AVI/DivX/XviD file's filesize. For 720p/1080p QuickTime HD (MOV) files, these are already using H.264 so you should try and match the file size whenever possible (again, make sure the "Average Bitrate" is under control). For maximum compatibility with the Xbox 360, the bitrate peaks should not exceed 15 Mbps (15,000 kbit/s, although I've observed brief peaks of more than 25 Mbps that seems to not cause problems, and that the Xbox 360 handled peaks better than the PS3), otherwise you could see skipped playback. There is currently no way to control the bitrate peaks for the encoded file, and so as a general rule, try to keep the average bitrate of the video under 9000 kbit/s. The output location can be changed as well - this file will be the final output file that you want, so make sure you remember where you put it and don't accidentally delete it when cleaning up (I like to put this file in a different folder to all the other files, just in case).

When you're ready, press the "Queue" button and all the necessary jobs will be added to the encoding queue.

Click on the "Queue" tab and all the jobs should be listed there. Below is an example job queue where I have two video clips "tdk" and "seu" to be encoded, an explanation of the queued jobs shown in the screenshot below:

  • job1: Encoding audio track for clip "tdk"
  • job2: Encoding video, 1st pass for clip "tdk"
  • job3: Encoding video, 2nd pass for clip "tdk"
  • job4: Muxing audio and video to MP4 for clip "tdk"
  • job5: Encoding audio track for clip "seu"
  • job6: Encoding video, 1st pass for clip "seu"
  • job7: Encoding video, 2nd pass for clip "seu"
  • job8: Muxing audio and video to MP4 for clip "seu"

    MeGUI: Queue


    New in MeGUI 0.2.6 or above is the idea of "workers". This has been introduced to take advantage of multi-core processors, allowing parallel job execution (processing more than one job at a time). Of course, certain jobs are dependent on another previous job being completed before it can begin (for example, job2-4 above requires job2-3 to be finished, and job2-5 requires all previous jobs to be finished), and so parallel execution is not always possible. But if you are encoding multiple video clips at the same time, then parallel execution allows each core of your CPU to be fully utilized at all times, allowing up to 4 video encodings at the same time on a quad core processor, for example. In essense, each "worker" represents a CPU thread that can be run on an individual core - so if you have a dual core processor, then you might want to create two workers, quad-core => 4 workers, etc. Even if you have only a single core CPU, you will still need to create at least one worker before MeGUI can start encoding video. To create a worker, from the "Worker" menu, select the "Create New Worker" option and then enter a name for this new worker.

    MeGUI: Create New Worker


    Create as many workers as you need (again, 2 for dual-core, 4 for quad-core ...). You can right click on each job to specify which worker it will use, or you can leave it unset and MeGUI will automatically assign workers (recommended). You only need to do this the first time you use MeGUI, as worker settings are remembered.

    MeGUI: Send to Worker


    When you are ready to start encoding, press the "Start" to start the encoding. For the above job queue example where I had two video clips "tdk" and "seu", when I press the "Start" button, both encodings will start with different workers, thus allowing me to encode two video clips at the same time (which would only be of benefit if you have multi-core or multi-CPU setups, of course). You can view the status of your workers by selecting the "Workers Summary" option from the "Workers" menu.

    MeGUI: Worker Summary


    When it's all finished, your MP4 file should be ready. You can delete all the other files, unless you plan on making more encodings from them.

     

     

     


      1   2   3   4   5   6   7   8   Next Page

    Article Navigation:

    Page 1: Introduction + Installation
    Page 2: DVD/MPEG-2 Conversion
    Page 3: MeGUI: AviSynth Script Creator
    Page 4: MeGUI: Video Encoding Options
    Page 5: MeGUI: Audio Encoding Options
    Page 6: MeGUI: Cutting, Bitrate Calculator and AutoEncode <--
    Page 7: TVersity: Playing the MP4 file on your Xbox 360
    Page 8: Zune: Playing the MP4 file on your Xbox 360

    User Rating:

      Average Rating: Your Rating:
    Registered Users: (2 votes)
    Non-Registered Users: (34 votes)

    User Comments:

    Great guide! I've been trying to convert some Xvid to h264 without luck - this guide worked the first time :) I only have one problem - the audio on my converted file is out of sync (<1 sec early). Any ideas what I can do? The source was an avi (Xvid / AC3) in case that matters.
    Posted by: karto, 21:21:51, May 13, 2007


    Thank You! I don't like the Zune software as it is way to much bloat and the install is ridiculous when all I want is a streaming program. I recommend giving Tversity a try as I got it streaming the h264 file to the 360 without transcoding to wmv.
    Posted by: aledger, 15:39:38, May 14, 2007


    Yes, TVersity was updated just shortly after I had finishing writing the guide with a patch that fixed incompatibility problems with the new Spring update. The next version of the guide might use TVersity, although it is slightly troublesome to setup as it requires a port to be opened in your firewall
    Posted by: DVDGuy, 17:33:26, May 14, 2007


    Also, with Tversity, I was able to stream High Profile without a problem.
    Posted by: aledger, 04:48:19, May 15, 2007


    Until I update the guide for TVersity, for those that want to use it but don't know where to begin, have a look at our earlier Xbox 360 DivX/XviD playback guide, which has TVersity and connecting it to Xbox 360 instructions: http://www.digital-digest.com/articles/Xbox_360_DivX_XviD_Playback_Guide_page3.html
    Posted by: DVDGuy, 12:04:22, May 15, 2007


    Actually it looks like TVersity is still a bit fiddly when it comes to MP4/H.264 support - it does support MP4, but it will transcode the video to WMV and then stream to the Xbox 360 - huge CPU requirements and defeats the purpose of using H.264 in the first place (poor quality). You can probably modify the profiles and tell TVersity that the Xbox 360 now supports MP4/H.264 files natively, but it's a bit fiddly (see this thread: http://forums.tversity.com/viewtopic.php?t=5138). The next release should hopefully fix all these problems, or until someone comes up with an updated profile. So for now, it's Zune.
    Posted by: DVDGuy, 23:19:51, May 15, 2007


    Yes, I did the bit of fiddling with the profiles.xml and then made sure to tell it to never transcode and that's how I got the streaming to work.
    Posted by: aledger, 13:56:25, May 16, 2007


    Just so you know, You also need to have Avisynth 2.5 installed before you can install and update MeGUI. You can grab a copy here: http://sourceforge.net/projects/avisynth2/
    Posted by: timeisntreal, 02:34:25, May 19, 2007


    I've updated the guide to add in the AviSynth install
    Posted by: DVDGuy, 13:18:54, May 19, 2007


    I'm converting from Xvix/DivX AVIs to H.264 MP4s, but I keep getting an error after autoencoding saying that I have an incorrect colorspace and it needs to be converted to YV12. I clicked "Yes" and continued, but the MP4 file that is outputted looks washed out when compared to the colors of the original Xvid file. Is this normal and is there a way to fix this? Also, how do I find the bitrate of my original Xvid file so I can set the bitrate in the "bitrate calculator" to 80%-90% of it's original value as you suggest? I would also like to say great guide, it's been very helpful and I would have been completely stuck without it. Now I just how MS update WMP11 to work with MP4s so I can stop using the Zune software.
    Posted by: rapidgame, 13:04:48, May 22, 2007


    rapidgame: The "incorrect colorspace" error is normal, just click yes and that should be fine. The washed out colors may be due to your encoding settings, or even your decoder (h.264 codec, player) setting. As for bit-rate, just use 80 to 90% of the original file size of the AVI file.
    Posted by: DVDGuy, 17:28:49, May 22, 2007


    Thanks for the quick reply DVDGuy :-) I still can't figure out why the colors don't look the same on H.264, but the movies seem to look fine on my TV when I stream them from the Zune software. I'll try looking at the settings in my players to see if there's something I could change. I'm using FFDShow so I don't know if that might be where the problem is. When you say use 80-90% of the original AVI, is that when in the AutoEncode dialog? If I only use 80-90% of the original filesize in the bitrate calculator, that won't take into account the size required for the audio as well, would it? Thanks again for the great guide, I've been looking through Digital Digest and there's some really helpful stuff, definitely going into my bookmarks. I wish I could paragraph my comments, lol. ;-)
    Posted by: rapidgame, 06:49:05, May 23, 2007


    rapidgame: Try using Windows Media Player and then using the contrast/brightness/saturation, or just click on the ffdshow-video tray icon and configure the "picture properties" to your liking. When you specify an encoding file size in AutoEncode or the BItrate calculator, both takes into account the audio. If you keep the average bitrate as shown in the bitrate caculator between 800 and 900, quality should be pretty good (for DVD resolution video, 720x***).
    Posted by: DVDGuy, 13:49:26, May 23, 2007


    Anyone know why I get the following error at the AAC Nero stage. Looking for job processor for job... Processor found! Starting job job1-1 at 11:53:10 PM Starting preprocessing of job... Preprocessing finished! encoder commandline: successfully started encoding Processing ended at 11:53:11 PM ---------------------------------------------------------------------------------------------------------- Log for job job1-1 Channels=2, BitsPerSample=16, SampleRate=48000Hz C:\Program Files\megui\tools\neroaacenc\neroAacEnc.exe -ignorelength -lc -br 96000 -if - -of "D:\Rips\TENEN\VTS_01_1 T01 2_0ch 192Kbps DELAY 0ms.mp4"Error: MeGUI.AviSynthException: m2AudioAC3Source: error in file "D:\Rips\TENEN\VTS_01_1 T01 2_0ch 192Kbps DELAY 0ms.ac3" at MeGUI.AviSynthAudioEncoder.encode() ---------------------------------------------------------------------------------------------------------- The current job contains errors. Skipping chained jobs
    Posted by: iamamutt, 14:54:28, May 30, 2007


    I've followed this guide to convert from MKV files. Each source is fine but each output has gray flashes every second or so for the first 5 seconds to 3 minutes of the video. Check out the example here: http://www.echostring.com/videos/dd.avi I've been looking around for advice but so far have struck out. I'm following the tutorial completely and I've tried it on 3 different computers, all with the same results.
    Posted by: Echostring, 06:56:18, May 31, 2007


    I've followed this guide and it works perfectly, as long as I play the files back on the PC. When I stream the files to the 360 though I tend to get audio sync problems which don't exist on the PC. Is there some setting here that can be tweaked for greater 360 compatibility?
    Posted by: Garwoofoo, 19:19:23, Jun 2, 2007


    I'm now also getting the audio sync problems (lags 1 sec) that karto reported.
    Posted by: rapidgame, 12:29:37, Jul 1, 2007


    rapidgame: Please post your question in our forum. In the meantime, you might have to try and demux the AVI using AviDemux, and then load in the video and audio portions separately into MeGUI
    Posted by: DVDGuy, 14:41:38, Jul 1, 2007


    Just a tip that might be worth adding to the guide, you can embed an image in the MP4 file and it will display like album/cover art on the Xbox 360 if using the Zune software as the media server. This would be handy for DVD covers etc and I have tested it and works fine. The easy way to do this is with the freeware http://www.mp3tag.de/en/ which supports embedding JPG into MP4 files. Alternatively the manual way it to use MP4Box as MeGUI does not have any UI for this functionality. mp4box.exe -add "video.264" -add "audio.aac" -itags cover="cover.jpg" "out.mp4"
    Posted by: A8T8, 04:25:39, Aug 11, 2007


    That's a great tip A8T8, in fact I'm already using mp3tag to embed cover art into our H.264 MP4 trailers. I will add additional instructions to the next version of the guide
    Posted by: DVDGuy, 14:45:29, Aug 11, 2007


    I keep getting an mp4box.exe error during the mux mode at 98% anyway to fix this?
    Posted by: Daxx, 06:53:02, Sep 1, 2007


    That is great, and I always use Moyea SWF to Video Converter to convert swf file to Xbox360
    Posted by: sunmoon, 14:02:08, Nov 19, 2007



    Comments: