LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-04-2005, 03:52 PM   #1
shobhit
Member
 
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, 04:00 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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, 07:33 PM   #3
shaitand
Member
 
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, 12:35 AM   #4
__J
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, 02:27 PM   #5
shobhit
Member
 
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, 03:34 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
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.
 
  


Reply


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 03:16 PM
Can't open display as root dicou Linux - Newbie 7 04-18-2005 02:25 PM
root cannot open display m_yates Linux - Software 7 03-14-2004 10:49 PM
bashrc not read by root, can't open display SerfurJ Slackware 6 12-05-2003 10:54 PM
root user can't open display chr15t0 Linux - General 7 01-28-2003 07:34 AM


All times are GMT -5. The time now is 05:18 AM.

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