[XBOX] HOW-TO encode videos in H.264 to be able to achieve playback on the Xbox - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [XBOX] HOW-TO encode videos in H.264 to be able to achieve playback on the Xbox (/showthread.php?tid=33429)
- sion28 - 2009-04-11 17:36
Question on encoding non-dvd video files (e.g. re-encoding 720p x264 mkv files)... how do I do audio pass-through in this case? By loading the video file directly in AVSynth (we don't use D2V creator in this case right?) there's no demuxing of the audio done... if I just select the video file as the audio source, then it will get re-encoded using whatever audio codec profile I choose. What if I don't want it re-encoded? I have a few mkv files with DTS audio, and I'd like to retain that original soundtrack.
- Jhcheslik - 2009-04-11 22:53
I use MKVextract GUI.
But I didn't know that XBMC can play DTS...
P.S. My promised MeGUI guide isn't reasonable anymore because I discovered (as mentioned by JPS) RipBOT264 and found that it's very noob friendly. (Although I'll still try and finish it.) I will try and post some pictures on how to use RipBOT264 to create a playable h.264 video on XBMC for Xbox.
- Jhcheslik - 2009-04-11 23:12
Okay, as mentioned by JPSiemer, RipBot264 is way much easier.
I did a test on two HD trailers downloaded from gametrailer.com
First one :
Final size : 17.4 mb with about 1024 bitrate (not including audio's bitrate)
Final resolution : 704 x 396
Encoding Time : 05m:20s
Second one :
Final size : 35.7 mb with about 1024 bitrate (not including audio's bitrate)
Final resolution : 800 x 340
Encoding Time : 11m:33s
Encoding Time various depending on your OS and CPU speed!!
I am using WinXP 32 bit, 2.25 Ghz Intel Dual Core.
I'm sure the encoding will reach to real-time only if I have a Quad Core CPU.
I didn't experience any dropped frame while playing with MPlayer.
It was different case while playing with DVDPlayer though. In Diablo 3 test video, I experienced about 10 to 12 dropped frame.
Didn't bother testing it with StarCraft 2. It played flawless in MPlayer.
Guide : RipBot264 - Jhcheslik - 2009-04-12 00:04
Go to this website, http://forum.doom9.org/showthread.php?t=127611, and download the latest version.
Once unzipped, edit the RipBot264.ini, and replace the whole thing with this :
Then go in Profiles folder and create new .txt, naming it 'XBOX HQ.txt'. Paste this code in the .txt :
Once those two files are modified and added... Run the program!
You'll probably come up with this...
In my case, I didn't have the latest FFDshow, whoops. So I went and got the 'SVN builds by xxl' and installed it.
If everything went good, it'll look like this... so, go on and click the blue word, 'Add' at bottom...
And choose your video source, once loaded, you can pick any kind of audio format you want. If the original audio is in AC3 you can tell it to not re-encode it. Since the original audio of mine is in .wma, I'll have to convert it to 2 channel AAC or OOG, I choose OGG as in picture...
Now, to resize the video, click on the Properties right next to the bitrate number and click on Size drop down list.
I change it to 704 x 396 because I knew if I went with 720 x 405 I will have some dropped frames, so...
You want it to be under 280000 pixels at least. I can't really prove this yet. I will need to do more testing... but my 704 x 396 = 278784 for Diablo 3 proved that it is indeed fine. At least for now...
You can change any another setting by clicking on Right Arrow, I'm sure you guys can figure this one out.
Then once you are done adjusting the setting, click Ok, change the output somewhere else if you want... and then click Done...
And click Start!!! Once it is finished, you probably want to remove the job from the list, because I forgot to do that and they did another encode of the same video when I added several new jobs!! Oops.
Enjoy, and please post if you guys find something interesting!!
Edit : If you guys want to encode a DVD, just load the one piece .VOB that was ripped by DVD Decrypter or whatever. (I don't know if multiple pieces of VOBs work.... you guys try it.) BE PATIENCE, THE INDEXING WILL TAKE LONG TIME.
- sion28 - 2009-04-12 02:24
Jhcheslik Wrote:I use MKVextract GUI.
The xbox/xbmc will pass-through DTS just as it does with AC3...
- Jhcheslik - 2009-04-12 03:04
I thought it was AC3 only.
I would rather to keep them in AC3 at 448 bitrate to keep video size down though.
So, like I say, you could use RipBot264 or MKVExtractGUI to extract those audio.
- sion28 - 2009-04-12 05:25
I'll have to try MKVExtract then... RipBot doesn't do XviD that I could tell...
And yes, it does pass through on DTS... I've verified it.
- Jhcheslik - 2009-04-12 05:32
XviD, lol. 720p, 24 frames... I understand...
Darn it. Another loss for h264 community!!!
I just don't like big file size.
Although, you are using MeGUI? For XviD encoding? I THINK there is some way to extract audio. I'll have to poke around. Or are you using XVID4PSP?
- sion28 - 2009-04-12 05:51
Nope, I use MeGUI (or prefer to anyway) that's why I posted here in this thread, even though I'm using the XviD codec. I'm not crazy about XviD4PSP... not yet anyway. I did a test encode of a x264 mkv clip from BOLT, and it had a couple anomalies in the video. Still testing though. I got a response to this question on doom9, and the guy said there are tools built in to MeGUI to do the audio extraction... in the tools menu. Don't remember the name of the tool, and now I can't get in to doom9.
- Jhcheslik - 2009-04-12 05:57
I just love MeGUI... who doesn't?? (It's still my preferred choice no matter what...)
I have BOLT as well, and in dark scene or somewhat like that there would be a lot of anomalies in it, what I realized was that the TV's brightness was too high. So I turned it down and tweaked it until the picture looked VERY crispy and better!
Take a look at two encoded video I made up above and tell me how it look on your TV. Cuz for me, it look just fine!
Edit : Hey, try the HD Streams Extractor... I'm at my girlfriend's house, using her laptop... cannot test.