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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-27-09, 06:36 AM   #625
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

I've re-created a package with the hack increasing the number max_reference and it plays those files again..
jyavenard is offline   Reply With Quote
Old 01-27-09, 07:50 AM   #626
wognvnews
Registered User
 
Join Date: Nov 2006
Posts: 12
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
However, video and sound is then not in sync. Sound is about .5s ahead of video and that gap keep increasing...
I have also experienced audio sync problems. But it only occurs if I attempt playback with the display refresh rate of 24. Works perfect with rate of 60.

Any idea why I would be having this problem with 24p playback?

24p playback greatly reduces video judder for me, but audio is out of sync and gets progressively worse as playback proceeds.

driver: 180.22
mplayer-vdpau: 3263604
linux: 2.6.27.9-159.fc10.x86_64
wognvnews is offline   Reply With Quote
Old 01-27-09, 07:52 AM   #627
sl1pkn07
Registered User
 
Join Date: Nov 2006
Location: Spanishtan
Posts: 103
Default Re: mplayer vdpau

VO: [vdpau] 1920x1080 => 1920x1080 H.264 HIGH VDPAU acceleration
Error 2 at libvo/vo_vdpau.c:1055: -0.079 0/ 0 0% 0% 9.7% 0 0

playing vexille 1080p


VO: [vdpau] 1920x1078 => 1920x1078 H.264 HIGH VDPAU acceleration
Error 25 at libvo/vo_vdpau.c:992: -0.050 0/ 0 125% 62% 3.5% 10 0

playing Sword of Stranger 1080p


on new version mplayer-vdpau/drivers with 8400GS G98
sl1pkn07 is offline   Reply With Quote
Old 01-27-09, 08:16 AM   #628
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by wognvnews View Post
24p playback greatly reduces video judder for me, but audio is out of sync and gets progressively worse as playback proceeds.
are you watching a 24p video though?

The issue of audio not being in sync with video always happen if I'm watching say a 50Hz 1080i signal on a 24p display.

Sync issue between audio and video when the display refresh rate matches the video only occurs with high-def file for me...

it's much better using mythtv than in mplayer
jyavenard is offline   Reply With Quote
Old 01-27-09, 08:20 AM   #629
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: mplayer vdpau

Quote:
Originally Posted by sl1pkn07 View Post
VO: [vdpau] 1920x1078 => 1920x1078 H.264 HIGH VDPAU acceleration
Error 25 at libvo/vo_vdpau.c:992: -0.050 0/ 0 125% 62% 3.5% 10 0

playing Sword of Stranger 1080p
did you try changing the value of max_reference
in libvo/vo_vdpau.c 704:
change: max_references = (12 * 1024 * 1024) / surf_size;
to: max_references = ((12 * 1024 * 1024) / surf_size) + 11;
jyavenard is offline   Reply With Quote
Old 01-27-09, 09:40 AM   #630
John Teg
Registered User
 
Join Date: Dec 2008
Location: France, Le Mans
Posts: 2
Default Re: mplayer vdpau

Quote:
Originally Posted by jyavenard View Post
did you try changing the value of max_reference
in libvo/vo_vdpau.c 704:
change: max_references = (12 * 1024 * 1024) / surf_size;
to: max_references = ((12 * 1024 * 1024) / surf_size) + 11;
This code return 16 for all resolution (except 1920*1080 where it return 15) it's probably better to replace all of that by simply :

max_references = 16;

The code I use is :

Code:
if(vid_height > 720)
	max_references = 8;
else
	max_references = 16;
But it's only because my card seems to not be able to handle more than 8 references frames at 1080p.

And I have initialize NUM_VIDEO_SURFACES_H264 at 18 else some video didn't play (all the one using 16 references frames + b_pyramide).

My card is a 8500GT 512Mo (G86)
John Teg is offline   Reply With Quote
Old 01-27-09, 09:59 AM   #631
The_Rebel
Registered User
 
Join Date: Jan 2009
Posts: 9
Default Re: mplayer vdpau

Can someone explain to me why i can run compiz and VDPAU (mplayer) without tearing?

