Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLV]Green and pink playback artifacts with VLC and mplayer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Drasica
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 181

PostPosted: Sun Nov 20, 2016 5:59 pm    Post subject: [SOLV]Green and pink playback artifacts with VLC and mplayer Reply with quote

When playing video on my 2015 MacBook air both VLC and mplayer are displaying grreen and pink artifacts all over in all. So far I have tested .AVI and .mkv formats. This is true for VLC 2.2.1 and 2.2.4, as well as mplayer 1.2.1 and 1.3.0. Here is an image of the artifacts.

Emerge -p output:
Code:
[ebuild   R   #] media-video/mplayer-1.3.0::gentoo  USE="X a52 alsa cdio dts dvd dvdnav enca encode gif iconv ipv6 jpeg libass mad mng mp3 network opengl osdmenu png sdl shm truetype unicode vorbis x264 xscreensaver xv xvid -aalib (-altivec) (-aqua) -bidi -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -debug -dga -directfb -doc -dv -dvb -faac -faad -fbcon -ftp -ggi -gsm -jack -joystick -jpeg2k -ladspa -libcaca -libmpeg2 -lirc -live -lzo -md5sum -nas -nut -openal -oss -pnm -pulseaudio -pvr -radio -rar -rtc -rtmp -samba (-selinux) -speex -tga -theora -toolame -tremor -twolame -v4l -vcd -vdpau (-vidix) (-xanim) -xinerama -xvmc -yuv4mpeg -zoran" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -ssse3" VIDEO_CARDS="-mga -s3virge -tdfx" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

[ebuild   R    ] media-video/vlc-2.2.4:0/5-8::gentoo  USE="X a52 alsa avcodec avformat cdda dbus dts dvbpsi dvd encode ffmpeg flac gcrypt jpeg libnotify libsamplerate mp3 mpeg ncurses ogg opengl png qt4 sdl svg swscale truetype udev vorbis x264 xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -bidi -bluray -cddb -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -faad -fdk -fluidsynth -fontconfig -gme -gnome -gnutls -growl -httpd -ieee1394 -jack -kate -kde -libass -libav -libcaca -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) -matroska (-media-library) -modplug -mtp -musepack (-neon) -omxil -opencv -optimisememory -opus -postproc -projectm -pulseaudio -qt5 -rdp -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex -taglib {-test} -theora -tremor -twolame -upnp -v4l -vaapi -vcdx -vdpau -vlm -vnc -vpx -wma-fixed -x265 -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


I'm using the intel i915 graphics driver, here is the lspci output:
Code:
00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Apple Inc. Broadwell-U Integrated Graphics
   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
   Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
   Latency: 0
   Interrupt: pin A routed to IRQ 46
   Region 0: Memory at c0000000 (64-bit, non-prefetchable) [size=16M]
   Region 2: Memory at b0000000 (64-bit, prefetchable) [size=256M]
   Region 4: I/O ports at 3000 [size=64]
   Expansion ROM at <unassigned> [disabled]
   Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
      Address: fee0100c  Data: 41e1
   Capabilities: [d0] Power Management version 2
      Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
      Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
   Capabilities: [a4] PCI Advanced Features
      AFCap: TP+ FLR+
      AFCtrl: FLR-
      AFStatus: TP-
   Kernel driver in use: i915


Any ideas what is going on and how to fix it? Thanks!

EDIT:
Solved, the issue turned out to be with the default video output mode, xv. If I use x11 or gk2 playback works as expected.


Last edited by Drasica on Mon Nov 28, 2016 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Mon Nov 21, 2016 7:42 am    Post subject: Reply with quote

Why don't you use hardware acceleration?
https://wiki.gentoo.org/wiki/VAAPI
Back to top
View user's profile Send private message
Drasica
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 181

PostPosted: Tue Nov 22, 2016 12:45 am    Post subject: Reply with quote

sebaro wrote:
Why don't you use hardware acceleration?
https://wiki.gentoo.org/wiki/VAAPI


Because it wasn't configured by default is the only real reason. I've never seen artifacts like this in other VLC installations withot hardware acceleration, but if you think lack of acceleration could be the cause of the artifacts I'd be willing to try it.
Back to top
View user's profile Send private message
sebaro
Veteran
Veteran


Joined: 03 Jul 2006
Posts: 1141
Location: Romania

PostPosted: Thu Nov 24, 2016 7:55 am    Post subject: Reply with quote

The artifacts are not because you didn't enabled HW decoding, I suggested it because usually it is used when the GPU supports it.

Make sure you have everything set in make.conf:
https://wiki.gentoo.org/wiki/Intel#Driver
then re-merge xorg-server and xorg-drivers.

If this doesn't solve te issue, you can try modesetting for xorg:
https://wiki.gentoo.org/wiki/Intel#xorg.conf
or
Re-merge x11-drivers/xf86-video-intel with one of the three options enabled "glamor sna uxa".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum