How to reduce the tearing while watching videos?

5,214

Solution 1

Tearing in videos is caused by the video drawing not being synchronised with the refresh-rate of the display. This results in displaying the top part of one frame and the bottom half on the previous frame at the same time, which is particularly noticeable on sections of video with horizontal panning.

The open-source drivers, with DRI2, should be able to synchronise their drawing with the screen refresh properly, even when running with desktop effects enabled¹. The proprietary nVidia and ATi drivers may not do this properly.

Finally, disabling desktop effects should eliminate the tearing regardless of what driver you're using - all (sensible) drivers can sync-to-vblank for video in this case.

¹: Technically, the problem is having a compositing manager running, because that means that all windows are first drawn off-screen and then composited to the display by the compositing manager. Since the video is first “drawn” offscreen, it's not possible to synchronise this to the screen refresh.

Solution 2

The easiest way to get rid of the tearing is to use the open source drivers (so, remove the closed source driver). Provided that your card works with them of course, but most cards do work (including 3D) with the open source drivers nowadays...

Solution 3

ATI has always been problematic for me in regards to video play when Compiz is active. In fact, I ended up dropping my beloved ATI's for nVidia because of it. But, I digress.

From a terminal run gstreamer-properties. Under the Video tab, try adjusting the Plugin for Default Output. You may lose some abilities to adjust size of viewing, but you may be able to fix most of the tearing.

In the past, I believed I used "X Window System (No Xv)", but I was not able to scale my videos in mplayer.

Share:
5,214

Related videos on Youtube

Leonardo TM
Author by

Leonardo TM

Updated on September 17, 2022

Comments

  • Leonardo TM
    Leonardo TM over 1 year

    I'm using the Ubuntu 10.10 with both VLC player and MPlayer and already installed the ATI drivers. I watched the same videos on Windows 7 and Ubuntu. But on Ubuntu the images have a lot of tearing. I tried some newbish-configs on my ATI config tool, but nothing changed.

    I tried videos in mkv, avi, rmvb... and in all kinds of resolutions. I would love to see some tips or maybe a solution to this problem.

    (I have searched for similar questions but I didn't find any :/ )

    The english is not my primary lang so sorry for my mistakes.

    Thanks in advance!

    []'s Leonardo

    My HW Config (Acer Aspire 5740G-6979) -ATI Mobility Radeon 5650 -Intel Core i5-430M -4GB Ram

  • Leonardo TM
    Leonardo TM over 13 years
    So I'll try some open source drivers. My VGA is an ATI 5650 (ACER AS-5740G), any specific tip or driver ?
  • Jorge Castro
    Jorge Castro over 13 years
    @Leonardo Please update your question with your hardware information so it doesn't get buried in the comments, thanks!
  • Leonardo TM
    Leonardo TM over 13 years
    Ty RAOF for all the info. Just one more thing, do you know a good manager/program/app that I can use to easily/fastly enable and disable my compositing manager? (Once I used one that stayed on the traybar but I never found it again)
  • JanC
    JanC over 13 years
    The open source driver is named 'radeon', and it should be used by default if the closed source driver isn't installed.
  • JanC
    JanC over 13 years
    This might be useful for switching effects on/off (I haven't used it myself).
  • digitalcrow
    digitalcrow over 11 years
    I dont have compiz and still i have tearing in ubuntu unity 2d, xubuntu,lubuntu,cinammon,mate,gnome shell everywhere ! And i tested many nvidia graphic cards the only way that i suceed to not have tearing is by using an ATI card and selecting the antitearing choice.