LinHES Forums http://forum.linhes.org/ |
|
mplayer couldn't open x11 display http://forum.linhes.org/viewtopic.php?f=6&t=9562 |
Page 1 of 1 |
Author: | mgargiullo [ Sun Apr 09, 2006 10:52 pm ] |
Post subject: | mplayer couldn't open x11 display |
Hey all, I did a fresh install of Release 5 B7 today. Most things went well. This was the first release I was forced to install the ATI drivers to get the correct display configuration however. I ran into a small problem. 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. I can watch live TV without a problem, but not video files. Does anyone have any ideas? |
Author: | alien [ Mon Apr 10, 2006 1:05 am ] |
Post subject: | |
1) When you try and start an X program from the console, it won't know what display to connect to. The easiest solution is to open an xterm (ctrl-x) and try running it from there. 2) As to your original problem, I noticed that the path to mplayer changed somewhere along the way, but didn't get converted during an upgrade (I had some problems during upgrade, so that might have caused it). Check your setup and make sure that the mplayer command is correct. I had /usr/local/bin/mplayer, when it should be /bin/mplayer. I'm not 100% sure these are the correct paths, so at the command line, type "which mplayer" to find out where it is located and make sure your settings are correct. Cheers, Allen |
Author: | mgargiullo [ Mon Apr 10, 2006 8:38 am ] |
Post subject: | |
The only mplayer I have is /usr/bin/mplayer. The screen captures above are from xterm. I closed mythfrontend, and opened xterm. I tried to play the movie directly, but no good. 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. So close... |
Author: | mgargiullo [ Tue Apr 11, 2006 3:56 pm ] |
Post subject: | |
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. Has anyone seen this? |
Author: | khrusher [ Tue Apr 11, 2006 6:48 pm ] |
Post subject: | |
Try this Code: DISPLAY=<your IP Address>:0
export DISPLAY mplayer -vo xv -ao alsa /mnt/hdd1/Walking_Tall.avi |
Author: | mgargiullo [ Tue Apr 11, 2006 7:53 pm ] |
Post subject: | |
What script would I put that in so it works during bootup? Could I use xine instead? Would it work as well as mplayer does (when it does)? |
Author: | mgargiullo [ Tue Apr 11, 2006 8:17 pm ] |
Post subject: | |
Well scratch that... It still doesn't work... I've even reinstalled from scratch, and I get the same error. I put the line export DISPLAY=127.0.0.1:0 in /etc/profile... It ends up in the mythtv users environment. I still get the couldn't open x11 display (127.0.0.1:0). What am I missing here? At this point I may reinstall 5a26 which worked great, but I'd rather not. |
Author: | alien [ Wed Apr 12, 2006 1:20 am ] |
Post subject: | |
Strange... The only things I know of that cause "can't open display" errors are an incorrect DISPLAY or an incorrect userID. Are you running this as user mythtv? If you have the correct display and the correct userID, you might try executing "xhost +" in an xterm window. This will turn off all X security checking (but you shouldn't have to do that). Allen |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |