nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   VDPAU and DEINTERLACE problem (http://www.nvnews.net/vbulletin/showthread.php?t=140538)

jdobry 10-27-09 05:43 AM

VDPAU and DEINTERLACE problem [solved]
 
1 Attachment(s)
Hello,

I have problem with VDPAU deinterlace. It have dropped pictures.
I was try many possible configuration and nothing help except disable deinterlace.

I was test it with driver 185.18.36, 190.42RC both is same
I try it wit several cards:
- 8400 with shared memory - AMD X2 4800+
- G100 - 512MB 64bit DDR2 - AMD X2 4800+
- G105M - 512MB 64bit DDR2 - intel T6600 CPU
- G130 - 792MB 192bit DDR2 - AMD X2 4800+

Nothing works

I test several xine-lib version
- revision 262 SVN
- revision 275 SVN
- revision 284 SVN
- revision 285 SVN

nothing works

EDIT: freezing is solved, but I have visibly drooped frames

I was try SD/MPEG2 video with temporal_spatial deinterlace - not work
I was try HD/h264 video with all deinterlacers bob/temporal/temporal_spatial - not work

On all cards qvdpau show me sufficient power to deinterlace, its works, but freeze randomly.

For exclusion window manager effect I was try start it without window manager direcly on xorg server. It not help.

Why? I don't have idea what I can do. Going to crazy... :thumbdwn:

Tracelog (VDPAU_TRACE=1) for one freeze few second after start is in attachment.

crisalide 10-27-09 06:05 AM

Re: VDPAU and DEINTERLACE problem
 
This is a known problem, see http://www.nvnews.net/vbulletin/showthread.php?t=131201

At this time, add this in your /etc/X11/xorg.conf :
Code:

Section "Extensions"
        Option "Composite" "Disable"
EndSection

This will make vdpau to use the overlay, which doesn't suffer this problem.

Another option is to use half rate deinterlacers ( "half temporal" or "half temporal_spatial" ) since the freezes only happen with 2X deinterlacers ( "bob", "temporal" and "temporal_spatial" )

jdobry 10-27-09 07:51 AM

Re: VDPAU and DEINTERLACE problem
 
Thanks for quick reply. I lost plenty of time to found problem on XINE and it look that problem in driver.

At this moment I am not sure, if it is exactly same bug as you refer, but I hope. I will try if disable composite help, and in this case I will add some more information into thread from reference. I read, that Stephen Warren have some dificultes to reproduce this problem.

I can try only disable composite because I don't know how to set vdpau deinterlace metod for SD video (in XINE). Configuration file support it only for HD.

jdobry 11-27-09 10:53 AM

Re: VDPAU and DEINTERLACE problem
 
It looks, that 195.22 solve freezing. But video play is not smooth. With deinterlace filter it is easy to see dropped frames. If I play several times recorded video from HDTV video broadcast and dropped pictures is every time on same place. Strange, stream is without glitch in data.

without DEINTERLACE filter it have smooth playing but interlaced video on progresive screen is ugly.

I test it with few TV connected thou HDMI with 1080p50 nad 720p50 configuration. Input signal is 1080i

Any Idea? I can upload short video sample somewhere, but it can't be public. It is signal from live TV and I have not copyright :-(

Signal is from satellite, without bad packets (I can analyze CRCs in service tables) H264

I was try each deintarlace filter (bob, temporal, half tempral, temporal spatial, half temporal spatial) and change this have not any effect.

G130 card have sufficient power by my mean.

I was try with or without synchronization monitor but it is not solved.

jdobry 11-28-09 02:51 AM

Re: VDPAU and DEINTERLACE problem
 
Strange. I found that its much better when I disable main CPU frequency scaling. A am not expert but I was thing that everything in decode->deinterlace->presentation is done in GPU, noy in CPU or not? CPU utilize is around 5-15%.

P.Kosunen 11-28-09 07:34 AM

Re: VDPAU and DEINTERLACE problem
 
What CPU do you have? AMD (and newest Intels) has memory controller in CPU so CnQ also drops memory performance.

jdobry 11-29-09 11:32 AM

Re: VDPAU and DEINTERLACE problem
 
I wast test it with many CPU on many machines. See to my first post in this thread.
I know that change frequency have side effect to memory. Problem is that only one of tested configuration have shared RAM. All others have dedicated RAM on graphical card and in this case I am not expect big changes. Except this all used cards have sufficient paper power to do it without main CPU. For example, when I was try play H264 video with deinterlacer, card is able to show 33000 pictures/sec glxgears test in another window without effect to video play. (When I use syncronization to SYNC signal it is only 250 pictires/sec but it depend to monitor frequency not graphic card.

P.Kosunen 11-30-09 06:06 AM

Re: VDPAU and DEINTERLACE problem
 
Didn't read carefully..

xine-lib-1.2-vdpau

That freeze problem with xine-lib could be buggy libX11/xcb. Try above version, "#define LOCKDISPLAY" is enabled by default and should not freeze.

jdobry 11-30-09 08:46 AM

Re: VDPAU and DEINTERLACE problem
 
Thanks for reply, but I can confirm this bug for xine-lib mercurial snapshot from 2009-11-22 where is this "LOCKDISPLAY" workarround enabled.
VDPAU patches are last (r284).

Stephen Warren 11-30-09 11:48 AM

Re: VDPAU and DEINTERLACE problem
 
I'm not really sure what the current problem is now.

If you're having de-interlacing performance problems, try a de-interlacer that requires lower performance. Bob should work on anything. Temporal spatial probably won't work on those cards, since I think they're all fairly low-end (although maybe it will for SD but not HD).

jdobry 11-30-09 01:24 PM

Re: VDPAU and DEINTERLACE problem
 
Stephen: I have this problem with all deinterlacers including BOB. Problematic is 1080i H264 stream from satelitte. I was try it on 5 different machines (AMD, Intel, Shared RAM or dedicated RAM, four different nVidia cards.)

I can upload stream sample somewhere, but not public, I am not have copyright.

crisalide 11-30-09 02:53 PM

Re: VDPAU and DEINTERLACE problem
 
jdobry,

what do you mean by "dropped frames" ? Does xine explicitly discard frames and you read it in its verbose output, or is this a "visual" conclusion ?


All times are GMT -5. The time now is 11:59 PM.

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