Opened 11 years ago

Closed 10 years ago

#6312 closed defect (invalid)

Screen tearing on h.264 vdpau playback starting with version 19969 through current trunk. (20088)

Reported by: anonymous Owned by: markk
Priority: minor Milestone: 0.22
Component: MythTV - Video Playback Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Begining with commit 19969 I have screen tearing on the top third of the screen when playing back h.264 (720p) using vdpau. This is using the intergrated motherboard video 8200 chipset. I have tracked it down to just two lines of code causing the problem. If I remove these two lines playback is perfect. Of course I have no idea what other problems removing the two lines might cause.

--- libs/libmythtv/videoout_xv.cpp.org 2009-03-02 13:43:45.000000000 -0600 +++ libs/libmythtv/videoout_xv.cpp 2009-03-02 13:44:50.000000000 -0600 @@ -3327,7 +3327,6 @@

if (XVideoVDPAU == VideoOutputSubType?()) {

{

X11L; XSetForeground(XJ_disp, XJ_gc, vdpau_colorkey);

@@ -3337,7 +3337,6 @@

display_visible_rect.width(), display_visible_rect.height());

X11U;

} return;

}

Attachments (4)

fix-vdpau-tearing-v2.patch (598 bytes) - added by anonymous 11 years ago.
mythfrontend.log (26.4 KB) - added by anonymous 11 years ago.
fix-vdpau-tearing-v3.patch (724 bytes) - added by anonymous 10 years ago.
fix-vdpau-tearing-v4.patch (614 bytes) - added by anonymous 10 years ago.

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by anonymous

Attachment: fix-vdpau-tearing-v2.patch added

comment:1 Changed 11 years ago by markk

Owner: changed from Isaac Richards to markk
Status: newaccepted

comment:2 Changed 11 years ago by markk

Status: acceptedinfoneeded

Can you provide a playback log (mythfrontend -v playback) and confirm your driver version and whether or not composite is enabled.

And for the sake of clarity, can you check/confirm that you only see this with h.264 720p?

Thanks

Mark

Changed 11 years ago by anonymous

Attachment: mythfrontend.log added

comment:3 Changed 11 years ago by anonymous

Nvidia driver version is 180.29 Composite is turned off.

Tested video modes all using vdpau playback. 1080i mpeg2 - no tearing 720p mpeg2 - no tearing 480i mpeg2 - no tearing 720p h.264 - tearing

mythfrontend -v playback log attached (mythfrontend.log)

comment:4 Changed 11 years ago by danielk

Status: infoneededassigned

comment:5 Changed 10 years ago by markk

Status: assignedaccepted

comment:6 Changed 10 years ago by markk

Can you confirm whether or not you are still seeing this?

Changed 10 years ago by anonymous

Attachment: fix-vdpau-tearing-v3.patch added

comment:7 Changed 10 years ago by anonymous

As of 20650 it still happens. I could update to the latest trunk this weekend if you want me to. Version 3 is the patch I am currently using to fix it.

comment:8 Changed 10 years ago by anonymous

Ok I just updated from 20650 to 20787 and the problem has disappeared. :) Tried a lot of different recordings and never saw any tearing. Thanks.

comment:9 Changed 10 years ago by anonymous

Looks like I spoke to soon. I didn't notice before because I only let the videos play for a short time. But I am now seeing the tearing after the video is playing for a while. Fast forwarding or rewinding the video fixes it for a while and then it returns. I have updated the patch since it has been moved to videoout_vdpau.cpp.

Changed 10 years ago by anonymous

Attachment: fix-vdpau-tearing-v4.patch added

comment:10 Changed 10 years ago by databubble

I get rapid full screen flickering/tearing with this when use with my IGP 8200 Asus M3N78-VM at the standard GPU clock rate of 500 MHz. This is with 720p content on a 1080p display (changing the de-interlacer doesn't help.)

If I overclock the GPU to 550 MHz, the video is solid, without even the normal slight tearing I experience in panning/fast motion scenes.

comment:11 Changed 10 years ago by anonymous

This bug can be closed. It was a bug in nvidia-drivers. Nvidia-drivers version 185.18.29 fixed it but introduced another nasty bug that caused audio drop outs on the spdif output.

Nvidia-drivers 185.18.36 works like a charm. No tearing and no audio drop outs.

comment:12 Changed 10 years ago by robertm

Resolution: invalid
Status: acceptedclosed

Closing per the reporter, nVidia driver issue. Thank you very much for reporting back.

Note: See TracTickets for help on using tickets.