Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st July 2005, 15:41   #1  |  Link
SaMe
Registered User
 
Join Date: Jul 2005
Posts: 12
Support for Nero AVC under XBMC...

Hi all, few of you have already asked how to play the Nero Digital AVC encoded movies with the XBox MediaCenter... I've made a small guide on how to do this, upon the information I found on the XBMC forum. so...

DON'T THANK ME, BUT THANK THE GREAT GUYS FROM XBMC !!!

you can download the guide at http://www.geocities.com/s4m3y/XBMC....pport-SaMe.pdf

Happy coding
SaMe is offline   Reply With Quote
Old 31st July 2005, 16:03   #2  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
of course this also means that .mp4 files created with x264 should be supported on xbmc and not only nerodigital ones
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 31st July 2005, 16:32   #3  |  Link
SaMe
Registered User
 
Join Date: Jul 2005
Posts: 12
indeed... i'm sorry i didn't mention that... I've tested Nero and x264; they work fine, although it seems there are some implementations of h.264 which lead to trouble when playing on xbmc...
SaMe is offline   Reply With Quote
Old 31st July 2005, 16:37   #4  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Quote:
Originally Posted by SaMe
indeed... i'm sorry i didn't mention that... I've tested Nero and x264; they work fine, although it seems there are some implementations of h.264 which lead to trouble when playing on xbmc...
any more details? i assume the xbmc uses the ffmpeg avc decoder? so playing all avc streams supported by this decoder should work i guess?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 1st August 2005, 03:34   #5  |  Link
chilledoutuk
Registered User
 
chilledoutuk's Avatar
 
Join Date: Jun 2003
Posts: 331
fantastic guide mate the updated dll worked as treat will also be useful for adding support for other new codecs and formats that are added to mplayer.

For those of you who dont have the time here is the new xbmc mplayer.dll

as the guide says put this file in xbmcroot/system/players/mplayer replacing the old mplayer.dll

http://www.chilledoutuk.co.uk/mplayer.rar
__________________
HQ XviD Music Video Forum

When I'm good I'm very, very good but when I'm bad I'm better.
chilledoutuk is offline   Reply With Quote
Old 4th August 2005, 02:18   #6  |  Link
SkoalWintergreen
Registered User
 
Join Date: Dec 2001
Location: Michigan
Posts: 99
Is everyone else having success with this .dll? My XBOX is on a network from my computer, but when I try to play a movie it moves real slow and stutters.

I have a 7-28 build of XBMC, and the movie is Lady Killers, encoded with Nero Digital, Standard AVC. The size of the movie was set at 1gb and it's 5.1 audio.

Just curious if anyone else has a stuttering problem and if it's related to the hardware or the network, but network is very fast (ALL XVIDS work perfectly!)
__________________
- Enjoy the struggle.
SkoalWintergreen is offline   Reply With Quote
Old 4th August 2005, 21:23   #7  |  Link
SaMe
Registered User
 
Join Date: Jul 2005
Posts: 12
the xbox hasn't got enough cpu power to seemlessly play a high-resolution avc encoded movie... (you can read the warning in the guide) if you used HE-AAC, move over to LC-AAC, then you spare the need of replicating audio by the SBR technology used in HE-AAC. But the xbox will never be able to play AVC files at full DVD resolution (width of 720p) I had to downsample to a width of about 592p (and my height was only 240p) before I could play files without any problems.
SaMe is offline   Reply With Quote
Old 4th August 2005, 21:51   #8  |  Link
SkoalWintergreen
Registered User
 
Join Date: Dec 2001
Location: Michigan
Posts: 99
That seem weird that Xbox can't handle this AVC. Is the processing really that taxing? I have a P.O.S. 1089mhz AMD, flooded with Spyware, Porn, and probably 80 processes running at any given time, plus it's constantly overheating, and it has no problem running the movies I create with Nero AVC in the Nero Player. Before I got my laptop I tried to encode a nero AVC Max Def on this PC and it took 31 hours. Isn't XBOX 800 mhz with hardly any overhead? Just doesn't seem right. I feel like if the XBOX was using the Nero Digital Player it would be fine. AVC isn't that crazy is it?
__________________
- Enjoy the struggle.
SkoalWintergreen is offline   Reply With Quote
Old 5th August 2005, 06:58   #9  |  Link
dejected_is_me
Registered User
 
