LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   only root can open the display for mplayer (https://www.linuxquestions.org/questions/linux-software-2/only-root-can-open-the-display-for-mplayer-330371/)

shobhit 06-04-2005 03:52 PM

only root can open the display for mplayer
 
i am using
MPlayer dev-CVS-050106-10:30-3.2.2 (C) 2000-2005 MPlayer Team

the problem is if i play any video file, then i cannot see any video. i can just hear the audio.
if i play the file as root, then i can see both the video and listen to the audio as well.
how do i fix this so that users other than root can also see the video.

acid_kewpie 06-04-2005 04:00 PM

mplayer has about 15 different ways of showing an image... care to tell us whih way you're trying? the actual console output would be a start.

shaitand 06-04-2005 07:33 PM

If I had to guess, my guess would be that you have a permissions problem with mplayer. Recompile as a NORMAL user and then install as root, do not compile AND install as root. See if this makes a difference.

__J 06-05-2005 12:35 AM

what video out driver are you using? some, like dga or vesa need root privileges to run. try mplayer -vo x11 <filename> and see if your user can see the video.

shobhit 06-16-2005 02:27 PM

sorry for not replying sooner, i was out of town.

mplayer -vo x11
does not help. it says ..
Error opening/initializing the selected video_out (-vo) device.

i don't know about 15 different ways of showing images.
i just use,
mplayer <filename>
which works fine for root, but not for others. i just hear the audio.

teckk 06-16-2005 03:34 PM

I see that you use Red Hat. Did you install Mplayer from .rpm or compile it from source?
If you compiled it from source, you will need to do the "make install" as user not as root, like shaitand said.
Sounds like a permissions problem.
Post the output of

Code:

$mplayer yourfile
The $ means as user not as root #
It plays the audio, but there will be an error why it is not playing the video.


All times are GMT -5. The time now is 05:37 PM.