GNOME Bugzilla – Bug 726048
media-video/totem-3.10.1 - video playback tearing
Last modified: 2014-09-06 11:39:35 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
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.
Please see https://wiki.gnome.org/Apps/Videos/BugReporting for testing with GStreamer.
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
Created attachment 271654 [details] GST_DEBUG_NO_COLOR=1 GST_DEBUG=*:2 totem 2> log
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.
(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?
OK thanks - it may be an issue with clutter-gtk then. Installing gst-plugins-vaapi-0.5.8 makes not difference.
(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?
yes libva-intel-driver is installed
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.
*** Bug 708145 has been marked as a duplicate of this bug. ***
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).
(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.
OK thanks - I will let the Gentoo team know about the patches.
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?
(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.