Join Date: Jul 2005
Posts: 18
i also have the stuttering problem. (i have been working with this for some time now) avc uses post processing when playing it back. ie cabrac and deblocking. Turning these off on the encode and basicaly every other option in the nero avc, Aside from the lower resolution, options makes it run ok at best. But you loose ALOT of quality. And it turns out much worst then say an xvid rip of the same material.
Also, even with the recomplied dll i still cant play x264 files. The xbox just crashes pittifully.

As for the XBOX its a 733 P3 with shared system and video ram. (this is problebly what kills the playback)

ive been thinking of building a small media center pc to replace the xbox. one of the main develpers in XBMC, frodo, has ventured into making a great pc program for this purpose called Media portal. goggle it.
dejected_is_me is offline   Reply With Quote
Old 5th August 2005, 09:26   #10  |  Link
Cyberace
Registered User
 
Join Date: May 2003
Posts: 132
Xbox CPU (and memory) can only handle lower bit-rate AVC too without dropping frames (= stutter) in XBMC, try bellow 1400kb/s video, LC-AAC or CBR-MP3 audio. Also disable post-processing and deinterlace in XBMC
Cyberace is offline   Reply With Quote
Old 5th August 2005, 16:50   #11  |  Link
SkoalWintergreen
Registered User
 
Join Date: Dec 2001
Location: Michigan
Posts: 99
I've thought about venturing into building a PVR or HTPC. That program looks pretty nice, but the question is can a HTPC that plays H.264 and has PVR functions be build for under 500?
__________________
- Enjoy the struggle.
SkoalWintergreen is offline   Reply With Quote
Old 5th August 2005, 23:00   #12  |  Link
chilledoutuk
Registered User
 
chilledoutuk's Avatar
 
Join Date: Jun 2003
Posts: 331
i encoded wildthings with b frames turned off and 3 ref frames @ a resolution of 704x416 and a bitrate of 1000kbps and the video plays back smoothly. I find that bframes are just a bit too much to decode for the xbox.

this was with x264 i will try encoding some stuff with recode and see how that goes.
__________________
HQ XviD Music Video Forum

When I'm good I'm very, very good but when I'm bad I'm better.
chilledoutuk is offline   Reply With Quote
Old 8th August 2005, 11:10   #13  |  Link
Cyberace
Registered User
 
Join Date: May 2003
Posts: 132
More hints and tips on H.264 playback in XBMC is available here:
http://www.xboxmediaplayer.de/cgi-bi...ST;f=8;t=13786

BTW, also make sure you enable the "LQ-Pixel-Shader " in XBMC!

PS! Very latest XBMC CVS has this new FFmpeg CVS integrated.

Last edited by Cyberace; 10th August 2005 at 13:00.
Cyberace is offline   Reply With Quote
Old 8th August 2005, 15:03   #14  |  Link
SkoalWintergreen
Registered User
 
Join Date: Dec 2001
Location: Michigan
Posts: 99
That should be interesting, I am at work, so can't download it and tested for another 7 hours, but if anyone does let me know.
__________________
- Enjoy the struggle.
SkoalWintergreen is offline   Reply With Quote
Old 8th August 2005, 22:40   #15  |  Link
pgen
Registered User
 
Join Date: Jan 2005
Posts: 1
Quote:
Originally Posted by SkoalWintergreen
That should be interesting, I am at work, so can't download it and tested for another 7 hours, but if anyone does let me know.
works well but beware of high resolution and/or complexity, the XBOX has a small CPU !
pgen is offline   Reply With Quote
Old 9th August 2005, 02:36   #16  |  Link
Backflip
Registered User
 
Join Date: May 2005
Posts: 157
Ahh, so it's the B-frames that kills it. I'll have to give it another go with b-frames off
Backflip is offline   Reply With Quote
Old 9th August 2005, 18:59   #17  |  Link
yokem55
Registered User
 
