[LINUX] Enable XvMC for FFmpeg in XBMC's DVDPlayer? - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Feature Suggestions (/forumdisplay.php?fid=9)
+--- Thread: [LINUX] Enable XvMC for FFmpeg in XBMC's DVDPlayer? (/showthread.php?tid=31350)
Pages: 1 2
[LINUX] Enable XvMC for FFmpeg in XBMC's DVDPlayer? - Gamester17 - 2008-02-20 12:52
Is it possible to add XvMC support for FFmpeg in XBMC's DVDPlayer (to the XBMC for Linux port)?
...or does that create to many new dependencies to X video extension (Xv) for the X Window System?
HAVE_XVMC_ACCEL=yes in config.mak was the information I found but that could be old and out-of-date?
MPlayer video output module uses XvMC functions so maybe best would be to look at how they implement it? but try if possible to port the latest libxvmc from the openChrome project in order implemented that in XBMC's DVDPlayer as I understand that is the most up-to-date version of libxvmc?
XvMC will enable GPU assisted video decoding of Motion Compensation and iDCT for MPEG-2 (and MPEG-1?). I know not many movie or TV-show rips downloads are MPEG-2 these days but remember that DVD-Video (so VOB and ISO/IMG images) are MPEG-2 and so are also many Live-TV streams and recorded TV-files from MythTV, ReplayTV, TiVo, VDR.
It should make video decoding of MPEG-2 use less CPU, and make slower computers decode higher native resolution MPEG-2.
PS! I am not sure how it would work in XBMC for Linux but one thing that might be smart is to do what MythTV has done an added a "UseXvMCForHDOnly" (Use XvMC For HD Only) switch that automaticly only enable XvMC when the native horisontal video resolution is over 720 pixels. They do this because their XvMC implementation has a couple of limitations:
Quote:Maybe we could workaround those caveats if needed
- Gamester17 - 2008-02-20 15:52
Maybe a different XvMC library has to be used for each GPU brand?
Quote:New Intel Video XvMC Driver Branch
- Gamester17 - 2008-02-21 17:38
Note! NVIDIA still hasn't added XvMC support for the GeForce 8 series in their Linux device-driver. Meanwhile, earlier GeForce product families do have support for GPU-offloading of MPEG-1 and MPEG-2video playback using the XvMC extension.
Intel latest release candidate device drivers now support XvMC again... - Gamester17 - 2008-03-22 23:14
Quote:Intel Releases 2.3 RC Driver w/ XvMCAnyone willing to add XvMC support to FFmpeg inside XBMC's DVDPlayer video-player?
XvMC for MPEG-2 on Intel Graphics - Gamester17 - 2008-04-28 18:57
Quote:xf86-video-intel 2.3.0 ReleasedAnyone?
XvMC support coming to Gallium3D on Linux soon - boba23 - 2008-07-14 10:11
Anybody of you guys read about this project?
Will this be something that XBMC can take advantage from as soon as it's stable enough to offload video decoding to the gpus?
- eversmann - 2008-07-14 12:08
Cool!! Hope so.
- KeithB - 2008-07-14 12:26
Would be useful but I suspect not any time in the near future - give it a couple of years and we might start to see it in distros.
XvMC is only for accelerating MPEG-2 on GPU - Gamester17 - 2008-07-14 13:56
boba23 Wrote:Anybody of you guys read about this project?If you read the whole article or just a few of the comment then you would know that the project it taks about is only for XvMC support in Gallium3D, and XvMC currently only accelerate MPEG-2 (not H.264 a.k.a. MPEG-4 AVC which is what we really need to have accelerated on the GPU), ...so to answer your question; yes, XBMC could probably enable XvMC the support in FFmpeg which XBMC's DVDPlayer video-player uses to possibly take advantage of that to accelelate MPEG-2, (but again, it would only be for MPEG-2, not H.264 a.k.a. MPEG-4 AVC which I assume is what you want and thought that slashdot article was about). For more detailed information about XvMC I suggest you read MythTV article about it here:
PS! You guys shoudl be much more excited to read this => http://forum.xbmc.org/showthread.php?tid=33802
- dizzey - 2008-07-14 14:07
And we alredy have someone trying to make gpu acceleration for xbmc.
however it's more in a state when we dont know if the method will be faster than the cpu. I guess time will tell. probobly we will get to know after this summer's GSOC.