Author Topic: play HD video on slow hardware via VDPAU...  (Read 37934 times)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: play HD video on slow hardware via VDPAU...
« Reply #30 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
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #31 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

cirion

  • Guru
  • ****
  • Posts: 353
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #32 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

cirion

  • Guru
  • ****
  • Posts: 353
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #33 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...

cirion

  • Guru
  • ****
  • Posts: 353
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #34 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.

cirion

  • Guru
  • ****
  • Posts: 353
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #35 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

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #36 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.

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #37 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?

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #38 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.

Viking

  • Addicted
  • *
  • Posts: 521
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #39 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

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #40 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.


klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: play HD video on slow hardware via VDPAU...
« Reply #41 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.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: play HD video on slow hardware via VDPAU...
« Reply #42 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