Articles - > MeGUI H.264 Conversion Guide

Printer Friendly Version Printer Friendly Version

User Rating:
(2 votes)
Details / Vote Now

User Comments:
mrpijey: Excellent guide! The only problem I...
More / Post Your Comments

Page Select:

  1   2   3   4   5   6   7  

Page 7 of 7: Cutting, Bitrate Calculator and AutoEncode

Related Articles:
  1. PS3 H.264 Conversion Guide
  2. Xbox 360 H.264 Conversion Guide
  3. H.264 Encoding using StaxRip
  4. RipBot264 PS3, Xbox 360 H.264 Encoding Guide
  5. H.264 Playback Guide

Step 7: 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 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. 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). 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.

    We're done :)

     

     

     


      1   2   3   4   5   6   7  

    Article Navigation:

    Page 1: Introduction and Installation
    Page 2: DVD Ripping
    Page 3: D2V Creator
    Page 4: AviSynth Script Creator
    Page 5: Video Encoding Options
    Page 6: Audio Encoding Options
    Page 7: Cutting, Bitrate Calculator and AutoEncode <--

    User Rating:

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

    User Comments:

    Excellent guide! The only problem I have with this approach is that you can't control the output resolution very efficiently (meGUI reports 16:9, but outputs the video in 4:3 anyway, and if manually resized the output is skewed anyway) and the output video is extremely washed out compared to the original. I played back the resulting mp4-file in Quicktime, VLC and other players and it's the same on all, blacks are grey. The entire picture has a LOT of brightness.
    Posted by: mrpijey, 15:39:29, Sep 13, 2007


    Thanks, I've been trying to learn how to use this tool. There is a doubt in using autoencode: I'm not sure the profile I chose is used or not. for example, in the main input interface, I chose MKV as container and then the video profile. But when I press autoencode, the window pops up did not show any chosen profile while the container is MP4 as default... It feels the the settings in main input interface are ignored?
    Posted by: Astro_Toy, 03:26:58, Jan 19, 2008


    Astro_Toy: Rest assured that the profile settings are being used. However, you do need to separately select the container (MKV, MP4) since this setting is not part of the profile.
    Posted by: DVDGuy, 03:38:58, Jan 19, 2008


    I keep getting "error" for audio when I start the encoding. Any ideas? I tried .mkv & .mp4 & I tried both the 5.1 audio track & the 2.0 track from my DVD.
    Posted by: manu08, 18:32:33, Aug 25, 2008


    Check your application routes in settings, Had that same problem encoding with NeroAAC and it was because I didn't have right route to the codec. Hope this helps. :-)
    Posted by: Reizic, 13:22:40, Oct 16, 2008


    I'm getting this error:"C:\Program Files\megui\tools\x264\x264.exe: unknown option -- nal-hrd" when I encode using the SA Blu Ray profile. I made up my own blu ray profile without the --nal-hrd option. It is running now but I have to wait another 9 hours for it to finish (I have a crappy 1.8 GHz Athlon PC) and see if the result is any good. In the meantime, can you point me to any fix to this error?
    Posted by: Sibenik, 08:57:39, Dec 7, 2008


    Sibenik: That profile works for me. Are you using the latest version of x264 as updated through the MeGUI updater (as opposed to downloading the latest x264.exe from the official site)? Try that if you are still getting this error.
    Posted by: DVDGuy, 15:08:33, Dec 7, 2008


    ok i keep getting an error when trying to use the avisynth creator it is a " Unable to render the file. You probably don't have the correct filters installed." all of the options are greyed out other than the Video input the avisynth which is set at "*scratchpad*" with the config button available and also the video output is available. I've followed this tutorial but it doesn't address this issue but i might have missed something. Any thoughts guys?
    Posted by: Roguecat, 17:11:56, Jan 24, 2009


    Roguecat: Sounds like you don't have the right filters installed. Make sure you are able to playback the file in Media Player Classic, and it is highly recommended that you use ffdshow, as it works very well with Avisynth
    Posted by: DVDGuy, 18:56:56, Jan 24, 2009



    Comments: