When I launch mplayer inside an X terminal (konsole, etc.), the video is simply a blue screen. Audio is unaffected. Video works if mplayer is run from local console (i.e. framebuffer). I have tested avi and mov files. To reproduce: 1. Open a console while in X. 2. Run mplayer on a video file.
emerge --info: Portage 2.2_rc8 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.4-rt5 i686) ================================================================= System uname: Linux-2.6.25.4-rt5-i686-AMD_Athlon-tm-_XP_1700+-with-glibc2.0 Timestamp of tree: Sun, 14 Sep 2008 01:30:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.2-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://cdot.senecac.on.ca/software/gentoo/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ http://gentoo.netnitco.net http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/games /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/pro-audio /usr/portage/local/layman/science /usr/portage/local/layman/kde" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext S3TC X a52 aac aalib acl acpi alsa amr amrnb amrwb apache2 arts avahi bash-completion berkdb bidi bzip2 cairo caps cddb cdio cdparanoia cgi cgraph cjk cli cracklib crypt cscope cups curl curlwrappers cviewer cvs dbus designer-plugin dga dhcp directfb disk-partition djbfft djvu dri dts dv encode exif expat fam fbcon fftw flac fluidsynth fontconfig fortran ftp fuse gcj gd gdbm gif git glib glitz gmedia gmp gnutls gphoto2 gpm graphviz gs gstreamer gtk guile hal hardened hdri htmlhandbook iconv icu id3tag idea idn imagemagick ipv6 irc isdnlog jack java java6 jbig jce jpeg jpeg2k kde kdehiddenvisibility kerberos kig-scripting ladspa lame lapack lcms ldap libcaca libsamplerate libssh2 lzo mdnsresponder-compat midi mmap mmx mmxext mng mono mozdevelop mp2 mp3 msn mudflap musepack musicbrainz mysql nas ncurses network nis nls nowlistening nptl nptlonly nsplugin nss ocaml octave odbc offensive ogg openal openexr opengl openmp oss pam pcntl pcre pdf perl pic plotutils png pnm posix povray pppd pth python q32 qt3 qt3support qt4 quicktime radio rar readline real reflection restrict-javascript rle rtc samba sasl scanner sdl sdl-image session slang sndfile solver speex spell spl sqlite sqlite3 srt sse ssl subversion svg svga sysfs syslog taglib tcl tcpd tetex theora threads tiff tk toolbar tools truetype tunepimp twolame ucs2 unicode usb utempter v4l v4l2 vcd vcdx vidix vim vim-pager vim-syntax vim-with-x vorbis wavpack webdav win32codecs wmf wxwindows x264 x86 xattr xcb xcomposite xforms xine xinerama xml xmldoclet xmp xorg xosd xprint xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="bt87x ca0106 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw aysm copyt dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_dbd authn_default authn_dbm authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache expires ext_filter file_cache filter headers include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="graphlcd ncurses png ppm text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="radeon vesa v4l vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please fill in the mplayer version in the Summary, and also post the output of `emerge -vp media-video/mplayer' as well as the output from mplayer when it's not showing the video you want (it should be verbose about [not] being able to display video).
emerge -vp media-video/mplayer: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-video/mplayer-1.0_rc2_p27458 USE="3dnow 3dnowext X a52 aac aalib alsa amrnb amrwb arts bidi cddb cdio cdparanoia dga directfb dts dv dvd encode fbcon ftp gif gtk iconv ipv6 jack jpeg ladspa libcaca lzo mad mmx mmxext mp2 mp3 musepack nas openal opengl oss png pnm quicktime radio rar real rtc samba sdl speex srt sse svga theora truetype unicode v4l v4l2 vidix vorbis win32codecs x264 xinerama xscreensaver xv xvid xvmc (-altivec) -bindist -bl -cpudetection -custom-cflags -custom-cpuopts -debug -dirac -doc -dvb -dxr2 -dxr3 -enca -esd -ggi -joystick -lirc -live -md5sum -nemesi -pulseaudio -pvr -schroedinger -sse2 -ssse3 -teletext -tga -xanim -zoran" VIDEO_CARDS="vesa -mga -s3virge -tdfx" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
mplayer debug: MPlayer dev-SVN-r27458-4.3.1 (C) 2000-2008 MPlayer Team CPU vendor name: AuthenticAMD max cpuid level: 1 CPU: AMD Athlon(tm) XP 1700+ (Family: 6, Model: 6, Stepping: 2) extended cpuid-level: 8 extended cache-info: 16810304 Detected cache-line size is 64 bytes Testing OS support for SSE... yes. Tests of OS support for SSE passed. CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Reading config file /etc/mplayer/mplayer.conf Setting fontconfig=1 Setting subfont-osd-scale=4 Setting subfont-text-scale=3 get_path('') -> '/root/.mplayer/' get_path('config') -> '/root/.mplayer/config' Reading config file /root/.mplayer/config Adding file /home/windows/movies/JACKASS/JACKASS.AVI Config pushed level is now 2 Config pushed level is now 3 get_path('codecs.conf') -> '/root/.mplayer/codecs.conf' Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf. Configuration: --cc=i686-pc-linux-gnu-gcc --host-cc=i686-pc-linux-gnu-gcc --prefix=/usr --confdir=/etc/mplayer --datadir=/usr/share/mplayer --libdir=/usr/lib --enable-menu --enable-network --disable-tv-bsdbt848 --disable-faad-external --disable-ivtv --disable-enca --disable-nemesi --disable-cdparanoia --charset=UTF-8 --disable-lirc --disable-lircc --disable-joystick --disable-dvb --disable-dvbhead --disable-pvr --disable-tv-teletext --enable-radio --enable-radio-capture --disable-live --disable-tga --disable-xanim --disable-libdirac-lavc --disable-libschroedinger-lavc --realcodecsdir=/opt/RealPlayer/codecs --disable-ggi --disable-md5sum --disable-zr --disable-dxr2 --disable-dxr3 --enable-gui --enable-xvmc --with-xvmclib=XvMCW --disable-3dfx --disable-tdfxvid --disable-tdfxfb --disable-esd --disable-pulse --disable-altivec CommandLine: '/home/windows/movies/JACKASS/JACKASS.AVI' init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/root/.mplayer/fonts' Using nanosleep() timing get_path('input.conf') -> '/root/.mplayer/input.conf' Can't open input config file /root/.mplayer/input.conf: No such file or directory Can't open input config file /etc/mplayer/input.conf: No such file or directory Falling back on default (hardcoded) input config get_path('JACKASS.AVI.conf') -> '/root/.mplayer/JACKASS.AVI.conf' [[[init getch2]]] Playing /home/windows/movies/JACKASS/JACKASS.AVI. get_path('sub/') -> '/root/.mplayer/sub/' [file] File size is 732393472 bytes STREAM: [file] /home/windows/movies/JACKASS/JACKASS.AVI STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) s->pos=0 newpos=0 new_bufpos=0 buflen=0 LAVF_check: AVI format DEMUXER: freeing demuxer at 0xa849290 AVI file format detected. LIST hdrl len=8898 list_end=0x22D6 CHUNK avih len=56 ======= AVI Header ======= us/frame: 33367 (fps=29.970) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 152881 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 544 x 304 ========================== list_end=0x22D6 pos=0x58 chunksize=0x0 next=0x58 LIST strl len=4312 list_end=0x1138 CHUNK strh len=56 ==> Found video stream: 0 [aviheader] Video stream found, -vid 0 ====== STREAM Header ===== Type: vids FCC: xvid (64697678) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 29970/1000 = 29.970 Start: 0 Len: 152881 Suggested BufferSize: 28706 Quality 10000 Sample size: 0 ========================== list_end=0x1138 pos=0xA4 chunksize=0x0 next=0xA4 CHUNK strf len=108 Found 'bih', 108 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 544 biHeight 304 biPlanes 1 biBitCount 24 biCompression 1145656920='XVID' biSizeImage 496128 =========================== Regenerating keyframe table for MPEG-4 video. list_end=0x1138 pos=0x118 chunksize=0x0 next=0x118 CHUNK JUNK len=4120 s->pos=800 newpos=1000 new_bufpos=1138 buflen=0 list_end=0x1138 pos=0x1138 chunksize=0x0 next=0x1138 LIST strl len=4234 list_end=0x21CA CHUNK strh len=56 ==> Found audio stream: 1 [aviheader] Audio stream found, -aid 1 ====== STREAM Header ===== Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 1 Rate: 48000/1152 = 41.667 Start: 0 Len: 212549 Suggested BufferSize: 960 Quality -1 Sample size: 0 ========================== list_end=0x21CA pos=0x1184 chunksize=0x0 next=0x1184 CHUNK strf len=30 Found 'wf', 30 bytes of 18 ======= WAVE Format ======= Format Tag: 85 (0x55) Channels: 2 Samplerate: 48000 avg byte/sec: 16567 Block align: 1152 bits/sample: 0 cbSize: 12 mp3.wID=1 mp3.fdwFlags=0x2 mp3.nBlockSize=397 mp3.nFramesPerBlock=1 mp3.nCodecDelay=0 ========================================================================== list_end=0x21CA pos=0x11AA chunksize=0x0 next=0x11AA CHUNK JUNK len=4120 s->pos=1800 newpos=2000 new_bufpos=21CA buflen=0 list_end=0x21CA pos=0x21CA chunksize=0x0 next=0x21CA LIST odml len=260 list_end=0x22D6 CHUNK dmlh len=248 AVI: dmlh found (size=248) (total_frames=152881) list_end=0x22D6 pos=0x22D6 chunksize=0x0 next=0x22D6 LIST INFO len=28 list_end=0x22FA CHUNK ISFT len=15 hdr=Software size=15 Software : Nandub v1.0rc2 list_end=0x22FA pos=0x22F9 chunksize=0x1 next=0x22FA CHUNK JUNK len=1278 list_end=0x0 pos=0x2800 chunksize=0x0 next=0x2800 LIST movi len=726535810 list_end=0x2B4E368A Found movie at 0x280C - 0x2B4E368A s->pos=3000 newpos=2B4E3000 new_bufpos=2B4E368A buflen=0 CHUNK idx1 len=5846880 Reading INDEX block, 365430 chunks for 152881 frames (fpos=726546066). 0: 01wb 10 0000000000000004 len: 384 pos: 0-> 0.000 0-> 0.000 1: 01wb 10 000000000000018C len: 96 pos: 384-> 0.020 1-> 0.042 <snip> 365428: 00dc 0 000000002B4E0DB6 len: 93 pos:639018841->34086.459 152879->6376.335 365429: 00dc 0 000000002B4E0E1C len: 93 pos:639018934->34086.464 152880->6376.377 list_end=0x0 pos=0x2BA76DF2 chunksize=0x0 next=0x2BA76DF2 CHUNK JUNK len=518 list_end=0x0 pos=0x2BA77000 chunksize=0x0 next=0x2BA77000 s->pos=0 newpos=2800 new_bufpos=280C buflen=0 AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x18C) Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=639019027 (152881) audio size=84516432 (212549) VIDEO: [XVID] 544x304 24bpp 29.970 fps 1002.2 kbps (122.3 kbyte/s) Auto-selected AVI audio ID = 1 [V] filefmt:3 fourcc:0x44495658 size:544x304 fps:29.970 ftime:=0.0334 Clip info: Software: Nandub v1.0rc2 get_path('sub/') -> '/root/.mplayer/sub/' X11 opening display: :0 vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF) vo: X11 running at 1400x1050 with depth 24 and 32 bpp (":0" => local display) [x11] Detected wm supports NetWM. [x11] Detected wm supports FULLSCREEN state. [x11] Detected wm supports ABOVE state. [x11] Detected wm supports BELOW state. [x11] Detected wm supports STAYS_ON_TOP state. [x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms [VO_XV] Using Xv Adapter #0 (ATI Radeon Video Overlay) [xv common] Drawing colorkey manually. [xv common] Using colorkey from Xv (0x00001e). [xv common] Maximum source image dimensions: 2048x2048 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family INFO: libavcodec init OK! Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer. mp3lib: using 3DNow!Ex optimized decore! MP3lib: init layer2&3 finished, tables done MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384 Channels: 2, copyright: No, original: Yes, CRC: Yes, emphasis: 0 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 48000Hz/2ch/s16le [dummy] Was reinitialized: 48000Hz/2ch/s16le Trying every known audio driver... ao2: 48000 Hz 2 chans s16le audio_setup: using '/dev/dsp' dsp device audio_setup: using '/dev/mixer' mixer device audio_setup: using 'pcm' mixer device [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory alsa-init: requested format: 48000 Hz, 2 channels, 9 alsa-init: using ALSA 1.0.17a alsa-init: setup for 1/2 channel(s) alsa-init: using device default [AO_ALSA] alsa-lib: dlmisc.c:118:(snd_dlsym_verify) unable to verify version for symbol _snd_pcm_asym_open [AO_ALSA] alsa-lib: pcm.c:2148:(snd_pcm_open_conf) symbol _snd_pcm_asym_open is not defined inside [builtin] [AO_ALSA] Playback open error: No such device or address mcop warning: user defined signal handler found for SIG_PIPE, overriding unix_connect: can't connect to server (unix:/tmp/ksocket-root/andrey.gateway.2wire.net-35ab-48d96e96) [AO ARTS] can't connect to aRts soundserver [JACK] cannot open server ao2: 48000 Hz 2 chans s16le ao_nas: init(): Using audioserver :0 ao_nas: init(): Can't open nas audio server -> nosound [AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le [AO_ALSA] alsa-lib: dlmisc.c:118:(snd_dlsym_verify) unable to verify version for symbol _snd_pcm_asym_open [AO_ALSA] alsa-lib: pcm.c:2148:(snd_pcm_open_conf) symbol _snd_pcm_asym_open is not defined inside [builtin] mcop warning: user defined signal handler found for SIG_PIPE, overriding unix_connect: can't connect to server (unix:/tmp/ksocket-root/andrey.gateway.2wire.net-35ab-48d96e96) [AO SDL] Unable to open audio: No available audio device open /dev/[sound/]dsp: No such file or directory [OpenAL] could not open device DVB card number must be between 1 and 4 AO: [null] 48000Hz 2ch s16le (2 bytes per sample) AO: Description: Null audio output AO: Author: Tobias Diedrich <ranma+mplayer@tdiedrich.de> Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... [dummy] Was reinitialized: 48000Hz/2ch/s16le [dummy] Was reinitialized: 48000Hz/2ch/s16le Starting playback... Increasing filtered audio buffer size from 0 to 40960 vd_ffmpeg data: 10000, 20010000, ffc70600, 888a08ff [ffmpeg] aspect_ratio: 1.789474 VDec: vo config request - 544 x 304 (preferred colorspace: Planar YV12) Trying filter chain: vo vo_debug: query(Planar YV12) returned 0x437 (i=0) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.79:1 - prescaling to correct movie aspect. VO Config (544x304->544x304,flags=0,'MPlayer',0x32315659) VO: [xv] 544x304 => 544x304 Planar YV12 VO: Description: X11/Xv VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others Xvideo image format: 0x41424752 (RGBA) packed Xvideo image format: 0x54424752 (RGBT) packed Xvideo image format: 0x32424752 (RGB2) packed Xvideo image format: 0x0 ( ) packed Xvideo image format: 0x32595559 (YUY2) packed Xvideo image format: 0x59565955 (UYVY) packed Xvideo image format: 0x32315659 (YV12) planar Xvideo image format: 0x30323449 (I420) planar using Xvideo port 57 for hw scaling [xv] dx: 0 dy: 0 dw: 544 dh: 304 using IP *** [vo] Allocating (slices) mp_image_t, 544x304x12bpp YUV planar, 248064 bytes (imgfmt: 32315659, planes: 0xb5dbd040,0xb5def7c0,0xb5de5640 strides: 544,272,272, chroma: 272x152, shift: h:1,v:1) Unicode font: 255 glyphs. Unicode font: 255 glyphs. OSD chg: 3 V: no pb:-1 OSD chg: 2 V: no pb:-1 [xv] dx: 0 dy: 0 dw: 544 dh: 304 [Mixer] No hardware mixing, inserting volume filter. ??% ??,?% 0 0 [libaf] Adding filter volume [dummy] Was reinitialized: 48000Hz/2ch/s16le Failed to increment property 'switch_program' by 0.000000. XXX initial v_pts=0.000 a_pos=2208 (0.133) vd_ffmpeg data: b6010000, 4ac8850, ffffffbf, ffffffff using IP *** [vo] Allocating (slices) mp_image_t, 544x304x12bpp YUV planar, 248064 bytes (imgfmt: 32315659, planes: 0xa9500c0,0xa982840,0xa9786c0 strides: 544,272,272, chroma: 272x152, shift: h:1,v:1) OSD update: 20;10 187x38 OSD chg: 1 V: yes pb:-1 vd_ffmpeg data: b6010000, 44e1151, ffffffbf, ffffffff??% ??,?% 1 0 using IP <snip> vd_ffmpeg data: b6010000, 123ec05a, 1dbb2678, df57f7bd3% 1.1% 3 0 using IP A: 7.7 V: 7.7 A-V: 0.000 ct: -0.018 231/231 11% 3% 1.1% 3 0 <Ctrl+C> *** uninit(0xECB) Uninit audio filters... [libaf] Removing filter volume [libaf] Removing filter dummy Uninit audio: mp3lib Uninit video: ffmpeg DEMUXER: freeing demuxer at 0xa849290 DEMUXER: freeing sh_audio at 0xa849b80 DEMUXER: freeing sh_video at 0xa845fa8 [[[uninit getch2]]] vo: uninit ... Exiting... (Quit) max framesize was 1810 bytes
Could be a local problem between the Radeon card and the Xv driver, but I can't be sure.
Please try 20090731 snapshot with up-to-date system (X, drivers). Reopen if it's still a issue.