Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-16-09, 01:04 AM   #13
bugger
Registered User
 
Join Date: Apr 2006
Posts: 22
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

ok, I compiled mplayer out of the svn tree. How can I make sure that vdpau is being used? where can I see it?
bugger is offline   Reply With Quote
Old 03-16-09, 02:27 AM   #14
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

@bugger-You have to enable it in your commandline and can see that it's active by watching top or htop as you play a vid not using vs. using it. There is a script that can do it for you at this url.

Quote:
Running MPlayer:
$ cd mplayer-vdpau
$ ./mplayer -vc <VDPAU-codec-name> -vo vdpau <filename>

'VDPAU-codec-name' can be one of:

ffmpeg12vdpau
ffh264vdpau
ffwmv3vdpau
ffvc1vdpau

based on the type of video bitstream (ffmpeg12vdpau for MPEG-1
or MPEG-2, ffh264vdpau for H.264, ffwmv3vdpau for WMV3, and
ffvc1vdpau for VC-1).

If a VDPAU codec is used, the VDPAU output module must be used.

Alternatively, you may use the VDPAU output module without specifying
a VDPAU codec. In this case, the bitstream decoding is not accelerated
using VDPAU, but the decoded video is still presented using VDPAU:

$ cd mplayer-vdpau
$ ./mplayer -vo vdpau <filename>

Known Limitations:
1. Playing some video streams may cause GPU errors and/or hang or
crash the system.
2. The skip forward/backward features are not robust yet and
can cause application or system hangs/crashes.
3. MPlayer OSD or Composite Picture is currently not supported.
4. Problems have been observed when building MPlayer with these
patches using gcc-4.3.2.

Example Movie Clips:
MPEG: http://inventaaustralia.zftp.com.nyu...3MBPS30sec.mpg
./mplayer -vo vdpau -vc ffmpeg12vdpau MPEGIO3MBPS30sec.mpg

H.264: http://samples.mplayerhq.hu.nyud.net...4/PAFF/Grey.ts
./mplayer -vo vdpau -vc ffh264vdpau Grey.ts
http://samples.mplayerhq.hu.nyud.net...1500kbits.h264
./mplayer -vo vdpau -vc ffh264vdpau nature_704x576_25Hz_1500kbits.h264

WMV3: http://download.microsoft.com.nyud.n..._Caves_720.exe
(use `unzip` to extract the .exe)
./mplayer -vo vdpau -vc ffwmv3vdpau Amazing_Caves_720.wmv

VC-1: http://samples.mplayerhq.hu.nyud.net..._51_15Mbps.wmv
./mplayer -vo vdpau -vc ffvc1vdpau FlightSimX_720p60_51_15Mbps.wmv

Note: .nyud.net added to the above URLs to cache the content on CoralCDN (http://www.coralcdn.org/)
darksky is offline   Reply With Quote
Old 03-16-09, 02:53 AM   #15
bugger
Registered User
 
Join Date: Apr 2006
Posts: 22
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

thanks for this manual, darksky. It works!
The following is the mplayer console output of a h264 encoded video in a mov container, recorded with a Canon 5DMII.
Code:
VIDEO:  [avc1]  1920x1080  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
===================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
FPS forced to be 50.000  (ftime: 0.020).
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 1920 x 1088 (preferred colorspace: H.264 VDPAU acceleration)
VDec: using H.264 VDPAU acceleration as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1088 => 1934x1088 H.264 VDPAU acceleration
bugger is offline   Reply With Quote
Old 03-16-09, 01:48 PM   #16
darksky
Registered User
 
Join Date: Aug 2008
Posts: 66
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

@bugger - glad to hear you got it up and running. Enjoy
darksky is offline   Reply With Quote
Old 03-29-09, 03:12 AM   #17
thefirstm
Registered User
 
Join Date: Feb 2009
Posts: 226
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

I am having a problem getting mplayer to compile, but only on x86 (x86_64 works just fine.) The error I get is:

cabac.h: In function 'get_cabac_noinline':
cabac.h:527: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
cabac.h:527: error: 'asm' operand has impossible constraints
make[2]: *** [h264.o] Error 1
make[2]: Leaving directory `/build/buildd/mplayer-1.0~svn29092/libavcodec'
make[1]: *** [libavcodec/libavcodec.a] Error 2
make[1]: Leaving directory `/build/buildd/mplayer-1.0~svn29092'
make: *** [build-stamp] Error 2

Does anybody know what's going on here, or how I can fix it?
thefirstm is offline   Reply With Quote
Old 03-29-09, 04:03 AM   #18
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

Quote:
Originally Posted by thefirstm View Post
I am having a problem getting mplayer to compile
Please do make distclean && svn up && ./configure and post the uncut output of a repeated "make" here.

And note that only MPlayer svn is supported (by me)!

Carl Eugen

Last edited by cehoyos; 03-29-09 at 04:04 AM. Reason: I can't say anything about a custom MPlayer with a weird version number.
cehoyos is offline   Reply With Quote
Old 03-29-09, 04:46 AM   #19
thefirstm
Registered User
 
Join Date: Feb 2009
Posts: 226
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

OK, here it is. It was too big to attach at first, so I had to bzip it to make it fit.
Attached Files
File Type: bz2 mplayerbuildlog.log.bz2 (19.5 KB, 97 views)
thefirstm is offline   Reply With Quote
Old 03-29-09, 05:19 AM   #20
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

This is a well-known problem. Please add "-fomit-frame-pointer" to your CFLAGS, or better, don't use custom CFLAGS at all.
hl_ is offline   Reply With Quote

Old 03-29-09, 05:20 AM   #21
thefirstm
Registered User
 
Join Date: Feb 2009
Posts: 226
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

Sure thing. Let me fix that, and then I will get back to you.
thefirstm is offline   Reply With Quote
Old 03-29-09, 05:52 AM   #22
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

Quote:
Originally Posted by thefirstm View Post
OK, here it is. It was too big to attach at first, so I had to bzip it to make it fit.
Note that I did not ask for the complete output of your first call to make. (But for the complete output of another call.)
Apart from that, sorry for the noise: You are obviously not using MPlayer svn, and I don't know anything about other versions.

Sorry, Carl Eugen
cehoyos is offline   Reply With Quote
Old 03-29-09, 07:23 AM   #23
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

Quote:
Originally Posted by cehoyos View Post
Apart from that, sorry for the noise: You are obviously not using MPlayer svn, and I don't know anything about other versions.
Why do you think that, and why is it so obvious?
The directory name "mplayer-1.0~svn29092" seems to imply it's a recent svn snapshot.
hl_ is offline   Reply With Quote
Old 03-29-09, 07:27 AM   #24
thefirstm
Registered User
 
Join Date: Feb 2009
Posts: 226
Default Re: HOTWO: compile mplayer with VDPAU under Ubuntu (x86 or x86_64)

OK, here is the honest truth:

The build IS a recent official SVN build of Mplayer. I downloaded it earlier today. However, what I have not been telling you is that the build was done in Ubuntu's automated build system for the Launchpad PPAs. I had not modified the source, except for the /debian folder, until your recommendation to try -fomit-frame-pointer. After adding this option, it builds successfully on i386 and amd64.
thefirstm is offline   Reply With Quote
Reply


Thread Tools

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 -5. The time now is 02:35 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.