VLC tearing during playback (only VLC, not mplayer/xine)

*nix specific usage questions
colbert
Blank Cone
Blank Cone
Posts: 11
Joined: 31 Mar 2008 05:24

VLC tearing during playback (only VLC, not mplayer/xine)

Postby colbert » 22 Jan 2009 01:00

Specs: Q6600, Nvidia 8800GT, dual monitors Acer AL2616W @ 1920x1200 + NEC FE1250 @ 1600x1200. Using 180.22 stable drivers.

All has worked quite well for the longest time, but just today I noticed that video playback in VLC is tearing (horizontal lines and such during panning scenes in videos). I have tried numerous videos as well as various output modules. Here is output as an example:

Code: Select all

└─[/media/seagate/tv-newstuff/SD/Wolverine.and.the.X-Men]> vlc Wolverine.and.the.X-MenS01Ep13ns10.avi.avi VLC media player 0.9.8a Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--enable-dvdread' '--enable-dvdnav' '--enable-madi' '--enable-ffmpeg' '--disable-rpath' '--enable-qt4' '--enable-faad' '--enable-alsa' '--enable-skins2' '--enable-dvb' '--enable-dmo' '--with-ffmpeg-faac' '--with-ffmpeg-vorbis' '--with-ffmpeg-dts' '--with-ffmpeg-ogg' '--with-ffmpeg-theora' '--enable-v4l' '--enable-theora' '--enable-flac' '--enable-snapshot' '--enable-hal' '--enable-dbus' '--enable-ogg' '--enable-dbus-control' '--enable-shared' '--enable-nls' '--enable-lirc' '--enable-shout' '--enable-pvr' '--enable-release' '--program-suffix=' '--with-dv-raw1394=/usr/include/libraw1394' '--enable-loader' '--enable-live555' '--with-live555-tree=/usr/lib/live-media' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe' 'CXXFLAGS=-march=i686 -mtune=generic -O2 -pipe' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig' [00000001] main libvlc debug: translation test: code is "C" [00000391] main interface error: no interface module matched ",none" [00000391] main interface error: no suitable interface module [00000001] main libvlc error: interface ",none" initialization failed [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [????????] x11 video output error: X11 request 42.0 failed with error code 8: BadMatch (invalid parameter attributes) └─[/media/seagate/tv-newstuff/SD/Wolverine.and.the.X-Men]>
(I don't know that the "X11 request 42.0 failed with error code 8" is important as I've seen it before when all was fine.)

I have tested all the same video files with mplayer/xine and there is no tearing. I am using nvidia-settings Sync to VBlank settings and have keybindings to switch sync between screens. I suspect this may be caused by an update but don't know where to look or discover the source. I hope this can be fixed as VLC is far and away my fav player of all :)

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby Jean-Baptiste Kempf » 22 Jan 2009 08:31

Did you try to deinterlace?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

colbert
Blank Cone
Blank Cone
Posts: 11
Joined: 31 Mar 2008 05:24

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby colbert » 23 Jan 2009 08:20

Yes I tried various deinterlacing modes, there is still some horizontal lines :(

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby Rémi Denis-Courmont » 23 Jan 2009 18:25

xdpyinfo?
xvinfo?
64-bits system?
Did you try with '-V x11', '-V xv' and/or '-V opengl' ?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

colbert
Blank Cone
Blank Cone
Posts: 11
Joined: 31 Mar 2008 05:24

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby colbert » 24 Jan 2009 06:21

xdpyinfo?
xvinfo?
64-bits system?
Did you try with '-V x11', '-V xv' and/or '-V opengl' ?
x11, xv and opengl don't solve it.

What is xpdyinfo/xvinfo? Don't know the command to do this?

I use 32-bit

Thanks :)

colbert
Blank Cone
Blank Cone
Posts: 11
Joined: 31 Mar 2008 05:24

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby colbert » 30 Jan 2009 22:41

Anyone? :( Still can't fix this.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby Rémi Denis-Courmont » 31 Jan 2009 16:09

Without your display infos, neither the VLC debug, it is safe to asssyme we cannot help you.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

colbert
Blank Cone
Blank Cone
Posts: 11
Joined: 31 Mar 2008 05:24

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby colbert » 31 Jan 2009 21:12

Okay, which display info do you need? My first post at the top I shared my specs. How can I provide the VLC debug? I will surely provide all this if you can tell me how, thanks :)

bryanair
Blank Cone
Blank Cone
Posts: 13
Joined: 03 Feb 2009 13:37

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby bryanair » 18 Mar 2009 19:07

Are you building the latest (or close to the latest) version from source? If this is the case...

I posted a new topic regarding the use of XSync in xcommon.c - since this is related, do you think you can you try the following code change?

in the source file
modules/video_output/x11/xcommon.c

in the function
static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )

just before the end, there is a call to 'XSync()'. if you can add these two lines of code

XFlush( p_vout->p_sys->p_display ); // force commands to be sent
usleep(500); // then switch contexts before waiting

right before the end, like this:

static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )
...
// new lines start here
XFlush( p_vout->p_sys->p_display ); // force commands to be sent
usleep(500); // then switch contexts before waiting
// new lines end here
/* Make sure the command is sent now - do NOT use XFlush !*/
XSync( p_vout->p_sys->p_display, False );

vlc_mutex_unlock( &p_vout->p_sys->lock );
}

this might alleviate at least SOME of the problem you're seeing. if it does, then please comment in this thread (thanks). I'd like to see this patch or a similar one show up in the official vlc source.

FYI - I'm running FreeBSD 7.1 with ATI 'radeonhd' (development) driver that (unfortunately) doesn't support XVideo for my chipset, on a dual-core AMD64 (2.4Ghz) in 64-bit mode. This patch dramatically improves the rendering of videos that otherwise show a lot of "tearing" and "shearing". I use the 'SDL' output module which seems to work best when XVideo isn't available.

chickensalad777
New Cone
New Cone
Posts: 2
Joined: 04 Feb 2010 11:30

Re: VLC tearing during playback (only VLC, not mplayer/xine)

Postby chickensalad777 » 04 Feb 2010 11:44

ugh i wish they could come up with a permanent fix, the lines bug me so much hah


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests