Expected behavior of the wanted featureI am looking for ways to avoid tearing of the video playback which is most visible on panning sequences. I am not an expert with mpv maybe this feature is already implemented. There is a command line option --opengl-swapinterval which defaults to 1 but does not seem to do much. Even if the frame rate is identical to the display vsync I can still see tearing in the output. Can you please clarify how to achieve a tear free decode with mpv? Alternative behavior of the wanted featureNo response Log FileNo response Sample FilesNo response |
Replies: 4 comments 4 replies
|
What platform? If you're on X11, enable TearFree and use a compositor. On any other platform, there should be no tearing by default. |
|
I'm a bit surprised you believe we're all just sitting here watching video with tearing. mpv vsyncs by default, i.e., does not tear. If it does for you, then your system is broken. There's an FAQ entry that might help: https://github.com/mpv-player/mpv/wiki/FAQ#user-content-Tearing My recommendation if you're on X11 is to not be on X11.
Decode is entirely unrelated to presentation. |
|
Thank you for the information.
I do not know if with my graphic card I can switch to a more suitable option. |
|
On Nvidia with X11, Vulkan windows tear by default. It is likely that your mpv is using Vulkan, and fullscreen mpv window bypasses compositor and tears as a result. You need to either use |

On Nvidia with X11, Vulkan windows tear by default. It is likely that your mpv is using Vulkan, and fullscreen mpv window bypasses compositor and tears as a result.
You need to either use
--gpu-api=openglin fullscreen, enable Force Composition Pipeline, or disable compositor bypass in fullscreen.