LinuxMCE Forums

General => Users => Topic started by: valent on March 16, 2009, 12:36:09 am

Title: play HD video on slow hardware via VDPAU...
Post by: valent on March 16, 2009, 12:36:09 am
Hi, if you haven't seen some previous threads that this will be a nice surprise for you. If you have issues playing HD video because you have too slow CPU there is a way to accelerate and offload the task of decoding HD video to graphics card (it has to be NVidia chip). This method is know as VDPAU.

You also need MPlayer with appropriate patch and latest NVidia 180.xx drivers.

I tried this compile guide:
http://blog.avirtualhome.com/2009/02/10/compile-mplayer-with-vdpau-support-on-ubuntu/

But still after compiling MPlayer I have no support for VDPAU :(

Here is how I tried it:
1st step: Install latest NVidia nv driver (this isn't covered by this guide)

2nd step compile mplayer with support for VDPAU:
wget ftp://download.nvidia.com/XFree86/vdpau/mplayer-vdpau-3532130.tar.bz2
tar xvjf mplayer-vdpau-3532130.tar.bz2
cd mplayer-vdpau-3532130/
./checkout-patch-build.sh
cp mplayer-vdpau/mplayer ../
cd ..
wget http://samples.mplayerhq.hu.nyud.net/V-codecs/h264/nature_704x576_25Hz_1500kbits.h264
wget http://samples.mplayerhq.hu.nyud.net/V-codecs/WVC1/FlightSimX_720p60_51_15Mbps.wmv

now to play test video:
./mplayer -vo vdpau -vc ffh264vdpau nature_704x576_25Hz_1500kbits.h264

mine mplayer fails :(

and when I check to see what video output drives it supports there is no mention of VDPAU :(

./mplayer -vo help
MPlayer dev-SVN-r28348-4.1.3 (C) 2000-2009 MPlayer Team
CPU: Unknown CPU Typ (Family: 6, Model: 10, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Available video output drivers:
   sdl   SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
   fbdev   Framebuffer Device
   fbdev2   Framebuffer Device
   v4l2   V4L2 MPEG Video Decoder Output
   cvidix   console VIDIX
   null   Null video output
   mpegpes   MPEG-PES to DVB card
   yuv4mpeg   yuv4mpeg output for mjpegtools
   tga   Targa output
   pnm   PPM/PGM/PGMYUV file
   md5sum   md5sum of each frame


Any ideas?
Title: Re: play HD video on slow hardware via VDPAU...
Post by: darrenmason on March 16, 2009, 02:08:04 am
Given that a Xine lib based media player is the primary device for media playing on Media directors wouldn't your efforts be better placed rebuilding XinePlayer with a newer version of xinelib that supports VDPAU?

I don't have any real advice for your actual problem, sorry. Was the compile successful? Or any warnings to speak of?
Title: Re: play HD video on slow hardware via VDPAU...
Post by: valent on March 16, 2009, 03:02:22 pm
Given that a Xine lib based media player is the primary device for media playing on Media directors wouldn't your efforts be better placed rebuilding XinePlayer with a newer version of xinelib that supports VDPAU?

I don't have any real advice for your actual problem, sorry. Was the compile successful? Or any warnings to speak of?

I want first to check that my hardware works with VDPAU and new NVidia driver, and this process in unobtrusive to LinuxMCE playback and if I mess something it doesn't interfere with LinuxMCE playback. If I mess something up with xinelib then I need to reinstall the whole LinuxMCE and that I'm still not ready to do :)

So if anybody can replicate these easy steps so we can together find what is going on here, and the whole community would benefit from this.

I'm recompiling it again and will report any errors, but it is trivial for anybody with NVidia card to try this and you will not interfere with existing mplayer or xine binaries.

UPDATE:
I have recompiled mplayer again and there are quite a few warnings but no fatal errors that are unusual... so I can't figure out why I still have no vdpau support with this patched mplayer. Could somebody please try it also.

Cheers,
Valent.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: valent on March 16, 2009, 05:08:16 pm
I did all steps from checkout-patch-build.sh by hand.

Here is what checkout-patch-build.sh script does:

#!/usr/bin/env sh

set -e
set -x

co_dir=mplayer-vdpau
mplayer_rev=28348
ffmpeg_rev=16726
dvdnav_rev=1166

svn co --ignore-externals -r ${mplayer_rev} svn://svn.mplayerhq.hu/mplayer/trunk ${co_dir}
cd ${co_dir}
svn co -r ${ffmpeg_rev} svn://svn.mplayerhq.hu/ffmpeg/trunk/libpostproc
svn co -r ${ffmpeg_rev} svn://svn.mplayerhq.hu/ffmpeg/trunk/libavformat
svn co -r ${ffmpeg_rev} svn://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec
svn co -r ${ffmpeg_rev} svn://svn.mplayerhq.hu/ffmpeg/trunk/libavutil
svn co -r ${dvdnav_rev} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src libdvdread4
svn co -r ${dvdnav_rev} svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src libdvdnav

patch -p0 < ../mplayer-vdpau-mplayer.patch
patch -p0 < ../mplayer-vdpau-libavcodec.patch

./configure --disable-x264-lavc --disable-x264 --enable-vdpau
make



I see that after ./configure I get this message:

Checking for VDPAU ... no

any ideas?
Title: Re: play HD video on slow hardware via VDPAU...
Post by: petervanderdoes on March 16, 2009, 05:24:02 pm
I answered your comment on my blog as well. Doesn't hurt to give you the info here as well:

If I go with the steps you took described you forgot to install the include files.

You seem to have missed this paragraph.
Quote
In order to compile mplayer you’ll also need two extra files, nVidia does provide them but for your convenience I tarred them up. You can find the download link in the sidebar of this blog under Local Downloads.

How to install them is described in Prepare for configuration and compilation.



Title: Re: play HD video on slow hardware via VDPAU...
Post by: krys on March 16, 2009, 06:08:21 pm
you can also force certain files to play with mplayer instead of xinelib. On .mkv files you can change the extension to .m2ts and set them as Linux Blu Ray Disc and they will open with mplayer.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: valent on March 16, 2009, 08:22:56 pm
I answered your comment on my blog as well. Doesn't hurt to give you the info here as well:

If I go with the steps you took described you forgot to install the include files.

You seem to have missed this paragraph.
Quote
In order to compile mplayer you’ll also need two extra files, nVidia does provide them but for your convenience I tarred them up. You can find the download link in the sidebar of this blog under Local Downloads.

How to install them is described in Prepare for configuration and compilation.


Thanks for the answer, I missed it somehow :(
But the strange thing is when I include those two files it still fails to compile with VDPAU support :(

Then I saw that I had newer version of VDPAU files than you used in your blog post. I used "mplayer-vdpau-3532130.tar.bz2" and you used older "mplayer-vdpau-3482714.tar.bz2".

So I also tried with older version and two additional files, still fail :(

$ pwd
/home/linuxmce/mplayer-vdpau-3482714/mplayer-vdpau

$ ls vdpau/
vdpau.h  vdpau_x11.h

I have installed NVIDIA-Linux-x86-180.37 (pre-release drivers) and I have AGP Nvidia 7300GT video card.

Any ideas? Should I try installing official drivers? Am I missing something else?

Cheers!
Title: Re: play HD video on slow hardware via VDPAU...
Post by: phenigma on March 16, 2009, 08:50:43 pm
Have you verified that your card is capable of VDPAU yet?

This app is supposed to test if your card is capable or not:

http://www.cs.rug.nl/~wladimir/vdpinfo/vdpinfo-0.0.5.tar.gz

I ran into this on a MythTV related forum.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: totallymaxed on March 16, 2009, 09:10:03 pm
Have you verified that your card is capable of VDPAU yet?

This app is supposed to test if your card is capable or not:

http://www.cs.rug.nl/~wladimir/vdpinfo/vdpinfo-0.0.5.tar.gz

I ran into this on a MythTV related forum.

Hmmm... good point you need an nVidia 8000 or 9000 series card to use vdpau as far as i know.

Andrew
Title: Re: play HD video on slow hardware via VDPAU...
Post by: petervanderdoes on March 17, 2009, 12:05:37 am


I have installed NVIDIA-Linux-x86-180.37 (pre-release drivers) and I have AGP Nvidia 7300GT video card.


Cheers!

I'm sorry but your graphics card doesn't support VDPAU as far as I know. Like somebody mentioned you need at least a 8xxx series.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: valent on March 17, 2009, 03:53:12 pm


I have installed NVIDIA-Linux-x86-180.37 (pre-release drivers) and I have AGP Nvidia 7300GT video card.


Cheers!

I'm sorry but your graphics card doesn't support VDPAU as far as I know. Like somebody mentioned you need at least a 8xxx series.

I looked at NVidia PureVideo PDF and I see that there 7300GT is supported:
http://www.nvidia.fr/docs/CP/11084/PureVideo_Product_Comparison.pdf

So I guess there is a chance that VDPAU will be supported on this card in some time in the future, do you thing I'm wrong?
Is there any AGP card I can purchase (new or used) that is supported by VDPAU? Any suggestions?
Is there some way I can ask NVidia support these questions?

Thank you all, this forum is great and especially than you Peter!
Title: Re: play HD video on slow hardware via VDPAU...
Post by: petervanderdoes on March 17, 2009, 04:06:07 pm
I don't think the 8xxx series or the 9xxx come in AGP.

I just checked newegg, selecting nVidia and AGP bus and the cards listed are the FX, 6xxx and 7xxx series.

I all honestly I don't think nVidia will support the 7xxx or lower series for VDPAU. It has to do with the chipset nVidia uses to of load the CPU cycles to the graphics card.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: totallymaxed on March 17, 2009, 09:00:02 pm
I don't think the 8xxx series or the 9xxx come in AGP.

I just checked newegg, selecting nVidia and AGP bus and the cards listed are the FX, 6xxx and 7xxx series.

I all honestly I don't think nVidia will support the 7xxx or lower series for VDPAU. It has to do with the chipset nVidia uses to of load the CPU cycles to the graphics card.

Well this nVidia announcement implies it will support 6000 cards and up... but my interpretation is that this does not necessarily mean that full support for vdpau is available just that the cards are supported by the driver overall;

http://www.nvnews.net/vbulletin/showthread.php?p=1927376 (http://www.nvnews.net/vbulletin/showthread.php?p=1927376)
Title: Re: play HD video on slow hardware via VDPAU...
Post by: colinjones on March 17, 2009, 10:55:56 pm
Unfortunately, not a very definitive answer but here http://us.download.nvidia.com/XFree86/Linux-x86/180.29/README/appendix-h.html

It states that "most" 8xxx series cards and newer support VDPAU, plus integrated chipsets that support PureVideo (such as the 7050PV). A literal reading would mean that a 7300GT card does cannot be supported even if it has PV... its not clear that this is what they intended to say...
Title: Re: play HD video on slow hardware via VDPAU...
Post by: valent on March 18, 2009, 02:12:12 pm
Wikipedia says that mine GeForce 7300GT (AGP) uses G73 GPU chip [1] and I found on nvforums that G73 chip isn't supported in VDPAU, it's a shame :(

[1] http://en.wikipedia.org/wiki/GeForce_7_Series#GeForce_7300_GT
[2] http://www.nvnews.net/vbulletin/showthread.php?p=1940615
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on April 25, 2009, 06:58:48 pm
Hi guys I have been introduced to LINUXMCE by a friend, and I have been trying it out for the past month.

One of my interest in being able to play HD on low end PC's, example sempron, celeron, nvidia-atom (when released),etc.

To my question.

When I try apt-get build-dep mplaper I am getting add url to sources.list. I am not sure what URL I should add for this.

On a side note, I am interested in providing assistance in creating device templates, as I am attempting one for the HVR-1600 which I got working with a kernel upgrade and through configuration with mythv, no success with the template yet.

Nice project guys - real nice -
Title: Re: play HD video on slow hardware via VDPAU...
Post by: Marie.O on April 25, 2009, 07:03:20 pm
When I try apt-get build-dep mplaper I am getting add url to sources.list. I am not sure what URL I should add for this.

add deb-src entries for each of your regular deb entries in the sources.list.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 05, 2009, 02:20:19 am
I have been really busy, tried it and am getting the following:

root@moon31:~/vdpau/mplayer-vdpau-3532130# apt-get build-dep mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/_usr_pluto_deb-cache_._Sources - open (2 No such file or directory)

My source.list

Quote
deb file:/usr/pluto/deb-cache/ ./
deb http://archive.ubuntu.com/ubuntu/ gutsy  main restricted multiverse universe
deb http://archive.ubuntu.com/ubuntu/ gutsy-security  main restricted multiverse universe
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates  main restricted multiverse universe
deb http://linuxmce.com/ubuntu/ ./
deb http://deb.linuxmce.com/ubuntu/ 20dev_ubuntu  main
deb http://deb.linuxmce.com/ubuntu/ replacements_ubuntu  main
#Sources
#deb-src file:/usr/pluto/deb-cache/ ./
deb-src http://archive.ubuntu.com/ubuntu/ gutsy  main restricted multiverse universe
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security  main restricted multiverse universe
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-updates  main restricted multiverse universe
#deb-src http://linuxmce.com/ubuntu/ ./
deb-src http://deb.linuxmce.com/ubuntu/ 20dev_ubuntu  main
deb-src http://deb.linuxmce.com/ubuntu/ replacements_ubuntu  main


Title: Re: play HD video on slow hardware via VDPAU...
Post by: Marie.O on May 05, 2009, 08:41:09 am
Did you run
Code: [Select]
apt-get updateafter changing your sources.list?
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 06, 2009, 01:36:46 am
I did the apt-get update as suggested.

Am getting the following errors and still not successful with apt-get build-depo  mplayer.

I do know if this will make a difference, this is on an MD.

Quote
Err http://archive.ubuntu.com gutsy/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://linuxmce.com ./ Packages
  404 Not Found
Err http://archive.ubuntu.com gutsy/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com 20dev_ubuntu Release
Err http://archive.ubuntu.com gutsy-security/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com replacements_ubuntu Release
Err http://archive.ubuntu.com gutsy-updates/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com 20dev_ubuntu/main Packages
Ign http://deb.linuxmce.com 20dev_ubuntu/main Sources
Ign http://deb.linuxmce.com replacements_ubuntu/main Packages
Ign http://deb.linuxmce.com replacements_ubuntu/main Sources
Hit http://deb.linuxmce.com 20dev_ubuntu/main Packages
Err http://deb.linuxmce.com 20dev_ubuntu/main Sources
  404 Not Found
Hit http://deb.linuxmce.com replacements_ubuntu/main Packages
Err http://deb.linuxmce.com replacements_ubuntu/main Sources
  404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://linuxmce.com/ubuntu/./Packages.gz  404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/20dev_ubuntu/main/source/Sources.gz  404 Not Found
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/replacements_ubuntu/main/source/Sources.gz  404 Not Found
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: colinjones on May 06, 2009, 02:08:50 am
Gutsy is retired, so the apt sources are no longer valid. You need to change the URL to the new location. Can't remember which it is, but it wasn't archives.... it was something like old...., you can do a search on apt sources in the forum as someone posted it in the last week.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: totallymaxed on May 06, 2009, 02:17:09 am
I did the apt-get update as suggested.

Am getting the following errors and still not successful with apt-get build-depo  mplayer.

I do know if this will make a difference, this is on an MD.

Quote
Err http://archive.ubuntu.com gutsy/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://linuxmce.com ./ Packages
  404 Not Found
Err http://archive.ubuntu.com gutsy/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com 20dev_ubuntu Release
Err http://archive.ubuntu.com gutsy-security/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-security/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/main Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/restricted Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/multiverse Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/universe Packages
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/main Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com replacements_ubuntu Release
Err http://archive.ubuntu.com gutsy-updates/restricted Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/multiverse Sources
  404 Not Found [IP: 91.189.88.140 80]
Err http://archive.ubuntu.com gutsy-updates/universe Sources
  404 Not Found [IP: 91.189.88.140 80]
Ign http://deb.linuxmce.com 20dev_ubuntu/main Packages
Ign http://deb.linuxmce.com 20dev_ubuntu/main Sources
Ign http://deb.linuxmce.com replacements_ubuntu/main Packages
Ign http://deb.linuxmce.com replacements_ubuntu/main Sources
Hit http://deb.linuxmce.com 20dev_ubuntu/main Packages
Err http://deb.linuxmce.com 20dev_ubuntu/main Sources
  404 Not Found
Hit http://deb.linuxmce.com replacements_ubuntu/main Packages
Err http://deb.linuxmce.com replacements_ubuntu/main Sources
  404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://linuxmce.com/ubuntu/./Packages.gz  404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/source/Sources.gz  404 Not Found [IP: 91.189.88.140 80]
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/20dev_ubuntu/main/source/Sources.gz  404 Not Found
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/replacements_ubuntu/main/source/Sources.gz  404 Not Found
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.


Hi,

Replace archive.ubuntu.com with old-releases.ubuntu.com in your /etc/apt/sources.list

Then do apt-get update <return>

And all should be fine.

Andrew
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 06, 2009, 05:12:17 pm
The apt-get update worked, with some errors shown in the quote below, which I am assuming is expected
Quote
Failed to fetch file:/usr/pluto/deb-cache/./Sources.gz  File not found
Failed to fetch http://linuxmce.com/ubuntu/./Packages.gz  404 Not Found
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/20dev_ubuntu/main/source/Sources.gz  404 Not Found
Failed to fetch http://linuxmce.com/ubuntu/./Sources.gz  404 Not Found
Failed to fetch http://deb.linuxmce.com/ubuntu/dists/replacements_ubuntu/main/source/Sources.gz  404 Not Found


The following still failed
Quote
root@moon31:~/vdpau/mplayer-vdpau-3532130# apt-get build-dep mplayer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/_usr_pluto_deb-cache_._Sources - open (2 No such file or directory)

Should it be looking for /var/lib/apt/lists/_usr_pluto_deb-cache_._Sources
Title: Re: play HD video on slow hardware via VDPAU...
Post by: Viking on May 07, 2009, 10:55:14 am
Hi,

looks like trouble with one ouf your "deb-src file:*" (or "deb file:*") entries in sources.list

Greetings
Viking
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 08, 2009, 01:47:17 am
Had to comment the following.

Quote
#deb-src http://linuxmce.com/ubuntu/ ./
#deb-src http://deb.linuxmce.com/ubuntu/ 20dev_ubuntu  main
#deb-src http://deb.linuxmce.com/ubuntu/ replacements_ubuntu  main
.
 Only thing,tried to play transformers, the m2ts file, initially the cpu usage was high, but drop to around 65% after introduction, the audio sucks, really comes in glitches video little slow, cpu usage still 65%.

I feel its the speed of the network from the core, this MD is a 100MB nic, on an ECS board. Had it lying around, bought it previously for a firewall solution, which is needed no more.

This board will not boot from the network, using the upgrade kernel 2.6.29, at set of nfs timeout errors - this could be I did crap, but another machine boots with the new kernel, can't use that, its my wife own.

Thanks guys. I am glad to see that this works as for CPU usage; great benefit for the project, makes the nvidia-ion platform possible.



Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 08, 2009, 03:27:00 am
Just and update

Tried it again, the cpu usage this time was 89 to 92 %, same problem as before.

Played the trailers, first with xine with 94% cpu usage, renamed the file to .m2ts, played with mplayer, and it played smooth, no problem, but cpu usage was 65% quiet and action was 93%.

mplayer -vo help produces:

Quote
CPU: AMD Sempron(tm) Processor LE-1150 (Family: 15, Model: 127, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Available video output drivers:
        vdpau   VDPAU with X11
        xv      X11/Xv
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        gl      X11 (OpenGL)
        gl2     X11 (OpenGL) - multiple textures version
        dga     DGA ( Direct Graphic Access V2.0 )
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        ggi     General Graphics Interface (GGI) output
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        aa      AAlib
        caca    libcaca
        dxr3    DXR3/H+ video out
        v4l2    V4L2 MPEG Video Decoder Output
        xvidix  X11 (VIDIX)
        cvidix  console VIDIX
        null    Null video output
        mpegpes MPEG-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame


Still hope, a multicore and gigabyte may seem perfect
Title: Re: play HD video on slow hardware via VDPAU...
Post by: colinjones on May 08, 2009, 06:04:48 am
If the decode is being handed off to VDPAU then I wouldn't have thought your CPU would have been anything like as high as that. I suspect that it isn't working - either the VDPAU is not being used for the decode, or you don't have a compatible nVidia chipset (needs to be 8xxx, 9xxx series or an integrated PV chip)
Title: Re: play HD video on slow hardware via VDPAU...
Post by: Itsik on May 08, 2009, 08:06:22 am
The numbers indicate VDPAU is not working as I get the same numbers with a regular 0710 with 180.44 Nvidia drivers.

Itsik
Title: Re: play HD video on slow hardware via VDPAU...
Post by: totallymaxed on May 08, 2009, 10:01:52 am
If the decode is being handed off to VDPAU then I wouldn't have thought your CPU would have been anything like as high as that. I suspect that it isn't working - either the VDPAU is not being used for the decode, or you don't have a compatible nVidia chipset (needs to be 8xxx, 9xxx series or an integrated PV chip)

Agreed Colin...people on the vdpau irc channel are getting completely different results to this...I would suggest that either vdpau is no working or that the card your using is not compatible with it. What card is being used in the test itsik?

Andrew
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 08, 2009, 11:39:31 am
I am using a evga 9400, from all indication, this card is supported.

nvidia driver 180.51.

Are there any other changes required for linuxmce, or it plays mplayer in /usr/local/bin

Just in case.

I will retry the process, I tar the MD files before doing this, so will I restore and retry, just in case I missed something.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: totallymaxed on May 08, 2009, 01:25:11 pm
I am using a evga 9400, from all indication, this card is supported.

nvidia driver 180.51.

Are there any other changes required for linuxmce, or it plays mplayer in /usr/local/bin

Just in case.

I will retry the process, I tar the MD files before doing this, so will I restore and retry, just in case I missed something.

Well the 9400 is definitely supported and 180.51 should be fine...

Hmmm...but something is clearly not right as you should be getting way lower CPU usage when playing HD h.264 content than you are getting.

Andrew
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 09, 2009, 05:03:16 am
I re-did the process, following the exact same instructions as mentioned in
Quote
http://blog.avirtualhome.com/2009/02/10/compile-mplayer-with-vdpau-support-on-ubuntu/
Used by the original poster.

The trail fluctuate in usage, I am legend, is high sometimes at 90%, but plays nicely, transformers usage still high, but slightly slower video and out of sync audio.

I did some investigation, and realized that the graphics card is running at 8x as the pcie slot is 8x.

nVidia README show playing the video using ./mplayer -vo vdpau -vc <VDPAU-codec-name> <filename>

Is this possible through linuxmce configuration, will try from KDE in a few hrs, catching up on some sleep
Title: Re: play HD video on slow hardware via VDPAU...
Post by: cirion on May 09, 2009, 06:52:26 am
Just tried running a MKV that is 1080p (1h37m 8,1GB).
In LMCE 7.10 this file does not work, playback is choppy and green.
In LMCE 8.10 this file works and CPU is at max load (a bit choppy in demanding scenes, no greenies)

For fun I installed Ubuntu 9.04 on the same machine, installed updates, and enabled the stock 180 driver.
Tried playing the same MKV and of course it searched for a codec and installed that.
The file plays great, and Totem is using 37% CPU -+ a few.

Is VDPAU working out of the box in Ubuntu/Kubuntu 9.04?
Anyone know how I can see if Totem is using VDPAU?

CPU is a AMD Athlon 64x2 4400+
1GB ram
Nvidia 8600 GT GFX
Title: Re: play HD video on slow hardware via VDPAU...
Post by: cirion on May 09, 2009, 08:56:40 am
Hehe.. Just tried this guide:
http://blog.avirtualhome.com/2009/02/10/compile-mplayer-with-vdpau-support-on-ubuntu/

Mplayer is now using 2% CPU :):):)
I am still using the stock 180 driver (Not the one in the guide)

Now I have to get this working in LMCE...
Oh.. and I have integrated GF7050pv in this computer...
I'll try unplugging the GF8600GT and see what happens...
Title: Re: play HD video on slow hardware via VDPAU...
Post by: cirion on May 09, 2009, 09:32:01 am
Well, that didn't go so well...

When running mplayer I get this error in the end:
Error 1 at libvo/vo_vdpau.c:258

And searching for that error I found this:
http://www.nvnews.net/vbulletin/showthread.php?t=130690

I'll try installing the latest driver then.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: cirion on May 09, 2009, 11:01:53 am
I have now tried using the following drivers:

Current official release: 180.51
Current pre-release: 180.53
Current beta release: 185.18.08

None of them helps the integrated GF7050pv
I guess it will never work...

I'm gonna order a couple of these cards to test on my MD's now that I know that VDPAU works (in ubuntu, not LMCE yet).
http://www.asus.com/product.aspx?P_ID=60agdX0HRAPwMyAQ&templete=2
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 09, 2009, 02:00:13 pm
I went to the KDE desktop, to the directory with the files, clicked the trailer I am Legend.m2ts, choosed mplayer in the with window, using to it shows gmplayer and played the movie, perfect, cpu usage was most 20%.

Played the transformers.m2ts file, in the same manner, cpu usage was most 40 to 50 percent, sometimes spicking to 83% but quickly returning to to 40 to 50 average. There were drops to 20% during quiet scenes.

gmplayer is a link to mplayer.

But as the previous post, said vdpau does work.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 09, 2009, 02:12:38 pm
I found this

Quote
/home/linuxmce/moon/opt/pluto-mplayer/share/mplayer
/home/linuxmce/moon/opt/pluto-mplayer/bin/mplayer
/home/linuxmce/moon/usr/lib/mplayer
/home/linuxmce/moon/usr/share/doc/mplayer
/home/linuxmce/moon/usr/share/mplayer
/home/linuxmce/moon/usr/bin/mplayer
/home/linuxmce/moon/etc/mplayer
/opt/pluto-mplayer/share/mplayer
/opt/pluto-mplayer/bin/mplayer

Now my question, if I copied the mplayer from /usr/local/bin to the other bin directory listed above
would that break the system?

Are there any other considerations?
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 10, 2009, 12:48:14 am
Guys, I apologize for my second to last post, poor english; one of those mornings.

An update:

I  backed up the mplayer binaries listed in my previous post, copied the new binary into those respective locations; only achieved crashing CORE, MD, the whole system. Well rebooted and fix my error, system is operational.

Still am unable to experience VDPAU in linuxmce! Through further investigation, saw below:

8551 root      22   0 65084 3000 2432 S  0.3  0.1   0:00.58 MPlayer_Player

Going to look into it, any information will be appreciated.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: Viking on May 14, 2009, 05:08:59 pm
Hi,

Short look in the sources of Mpleyer_Player reveal this :

MPlayerEngine.cpp:
#define MPLAYER_BINARY "/opt/pluto-mplayer/bin/mplayer"

but also
#define MPLAYER_BINARY_SHORT "mplayer"

So I would assume that this is the application playing the video.

Maybe try replacing it with a shell script and do some loging will get you further.

Greetings
Viking
Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on May 19, 2009, 01:04:46 am
Thanks

I had a hectic week, thus did not get chance to check out your recommendations.

I searched for the source, and found the Mplayer_Player source.

Will attempt as your suggestions; was also looking at passing the options in the call to initiate mplayer, using vdpau and the codecs as you use when playing from desktop, recompile Mplayer_Player, hopefully could only change this on the MD, so if I break it, it does not screw in install - do not have the time to rebuild.

Title: Re: play HD video on slow hardware via VDPAU...
Post by: klanmce on June 02, 2009, 01:46:53 am
Yes I am now finally back at the task.

I have done the simple process of editing the Mplayer_Player as follows:
Quote
execle(MPLAYER_BINARY, MPLAYER_BINARY_SHORT, "-slave", "-idle", "-msglevel", "all=4", "-noborder",
            "-fixed-vo", "-fs", "vc","ffmpeg12vdpau,ffh264vdpau", "-vo", "vdpau", "-vf", "screenshot"
            "-ao", sALSADevice.c_str(),
            "-ac", sALSACodec.c_str(),
            "-lavdopts", "fast:threads=2", BLACK_MPEG_FILE, (char *) 0, environ);
      }
      else {
         execle(MPLAYER_BINARY, MPLAYER_BINARY_SHORT, "-slave", "-idle", "-msglevel", "all=4", "-noborder",
                "-fixed-vo", "-fs", "vc","ffmpeg12vdpau,ffh264vdpau", "-vo", "vdpau", "-vf", "screenshot",
              "-lavdopts", "fast:threads=2", BLACK_MPEG_FILE, (char *) 0, environ);

Now I am trying to set up the development environment as indicated in http://wiki.linuxmce.org/index.php/Setting_Up_A_Development_Environment

The install of ccache keeps failing can't find the package.

What entry required in the sources.list?

Is the package completely required to compile one module.
Title: Re: play HD video on slow hardware via VDPAU...
Post by: Marie.O on June 02, 2009, 09:24:10 am
You might want to target 810, and use these instructions http://wiki.linuxmce.org/index.php/Building_LinuxMCE_0810