Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-04-2005, 04:52 PM   #1
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Rep: Reputation: 15
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.
Old 06-04-2005, 05:00 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
Old 06-04-2005, 08:33 PM   #3
Registered: Jun 2005
Posts: 54

Rep: Reputation: 15
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.
Old 06-05-2005, 01:35 AM   #4
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
Old 06-16-2005, 03:27 PM   #5
Registered: Sep 2003
Location: kolkata
Distribution: Fedora 7
Posts: 60

Original Poster
Rep: Reputation: 15
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.
Old 06-16-2005, 04:34 PM   #6
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,876

Rep: Reputation: 253Reputation: 253Reputation: 253
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

$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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot open display as root tethysgods Linux - Software 14 12-10-2010 04:16 PM
Can't open display as root dicou Linux - Newbie 7 04-18-2005 03:25 PM
root cannot open display m_yates Linux - Software 7 03-14-2004 11:49 PM
bashrc not read by root, can't open display SerfurJ Slackware 6 12-05-2003 11:54 PM
root user can't open display chr15t0 Linux - General 7 01-28-2003 08:34 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration