After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726048 - media-video/totem-3.10.1 - video playback tearing
media-video/totem-3.10.1 - video playback tearing
Status: RESOLVED NOTGNOME
Product: totem
Classification: Core
Component: general
3.10.x
Other Linux
: Normal major
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 708145 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-03-10 17:30 UTC by fcrvincent
Modified: 2014-09-06 11:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:2 totem 2> log (15.37 KB, application/octet-stream)
2014-03-12 21:15 UTC, fcrvincent
Details

Description fcrvincent 2014-03-10 17:30:54 UTC
media-video/totem-3.8.2-r1 and 3.10.1 suffer from video playback tearing on all video formats (e.g. mp4 or DVD). version 2.32.0 did not have this issue.

The same videos played with ffplay or xine-ui on the same system do not tear. 
When xorg's TearFree option is set to true, there is no more tearing but the video playback stutters. 
My system is an Intel Graphics i3-370 based system.

Reproducible: Always

Steps to Reproduce:
1.Launch totem player on DVD or mp4 video 
2.
3.
Actual Results:  
Every action sequence with panning leads to video tearing at a fixed position.
This happens both in fullscreen or window modes; however the tearing line is different between fullscreen and the window modes.

Expected Results:  
No video tearing.

Please see https://bugs.gentoo.org/show_bug.cgi?id=499714 for details
Comment 1 fcrvincent 2014-03-10 19:18:17 UTC
A couple of additional comments: 

There is no tearing when downgrading to totem-2.32.0.

Tearing still happens even without the SNA use flag for the x86-video-intel driver (I tried that because someone suggested that their may be a bug in the Intel driver).

It seems to be a regression that was introduced from version 3.8.x (or may be earlier). 

Hope it will be fixed because Totem still seems to be the best player around (i.e. that can play anything from DVD's that are unplayable with other players to multi-angle DVD's.
Comment 2 André Klapper 2014-03-10 22:36:29 UTC
Please see https://wiki.gnome.org/Apps/Videos/BugReporting for testing with GStreamer.
Comment 3 fcrvincent 2014-03-12 20:51:50 UTC
Please note that other GST based players work without the tearing issue. 

Both the gst-based snappy and gst-play-1.0 players work without tearing on the same Intel Graphics based machine and the same video sequences. 

Also please note that totem-2.32.0 does not have the tearing issue. 

It really seems that the issue is a regression that happened (at least) from totem-3.8.2
Comment 4 fcrvincent 2014-03-12 21:15:39 UTC
Created attachment 271654 [details]
GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:2 totem 2> log
Comment 5 fcrvincent 2014-03-12 21:17:21 UTC
The log file show several errors like:

"0x852f950 WARN  cluttersink ./clutter-gst-video-sink.c:1738:clutter_gst_video_sink_render: Replacing existing buffer 0xa8e21ee8 (most likely wasn't displayed)"

Not sure if this is related to the tearing issue.
Comment 6 Bastien Nocera 2014-03-13 09:52:50 UTC
(In reply to comment #3)
> Please note that other GST based players work without the tearing issue. 
> 
> Both the gst-based snappy and gst-play-1.0 players work without tearing on the
> same Intel Graphics based machine and the same video sequences. 

Neither of those use clutter-gtk.

> Also please note that totem-2.32.0 does not have the tearing issue. 

This uses Xv (not clutter) and GStreamer 0.10 (not 1.0).

> It really seems that the issue is a regression that happened (at least) from
> totem-3.8.2

The problem is likely a problem caused by clutter-gtk.

Do the tearing problems go away if you use the VAAPI GStreamer plugin?
Comment 7 fcrvincent 2014-03-13 12:09:42 UTC
OK thanks - it may be an issue with clutter-gtk then.

Installing gst-plugins-vaapi-0.5.8 makes not difference.
Comment 8 Bastien Nocera 2014-03-13 15:14:41 UTC
(In reply to comment #7)
> OK thanks - it may be an issue with clutter-gtk then.
> 
> Installing gst-plugins-vaapi-0.5.8 makes not difference.

Did you install the intel libva driver as well?
Comment 9 fcrvincent 2014-03-13 15:33:19 UTC
yes libva-intel-driver is installed
Comment 10 Bastien Nocera 2014-03-13 16:16:36 UTC
I was told this was expected on Intel hardware (tearing) and that this would help fix the tearing:
https://bugzilla.gnome.org/show_bug.cgi?id=711028#c9

(Basically, DRI-3 and a number of fixes around it).

You can keep the libva plugins and driver installed, that should make playback smoother by not using the CPU as much.

Resolving as NOTGNOME, as it's an Xorg problem.
Comment 11 Bastien Nocera 2014-03-13 16:24:05 UTC
*** Bug 708145 has been marked as a duplicate of this bug. ***
Comment 12 fcrvincent 2014-03-13 17:38:12 UTC
Thanks

I had already tried the xorg tweaks with "TearFree"    "true"

There is no more tearing then but the video stutters at the places where it used to tear instead.

With respect to applying proposed patches I am not sure whether they are already included in the Gentoo ebuilds (I am using Gentoo).
Comment 13 Bastien Nocera 2014-03-13 18:17:33 UTC
(In reply to comment #12)
> Thanks
> 
> I had already tried the xorg tweaks with "TearFree"    "true"
> 
> There is no more tearing then but the video stutters at the places where it
> used to tear instead.

I don't suggest you use that, no.

> With respect to applying proposed patches I am not sure whether they are
> already included in the Gentoo ebuilds (I am using Gentoo).

You'll need to check with the Gentoo developers. They'll all get there in time, but code's available if you want to test.
Comment 14 fcrvincent 2014-03-13 19:03:44 UTC
OK thanks - I will let the Gentoo team know about the patches.
Comment 15 Charles Lahaine 2014-09-06 08:25:10 UTC
Is there any news whether the proposed patches will ever be or have been applied to relevant packages? Or will we need to wait for Wayland to fix the tearing?
Comment 16 Bastien Nocera 2014-09-06 11:39:35 UTC
(In reply to comment #15)
> Is there any news whether the proposed patches will ever be or have been
> applied to relevant packages? Or will we need to wait for Wayland to fix the
> tearing?

I don't know, because they're not Totem patches. DRI-3 is now available, and fixes are being made to it. It should be usable with GNOME 3.14. For everything else, see with their various upstreams.