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

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-23-08, 06:33 PM   #157
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by Watto View Post
Hey I just installed your mplayer_1.0-svn27979-vdpau-0ubuntu2_amd64.deb and when I run it all I get is "Segmentation fault".
Can you double check it or something?
Check that the md5 of the package is correct. I've verified them here on 3 PCs (64bits) and they all work okay.
I've put a file content.md5 with the list of all md5..

Make sure that the 180.08 drivers are installed too...
jyavenard is offline   Reply With Quote
Old 11-23-08, 09:26 PM   #158
Watto
Registered User
 
Join Date: Nov 2008
Posts: 43
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
Check that the md5 of the package is correct. I've verified them here on 3 PCs (64bits) and they all work okay.
Ok it's working now, I guess I had a corrupt download.
Sorry.
Watto is offline   Reply With Quote
Old 11-24-08, 01:47 AM   #159
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
For people running ubuntu..

I've put the 32 bits package there of mplayer from svn trunk (latest version) ; you'll also need to install the newer x264 packages
Available there:
http://www.avenard.org/files/ubuntu/
I just installed them and mplayer fails to run ... I get this error in the terminal:


gmplayer: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory


What am I doing wrong ?? What packages am I supposed to install from your website ?? .. Thanks.
swagger01 is offline   Reply With Quote
Old 11-24-08, 06:18 AM   #160
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by swagger01 View Post
I just installed them and mplayer fails to run ... I get this error in the terminal:


gmplayer: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory


What am I doing wrong ?? What packages am I supposed to install from your website ?? .. Thanks.
You need to install the following packages:
libamrnb, libamrwb, libdirac, liboil0.3, libschroedinger

I've just realised that I didn't put check of dependencies in the package ... Recompiling now (it takes 10 minutes on a C2D 3.33GHz to compile ! )... Will upload the new ones soon , now you'll get an error and a message telling you which dependencies are missing...

Cheers
JY
jyavenard is offline   Reply With Quote
Old 11-25-08, 06:23 PM   #161
AdamW
Registered User
 
Join Date: Mar 2007
Posts: 5
Default Re: mplayer vdpau

I apologize if this has been posted already, but I just wanted to draw the attention of any NVIDIA folks to the short initial discussion of the patches by the mplayer folks:

http://lists.mplayerhq.hu/pipermail/...er/059012.html

Particularly the following response, from Reimar D÷ffinger:

"Too bad they based it (probably) on vo_xvmc which makes it a horribly bloated monster and quadruplicates the code (I think at least 70 lines are identically duplicated in vo_x11, vo_xv and vo_xvmc and possibly x11_common.c, too, of course all with minor differences and their wholly own set of bugs)."

I'm going to take an experimental cut at adding the patches to the Mandriva packages (in development branch) and see if they work; I have a 9600GT in my HTPC, so I can test.
AdamW is offline   Reply With Quote
Old 11-26-08, 11:23 AM   #162
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: mplayer vdpau

Would it be possible to just have to specify -vo vdpau and let mplayer/??? choose the best -vc ??? ?
Gregoire.Favre is offline   Reply With Quote
Old 11-26-08, 12:23 PM   #163
Civilus
Registered User
 
Join Date: Apr 2008
Location: Russia, Moscow
Posts: 39
Send a message via ICQ to Civilus
Default Re: mplayer vdpau

Gregoire.Favre
You can write a litter wrapper, like that:
Code:
#!/bin/bash
PATH_TO_MPLAYER=""
VIDEO_CODEC=`${PATH_TO_MPLAYER}mplayer "${@}" -ss 00:00:00 -endpos 00:00:00 -loop 1 | grep "video codec"`
CODEC=`echo ${VIDEO_CODEC} | grep -o "ffh264"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffwmv3"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffmpeg12"`
[[ -z ${CODEC} ]] || CODEC="-vo vdpau -vc ${CODEC}vdpau -noass -nofontconfig"

${PATH_TO_MPLAYER}mplayer ${CODEC} "${@}"
__________________
OS: Gentoo Linux, ~amd64. VideoCard: GeForce GTX 470. ASUS P8P67 Deluxe, 2x4GB DDR3-1600 CL9, Core i7 2600k.
Civilus is offline   Reply With Quote
Old 11-26-08, 12:50 PM   #164
scowl
Registered User
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 31
Default Re: mplayer vdpau