It'll work fine with the screen that has compiz running, but will tear on the other X session that has no compiz running, why is this?

Here's the commands i use to start compiz.

"compiz.real --fast-filter --only-current-screen --replace --loose-binding --replace core ccp &"
The_Rebel is offline   Reply With Quote
Old 01-27-09, 10:20 AM   #632
DeiF
Registered User
 
Join Date: Oct 2008
Posts: 114
Default Re: mplayer vdpau

Still seeing this error with every video (180.25 and mplayer-vdpau-3402051):
Code:
VDec: vo config request - 1280 x 544 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1280x544 => 1280x544 Planar YV12
VDPAU capture: Enabled
vdp_imp_device_create_x11(0x135f950, 0, -, -)
VDPAU nvidia: Error detected 1028 43  5
VDPAU nvidia: Backtrace:
01: /usr/lib64/libvdpau_nvidia.so [0x7f5c99c60768]
VDPAU nvidia: Error detected 0 5357
VDPAU nvidia: Backtrace:
01: /usr/lib64/libvdpau_nvidia.so [0x7f5c99c60768]
    -> 25
Error 25 at libvo/vo_vdpau.c:230
DeiF is offline   Reply With Quote

Old 01-27-09, 10:43 AM   #633
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by wognvnews View Post
I have also experienced audio sync problems. But it only occurs if I attempt playback with the display refresh rate of 24. Works perfect with rate of 60.

Any idea why I would be having this problem with 24p playback?
I think that by default MPlayer displays all frames decoded from the stream. To maintain correct AV sync, it's quite possible (especially at 24Hz display) that some frames need to be dropped to maintain timing. I believe there's an MPlayer (or ffmpeg) option to do this.
Stephen Warren is offline   Reply With Quote
Old 01-27-09, 10:45 AM   #634
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mplayer vdpau

Quote:
Originally Posted by The_Rebel View Post
Can someone explain to me why i can run compiz and VDPAU (mplayer) without tearing?

It'll work fine with the screen that has compiz running, but will tear on the other X session that has no compiz running, why is this?
On the screen with compiz, you're either just getting lucky and no seeing the tearing, or compiz itself is syncing to VBLANK when it renders (or perhaps you've turned that on in the OpenGL settings).

On the other screen, you have the composite extension enabled, so it uses the blit-based presentation queue implementation, which doesn't sync to VBLANK, and so tears.
Stephen Warren is offline   Reply With Quote
Old 01-27-09, 12:07 PM   #635
motd2k
Registered User
 
Join Date: Jan 2009
Posts: 27
Default Re: mplayer vdpau

Small bug on vo_vdpau.c line 780 i think....


PHP Code:
max_height = FFMAX(max_height, d_width);
motd2k is offline   Reply With Quote
Old 01-27-09, 01:21 PM   #636
quadtree
Registered User
 
Join Date: Jan 2009
Posts: 34
Default Re: mplayer vdpau

Quote:
Originally Posted by Stephen Warren View Post
It's possible this hang is the same thing as in this thread:

http://www.nvnews.net/vbulletin/showthread.php?t=126213

To confirm this, can you run the application under gdb, reproduce the hang, CTRL-C the app, then type "bt" into gdb and post the backtrace it prints. Thanks.

Do you have any other applications that are using overlay? That would trigger that issue...

Thanks.
Stephen,

I installed both version 180.25 of the driver and the latest mplayer vdpau patches from today (1-26). With only the driver changed, I had the same problem. Now that I have installed the lastest mplayer patches as well, things have improved a little.

I no longer get the hang or the backtraces after vdp_presentation_queue_create(). Instead I get two error messages each time:

VDPAU nvidia: Error detected 1002 32 12
VDPAU nvidia: Error detected 2 183

Play then continues without hanging. However, I still see tearing as if it isn't really using overlays or the vsync is just off. Again, this only happens with the tv-out port. Using the analog VGA connector, everything works fine.

Unfortunately I had already installed the new driver and mplayer before trying to run it in gdb. If a backtrace from gdb would still be helpful let me know and I'll revert to an older mplayer.
quadtree 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 09:17 AM.


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