LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   mplayer GUI problem (https://www.linuxquestions.org/questions/debian-26/mplayer-gui-problem-279511/)

xiongnu 01-18-2005 08:17 PM

mplayer GUI problem
 
well, i installed the mplayer with GUI interface on my machine, installation went ok

but when i tried to run gmplayer command, i got msg below

any idea?

i'm running Xandros 3.0 Deluxe on a IBM Thinkpad T23 machine.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

erdos@xandros:~$ gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Failed to open /dev/rtc: No such file or directory (it should be readable by the user.)

[1]+ Stopped gmplayer
erdos@xandros:~$ su
Password:
xandros:/home/erdos# gmplayer
MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

vo: couldn't open the X11 display (:0.0)!
MPlayer GUI requires X11.
Usage: mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo <drv[:dev]> select video output driver & device ('-vo help' for a list)
-ao <drv[:dev]> select audio output driver & device ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <timepos> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
up or down seek backward/forward 1 minute
pgup or pgdown seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
z or x adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

xandros:/home/erdos#

jlinkels 01-18-2005 09:39 PM

This may not be an exact answer to your problem, but might point you into the right direction:

At first, you can't access /dev/rtc because you don't have the access rights for that. The quick and dirty solution to that is to chmod the device to 666. The correct solution is to create a special group. The group should have access to that device. Add yourself to that group.

The chmod 666 is fine for testing.

The next thing which goes wrong is that you do 'su'.

Once you are 'su', you can't open a window (display) in X anymore. That is the second error message.

You can workaround this to Alt-F2 to start the app. Then you as user opens the display, but the app is run with 'su' credentials. That should overcome any access errors to devices. Once it runs here, you know what to look for.

jlinkels

bobbens 01-19-2005 03:43 PM

you can also download sux which is a smart su and lets you run x apps from console as super user. Cheers

elluva 01-21-2005 10:34 AM

Quote:

Originally posted by bobbens
you can also download sux which is a smart su and lets you run x apps from console as super user. Cheers
DONT DO THIS, it is a very bad idea to just start working with superuser privileges. The right way to solve your problem is, as stated above, to make a group that can rw to /dev/rtc.

$ su
$ groupadd rtc
$ chmod g+rw /dev/rtc

You should check out the man page for usermod, but I think this does the trick:
$ usermod -g `groups <username>` rtc <username>

then log off, log in and mplayer will work...


All times are GMT -5. The time now is 02:48 AM.