Quote:
Originally Posted by AdamW View Post
Particularly the following response, from Reimar D÷ffinger:

"Too bad they based it (probably) on vo_xvmc which makes it a horribly bloated monster and quadruplicates the code (I think at least 70 lines are identically duplicated in vo_x11, vo_xv and vo_xvmc and possibly x11_common.c, too, of course all with minor differences and their wholly own set of bugs)."
I wouldn't take what some people on that list say too seriously. Many developers there value any clever technique that eliminates as many characters in the source code as possible regardless of how unreadable it makes the code. My favorite is their XvMCPutSurface code:

Code:
for (i = 1; i <= bob_deinterlace + 1; i++) {
   int field = top_field_first ? i : i ^ 3;
   rez = XvMCPutSurface(mDisplay, p_render_surface->p_surface, 
                        vo_window,
                        0, 0, image_width, image_height,
                        clipX, clipY, clipW, clipH,
                        bob_deinterlace ? field : 3);
Of course this code makes rigid mathematical assumptions on what the correct values of the flags to XvMCPutSurface are (i ^ 3???) but at least it isn't "bloated" by defining them explicitly with screen-wasting hogs like "XVMC_TOP_FIELD" that might tell you what it's actually doing.
scowl is offline   Reply With Quote

Old 11-26-08, 03:22 PM   #165
Gregoire.Favre
Registered User
 
Join Date: Nov 2004
Posts: 126
Default Re: mplayer vdpau

Quote:
Originally Posted by Civilus View Post
Gregoire.Favre
You can write a litter wrapper, like that:
Code:
#!/bin/bash
PATH_TO_MPLAYER=""
VIDEO_CODEC=`${PATH_TO_MPLAYER}mplayer "${@}" -ss 00:00:00 -endpos 00:00:00 -loop 1 | grep "video codec"`
CODEC=`echo ${VIDEO_CODEC} | grep -o "ffh264"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffwmv3"`
CODEC+=`echo ${VIDEO_CODEC} | grep -o "ffmpeg12"`
[[ -z ${CODEC} ]] || CODEC="-vo vdpau -vc ${CODEC}vdpau -noass -nofontconfig"

${PATH_TO_MPLAYER}mplayer ${CODEC} "${@}"
Well, it's more or less what I got (I have also test for DTS which I have to convert on the fly to AC3) but I found this quite unpleasant and most unelegant ;-)
Anyway, thank for the answer even if I hope to have something similar be done directly in mplayer...
Gregoire.Favre is offline   Reply With Quote
Old 11-26-08, 05:23 PM   #166
Civilus
Registered User
 
Join Date: Apr 2008
Location: Russia, Moscow
Posts: 39
Send a message via ICQ to Civilus
Default Re: mplayer vdpau

Quote:
Anyway, thank for the answer even if I hope to have something similar be done directly in mplayer...
I think it should be easy to do, but I don't have enough knowledges both in C and mplayer's code to do it.
__________________
OS: Gentoo Linux, ~amd64. VideoCard: GeForce GTX 470. ASUS P8P67 Deluxe, 2x4GB DDR3-1600 CL9, Core i7 2600k.
Civilus is offline   Reply With Quote
Old 11-26-08, 05:59 PM   #167
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by scowl View Post
Of course this code makes rigid mathematical assumptions on what the correct values of the flags to XvMCPutSurface are (i ^ 3???) but at least it isn't "bloated" by defining them explicitly with screen-wasting hogs like "XVMC_TOP_FIELD" that might tell you what it's actually doing.
i ^ 3 in C, ^ XOR.. It's a very fast trick to calculate a modulus of 4
jyavenard is offline   Reply With Quote
Old 11-26-08, 06:07 PM   #168
scowl
Registered User
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 31
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
i ^ 3 in C, ^ XOR.. It's a very fast trick to calculate a modulus of 4
And it's a very slow trick to calculate a constant!
scowl 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
NVIDIA VDPAU Reference Benchmarks News Archived News Items 0 06-11-12 05:30 AM
VDPAU and KDE 4.8 compositing = slow Pie-rate NVIDIA Linux 30 05-23-12 07:07 AM
VDPAU testing tool crisalide NVIDIA Linux 392 04-29-12 06:01 PM
mplayer & xmms problems! replys2me NVIDIA Linux 5 09-06-02 02:34 PM

All times are GMT -5. The time now is 03:30 AM.


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