[mythtv-users] mplayer couldn't open x11 display

Michael Gargiullo gargiullo at comcast.net
Wed Apr 12 02:29:33 UTC 2006


Hey all, 

I ran into a small problem. Fresh debian / Mythtv .19 install. When I
attempt to play a movie (mpg or divx), Myth just blinks, and returns to the
movie's info screen. I logged in as mythtv, and attempted to launch mplayer
with the same settings (minus fullscreen and quiet) and got the following
error: 

Code: 
@mythtv:~$ mplayer -vo xv -ao alsa /mnt/hdd1/Walking_Tall.avi 
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team 
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping:
1) 
Detected cache-line size is 64 bytes 
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 
Compiled with runtime CPU detection - WARNING - this is not optimal! 
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection. 


Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied 
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts. 
Setting up LIRC support... 
Playing /mnt/hdd1/Walking_Tall.avi. 
AVI file format detected. 
VIDEO:  [XVID]  720x480  24bpp  23.976 fps  1788.8 kbps (218.4 kbyte/s) 
Clip info: 
 Software: transcode-0.6.14 
========================================================================== 
Opening audio decoder: [liba52] AC3 decoding with liba52 
Using SSE optimized IMDCT transform 
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s 
Using MMX optimized resampler 
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit) 
Selected audio codec: [a52] afm:liba52 (AC3-liba52) 
========================================================================== 
vo: couldn't open the X11 display ()! 
Error opening/initializing the selected video_out (-vo) device. 


Exiting... (End of file) 
 


I've tried using every sane vo listed in mplayer 

Code: 

@mythtv:~$ mplayer -vo help 
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team 
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping:
1) 
Detected cache-line size is 64 bytes 
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 
Compiled with runtime CPU detection - WARNING - this is not optimal! 
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection. 


Available video output drivers: 
        xmga    Matrox G200/G4x0/G550 overlay in X11 window (using
/dev/mga_vid) 
        mga     Matrox G200/G4x0/G550 overlay (/dev/mga_vid) 
        3dfx    3dfx (/dev/3dfx) 
        xvmc    XVideo Motion Compensation 
        xv      X11/Xv 
        x11     X11 ( XImage/Shm ) 
        xover   General X11 driver for overlay capable video output drivers 
        gl      X11 (OpenGL) 
        gl2     X11 (OpenGL) - multiple textures version 
        dga     DGA ( Direct Graphic Access V2.0 ) 
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!) 
        fbdev   Framebuffer Device 
        fbdev2  Framebuffer Device 
        svga    SVGAlib 
        aa      AAlib 
        caca    libcaca 
        vesa    VESA VBE 2.0 video output 
        xvidix  X11 (VIDIX) 
        cvidix  console VIDIX 
        null    Null video output 
        mpegpes Mpeg-PES to DVB card 
        yuv4mpeg        yuv4mpeg output for mjpegtools 
        png     PNG file 
        jpeg    JPEG file 
        tga     Targa output 
        pnm     PPM/PGM/PGMYUV file 
        md5sum  md5sum of each frame 
 


I've googled without success. 

The strange thing is if I capture mpg video from the tuner card. 
Code: 
cat /dev/video0 > /tmp/test.mpg 

I can play it fine with the same mplayer play command. 
Code: 
mplayer -vo vx -ao alsa /tmp/test.mpg 

That works! This is nuts.

I noticed there was no display listed in the error... So I setup the
environment var DISPLAY to mythtv:0  (the host name).

Tried again: 

Setting up LIRC support... 
Playing /mnt/hdd1/Man_of_the_House.mpg. 
MPEG-PS file format detected. 
VIDEO: MPEG1 352x240 (aspect 12) 29.970 fps 1150.0 kbps (143.8 kbyte/s) 
========================================================================== 
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit) 
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) 
========================================================================== 
vo: couldn't open the X11 display (mythtv:0)! 
Error opening/initializing the selected video_out (-vo) device.

Does anyone have any ideas?  I'm going nuts.

-Mike



More information about the mythtv-users mailing list