Join Date: Jan 2002
Posts: 74
Quote:
Ahh, so it's the B-frames that kills it.
It actually appears to be the combination of a high resolution and b frames that is causing the problems. It might be worth it to figure out what is the best combination of resolution and b-frame settings that is playable on the xbox, especially if the bitrate isn't of serious concern (playing off the HD, not limited to cd sizes).
yokem55 is offline   Reply With Quote
Old 10th August 2005, 03:19   #18  |  Link
SkoalWintergreen
Registered User
 
Join Date: Dec 2001
Location: Michigan
Posts: 99
Yeah if anybody comes out with a good combination post it here, I'll do a couple attempts but a 2 hour movie for me takes a good 12 hours.
__________________
- Enjoy the struggle.
SkoalWintergreen is offline   Reply With Quote
Old 19th August 2005, 01:32   #19  |  Link
four86
Registered User
 
Join Date: Aug 2005
Posts: 3
what about the resolution of the videos? 720? or should I downsize it in NeroDigital
four86 is offline   Reply With Quote
Old 19th August 2005, 13:50   #20  |  Link
Cyberace
Registered User
 
Join Date: May 2003
Posts: 132
More tips here: http://www.xboxmediaplayer.de/cgi-bi...ST&f=2&t=14956
Quote:
Originally Posted by Rabomil
I'm using the following 'rules' for my encodes, to remain Xbox compatible, without dropping frames:

- I encode movies with a 2.35:1 aspect ratio to the full dvd width of 720 pixels. (use 640 width, to be able to use anamorphic resolutions)

- I encode movies with a 16:9 aspect ratio to a width of 640 pixels (this is actually the maximum width of regular tv's). I do not use anamorphic resolutions, because that really hurts the performance of the Xbox and may cause frame drops. Besides that, there's no significant visual gain, compared to square pixel.

- I use six file sizes: 740 MB (1/6 part of a dvdr), 1480 MB (2/6 part of a dvdr), 2048 MB (maximum ISO file size), 2960 MB (4/6 part of a dvdr), 3700 MB (5/6 part of a dvdr) and 4440 MB (6/6 part of a dvdr). Most movies I encode have a size of 1480 MB or 2048 MB.

- The average video bitrate stays between 1.3mbit and 2 mbit (peaks to 5 mbit, maybe even higher, are possible without problems). The video bitrate appears not to be too important when it comes to compatibility with the Xbox.

- The average audio bitrate is either 384/448 kbit LC-AAC or 192/225/256 kbit HE-AAC. It depends on the videobitrate and the total file size whether I use LC- or HE-AAC.

- I use the standard AVC profile, with the default settings, except for the encoding options. There I only use bidirectional prediction (b-frames, 3 b-frames in a row max). It is possible to use macroblock partitions and weighted prediction, but I prefer not to use them all the time. CABAC and deblocking are hardly usable, because this will almost certainly cause frame drops. Other AVC profiles gave some artifacts on my Xbox (not on my pc) and do not offer options that prove to be really useful for the resolutions I use, quality wise.

You can find my Xbox Friendly H264 encodes on Usenet: alt.binaries.nerodigital

Compared to divx/xvid, H264/AVC is a huge step forward, even with the limitations, to remain Xbox compatible.
PS! Are there any C/C++ programmers out who like to improve XBMC/Xbox playback of H.264?:
Quote:
If there is any developers out there who liuke to improve the smoothness of H.264 playback in XBMC then suggest you (port and) program/code and submit a patch for; fast h264 decoding (-lavdopts fast in mplayer for only H264/AVC), and/or libavcodec (FFmpeg) "skiploopfilter" decoding option. Those features should enable smoother playback of H264/AVC on the limited (CPU/RAM) resourses of the Xbox, (at the expense of a small quality loss that I think is worth paying, though again only for H264/AVC, ...for now). Alternativly if you are a very skilled C/C++ programmer (and maybe even have codec coding experinse) then you could help XBMC indirectly by improving FFmpeg and MPlayer with optimizing for the x86 platform (tip; the Xbox has a Intel Pentium-III processor which support SSE, MMX and MMX2, ...in theory using SSE optimizations is fastest).
end-users could also help by lobbying C/C++ programmers to help the XBMC Project with this
Cyberace is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.