Working Solution: 720p/HD movies on your XBOX (using DiVX)
#1
Lightbulb 
*New DiVX Profiles / Staxrip updated*

As promised in this thread on encoding 720p movies using XViD (which was limited in terms of bitrate and resolution), here is my HowTo for making your xbox true-hd capable. In short, the trick is to use the DiVX codec and take advantage of its unique ability to limit the maximum-bitrate and not just set the average bitrate (as XViD is limited to).

This method allows you to encode XBOX-Compatible HD-Movies (from Blu-Ray, HD TS or H264 Rips) at very high bitrates without the need to downsize the source-movie. You can [b]watch full 1280x720 resolution movies on your xbox without visual frame dropping or stuttering! By having the opportunity to use high-bitrates (as opposed to the 4.500 kbit limit with XViD) we can finally reach the quality of h.264 encodings![/b]

Let's start:

  1. Grab the newest DiVX Codec from here (http://www.divx.com/en/downloads). The free version of the codec should be fine for our needs.


  2. Decide what tool to use to rip or transcode the movie. You can use Staxrip, AutoGK, VirtualDub, or any other frontend that supports DiVX codec.
    I suggest heavily you try out Staxrip, which comes with all needed extra software.
    Download the latest Beta-Version here https://sourceforge.net/projects/staxmedia/ (Updated Version!).

    I have prepared an XBOX-HD Template for Staxrip, which you can import in your installation.
    Download XBOX-HD Template
    It comes preconfigured to encode with DiVX and output the Video, Audio (and Subtitles) muxed into a MKV container.
    To import do this: Run staxrip, go to menu "Tools" -> Directories -> Templates. Paste my template in the folder that will open and restart staxrip.


  3. Prepare your source (Blu-Ray Disc, h.264-Rip, etc..) and make the necessary preparations (cropping, colorcorrection, audio-setup, etc)
    I will not get into details how to rip or convert a movie. There are enough
    guides on the net about this. Those tutorials for staxrip should get you started though:
    H.264 Encoding using StaxRip
    StaxRip XviD Install Guide

    UPDATE: CHECK OUT MY SCREENCAST ON HOW TO USE STAXRIP!

    Quote:Make sure that in staxrip when you click on Options on the right side of the applications window that you have "Use VirtualDub instead of VirtualDubMod" enabled. Otherwise i have had problems with wrong colorspace in the resulting video.

    Screenshot:

    Image
    _________

  4. Now for the fun part (Making sure the bitrate is kept withing the processing limits of our XBOX). Some background info first:
    Quote:You might have asked yourself why its possible with DiVX to encode 720p movies in full resolution that play smoothly on the XBOX. The reason is, that with DiVX encoder you can set a global Bitrate-Maximum. That means that the encoded movie will never surpass the defined bitrate over any 1 second period. Now, the XBOX can surprisingly handle quite high bitrates even in HD-Resolution movies. But as soon as the encoded movie goes higher than the supportable bitrate playback will stutter and you wont have much joy watching that flick on your box.
    The issue with XViD encoded hd-movies are exactly those uncontrollable bitrate spikes: Although you can define the so called "constant bitrate", this means in fact nothing more than that XViD-encoder will try to keep that bitrate as an average. But, it will not honor this as a maximum bitrate.
    As a result, even though the constant bitrate may be 5.000 kbit, your movie will hit bitrate spikes of 18.000 kbit or more quite frequently. As a result, encoding a high quality 720p movie with XVID that plays without serious stuttering is not possible.
    For Details on this issue, read my post here.

    Ok, so where to set the maximum bitrate in the DiVX configuration?
    Well, the first method is choosing one of the "Certification Profiles" like the "720hd" or "1080hd" profile in the DiVX configuration window. Those profiles have already a max. bitrate preconfigured. In the case of 720hd its set at arround 9.700 kbit.
    Now, if your movie is 1280x544 or lower res. you might as well just choose that "720hd" profile and start your encoding.
    But if its resolution is 1280x688 or 1280x720 you will have to set a lower max. bitrate manually. Plus, even for 1280x544 movies you might better be off
    by also manually defining a bitrate limit, as you can actually go higher than the default of the "720hd profile".
    Setting the max. bitrate manually can be done by opening up the "Advanced Settings". On the top you will find a line that says "manual cli".
    The magical max. bitrate is defined by the parameter prefixed with "-vbv".

    Screenshot:

    Image

    Quote: If you use the free version (Community Codec) you cannot edit the "Manual CLI". In that case you have to download my "Saved settings" and import them first in your registry (read below).
    So what do those values mean?
    E.g."-vbv 9708400,6291456,6291456" (which is the default value of the 720hd profile) means that the max. bitrate ever reached over any 1-sec. period is 9.708400 Mbit. The second and third value dont have to concern us now. Its only important to note that their value is mathematically depended of the first value.
    Ok, so when your movie is e.g. 1280x720 then you take the vbv values in the column labeled "CLI SWITCH" from my bitrate-table below and replace the one in the advanced settings.Dont replace the whole line! Just the part with "-vbv number,number,number"!
    Then press "Apply" and your good to go. Also make sure that the profile you set under "Certification Profile" on the main DivX configuration windows corresponds with the Profile in my bitrate-table!


    To make things easier for you and for those who have the free version of DiVX, you can add my presets to DiVX encoder by importing the following registry file (Version -v4-) here (just double click the *.reg file).
    After that, you can find all the settings of my bitrate-table under "Saved Settings" in the DiVX advanced configuration tab (see screenshot above).

    Bitrate Table:

    UPDATED Version v3!

    After a lot of testing, i have prepared the following bitrate matrix, which shows you the bitrate settings of the divx encoder relevant for the resolution of the movie. The reason for the different max. bitrates is, that the bitrate limit of the xbox is not static but (mainly) dependend of the resolution of the movie.
    Keep in mind, that those are my save settings. Which means that they have been choosen as so, that even the most complex scenes will play smoothly on the box (no VISIBLE frame dropping). Typical movies scenes that will make the bitrate spike are fast action in general, lot of panning, particles (snow, rain, fire, etc...).
    Even though you might have success encoding a movie with higher settings, by doing so you're taking the risk that your saturday movie night might be ruined as soon as the flic reaches its grand finale and the xbox cant cope with those high bitrates leading to stuttering.
    Keep in mind, that those values are based on the assumption that you have a Dolby/DTS decoder attached to your xbox. If not, you might have to reencode your 5.1 audio to a stereo ac3/mp3 track or lower the values in my table. Audio decoding takes cpu power, too!

    Image

    For copy & paste:

    Code:
    Pixel Width    Pixel Heigth    ~ Max. Bitrate    DiVX Profile    CLI SWITCH
    1280    <= 720    6.000 kbit    720HD    -vbv 5978400,3866624,3866624
    1280    <= 688    6.400 kbit    720HD    -vbv 6366400,4112384,4112384
    1280    <=544    11.700 kbit    1080HD    -vbv 11661200,7553024,7553024
    960    <=544    15.500 kbit    1080HD    -vbv 15548400,10076160,10076160


  5. What else is there to take care of?

    - Rate Controll Setting:
    Go 1-pass as long as you dont care about the filesize. Dont choose target bitrate, but instead a target quality with a quantizer of 1.8 to 2.4 (e.g. 2). Setting a target quantizer is the preferred setting quality wise.

    - Encoding Performance
    I suggest you choose "Better quality"

    - Bidirectional Encoding
    Choose "Adaptive Single Consecutives"

    - Quantization:
    It seems as if h.263 quantization is more strict in regards of keeping the max. bitrate.so choose that instead of mpeg-2!

    See this screenshots for additional settings i suggest:

    Image
    Image



That should be all to get you started encoding your first XBOX-compliant HD-Movie.
Any comments, suggestions or corrections are welcome. Have fun with your HD-Ready XBOX !

MEDIAINFO OF ENCODED MOVIE (NOTICE THE AVERAGE BITRATE)

Image

DISCLAIMER:
Cause of probable high cpu usage,you might want to verify your fan-speed settings in XBMC (put it on auto-temperature).
 
Thread Rating:
  • 3 Vote(s) - 5 Average


Messages In This Thread
Working Solution: 720p/HD movies on your XBOX (using DiVX) - by funkytown - 2009-06-29, 20:24
[No subject] - by Geeba - 2009-06-29, 21:20
[No subject] - by Geeba - 2009-06-29, 23:09
[No subject] - by funkytown - 2009-06-30, 00:10
[No subject] - by Oldie - 2009-06-30, 01:13
[No subject] - by funkytown - 2009-06-30, 01:36
[No subject] - by Oldie - 2009-06-30, 01:55
[No subject] - by Wimma - 2009-06-30, 02:20
[No subject] - by funkytown - 2009-06-30, 02:59
[No subject] - by Oldie - 2009-06-30, 05:17
[No subject] - by MBT1 - 2009-06-30, 10:21
[No subject] - by PrimusZa1 - 2009-06-30, 14:16
[No subject] - by funkytown - 2009-07-01, 13:06
[No subject] - by funkytown - 2009-07-01, 13:15
[No subject] - by PrimusZa1 - 2009-07-01, 13:34
[No subject] - by funkytown - 2009-07-01, 13:43
[No subject] - by PrimusZa1 - 2009-07-01, 14:10
[No subject] - by funkytown - 2009-07-01, 14:22
[No subject] - by PrimusZa1 - 2009-07-01, 14:26
[No subject] - by funkytown - 2009-07-01, 15:52
[No subject] - by willers.nail - 2009-07-01, 22:36
[No subject] - by Oldie - 2009-07-02, 02:36
[No subject] - by jwdv22 - 2009-07-02, 03:04
[No subject] - by willers.nail - 2009-07-02, 14:56
[No subject] - by funkytown - 2009-07-02, 15:47
[No subject] - by funkytown - 2009-07-02, 15:51
[No subject] - by buges - 2009-07-03, 21:26
[No subject] - by funkytown - 2009-07-03, 23:57
[No subject] - by solibra - 2009-07-04, 11:58
[No subject] - by jwdv22 - 2009-07-06, 20:28
[No subject] - by buges - 2009-07-06, 20:38
[No subject] - by jwdv22 - 2009-07-06, 20:40
[No subject] - by funkytown - 2009-07-07, 00:26
[No subject] - by funkytown - 2009-07-07, 00:30
Great settings so far - by jwdv22 - 2009-07-09, 00:52
[No subject] - by funkytown - 2009-07-09, 15:00
At work so I can't try yet - by jwdv22 - 2009-07-09, 17:30
Knowing with DTS soundtrack - by jwdv22 - 2009-07-14, 16:39
Divx settings? - by zimdba - 2009-07-19, 18:05
[No subject] - by funkytown - 2009-07-19, 23:29
[No subject] - by Iris - 2009-07-20, 07:02
[No subject] - by captain_obvious - 2009-07-22, 13:37
Which Player are you using - by jwdv22 - 2009-08-11, 00:45
[No subject] - by yrojnoid - 2009-08-12, 20:13
[No subject] - by captain_obvious - 2009-08-19, 22:55
Cool Thanks - by jwdv22 - 2009-08-19, 22:58
[No subject] - by willers.nail - 2009-08-21, 00:01
Quantitizer - by jwdv22 - 2009-08-21, 20:14
[No subject] - by hansen - 2009-09-10, 19:54
[No subject] - by Stan1971 - 2009-09-12, 21:30
Gb hungry is this process! - by Stan1971 - 2009-09-12, 21:41
[No subject] - by PrimusZa1 - 2009-09-13, 15:10
No, I figured it out... - by jwdv22 - 2009-09-14, 22:05
[No subject] - by thebaum - 2009-09-16, 06:39
[No subject] - by thebaum - 2009-09-16, 06:47
[No subject] - by thebaum - 2009-09-17, 02:03
[No subject] - by thebaum - 2009-09-23, 06:57
[No subject] - by r3skyline - 2009-09-24, 01:09
[No subject] - by thebaum - 2009-09-24, 01:24
[No subject] - by r3skyline - 2009-09-24, 03:35
[No subject] - by r3skyline - 2009-09-24, 18:06
[No subject] - by thebaum - 2009-09-25, 00:13
[No subject] - by r3skyline - 2009-09-25, 18:26
[No subject] - by thebaum - 2009-09-30, 01:44
A quick question - by clipper99 - 2009-09-30, 19:43
[No subject] - by frater - 2009-09-30, 22:24
[No subject] - by sion28 - 2009-10-01, 07:42
[No subject] - by frater - 2009-10-01, 09:26
No Audio In Final File... - by data10 - 2009-11-22, 19:33
[No subject] - by dmiller40 - 2009-11-26, 16:26
[No subject] - by pulck - 2010-01-02, 15:51
[No subject] - by dmiller40 - 2010-01-02, 16:45
[No subject] - by pulck - 2010-01-02, 21:23
[No subject] - by pulck - 2010-01-03, 17:49
[No subject] - by funkytown - 2010-01-06, 23:54
[No subject] - by pulck - 2010-01-07, 01:34
[No subject] - by Burra - 2010-01-18, 04:50
[No subject] - by funkytown - 2010-01-20, 18:43
[No subject] - by antigravity - 2010-01-21, 12:44
[No subject] - by antigravity - 2010-01-21, 13:01
[No subject] - by Drastus - 2010-01-21, 22:35
[No subject] - by funkytown - 2010-01-24, 01:47
Audio Video out of sync - by rashid420 - 2010-01-25, 02:09
[No subject] - by Drastus - 2010-01-28, 20:22
[No subject] - by funkytown - 2010-01-31, 04:47
[No subject] - by TheObo - 2010-03-23, 22:25
[No subject] - by antigravity - 2010-03-29, 07:34
[No subject] - by basscadet - 2010-04-12, 16:43
Boarders and file size - by Hybridtech - 2010-04-13, 15:09
[No subject] - by Drastus - 2010-04-13, 16:36
[No subject] - by Hybridtech - 2010-04-13, 16:49
[No subject] - by Drastus - 2010-04-13, 17:02
[No subject] - by Bomb Bloke - 2010-04-14, 02:49
[No subject] - by TomTom_84 - 2010-05-25, 18:23
[No subject] - by TomTom_84 - 2010-05-25, 20:40
[No subject] - by topho - 2010-05-30, 23:27
[No subject] - by tusko - 2010-06-02, 16:32
[No subject] - by pulck - 2010-06-03, 01:15
[No subject] - by tusko - 2010-06-03, 07:11


Logout Mark Read Team Forum Stats Members Help
Working Solution: 720p/HD movies on your XBOX (using DiVX)53