[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mplayer



I have tried differnet -vo options but get the same result when I run it as a
normal user. When run as root there is no problem with the -vo option
and the movie starts to play. 
When run as a normal user without the -vo option just mplayer "movie name"
I get the following

MPlayer 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2


Failed to open /dev/rtc: Device or resource busy (it should be readable by
the user.)
Playing Building_the_Great_Pyramid.avi.
AVI file format detected.
VIDEO:  [XVID]  320x240  24bpp  29.970 fps  565.2 kbps (69.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
[mpeg4 @ 0x9c19f0]looks like this file was encoded with
(divx4/(old)xvid/opendivx) -> forcing low_delay flag
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.

FATAL: Could not initialize video filters (-vf) or video output (-vo).

Can't restore text mode: Invalid argument

Exiting... (End of file)

Why would root not have a problem with the -vo option but a normal user would?
Clyde

On Sun, Oct 02, 2005 at 09:49:10PM +1000, Dean Hamstead wrote:
> the rtc device wouldnt be the problem, its just the real time clock
> which mplayer can use to make sure the movies are played at the
> correct speed, on my ibook this device doesnt exist and things
> run fine - mplayer uses an internal algorithm instead.
> 
> your error output isnt very helpful, try a different '-vo' option
> that seems the be the problem.
> 
> 
> Dean
> 
> hjalmar wrote:
> >Hello,
> >I am having a little bit of trouble with mplayer and wondering if you guys
> >could give me some help. I apt-get install from 
> >deb http://spello.sscnet.ucla.edu/marillat/ sid main
> >Everything went fine but I can only play movies if I am root. Here are the
> >two printouts I get when I start mplayer 
> >For root
> >mplayer -vo xv "movie name"
> >
> >MPlayer dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
> >CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
> >Detected cache-line size is 64 bytes
> >CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> >Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
> >
> >
> >
> >Failed to open /dev/rtc: Device or resource busy (it should be readable by
> >the user.)
> >Opening joystick device /dev/input/js0
> >Can't open joystick device /dev/input/js0 : No such device
> >Can't init input joystick
> >Setting up LIRC support...
> >mplayer: could not connect to socket
> >mplayer: No such file or directory
> >Failed to open LIRC support.
> >You will not be able to use your remote control.
> >Playing Building_the_Great_Pyramid.avi.
> >AVI file format detected.
> >VIDEO:  [XVID]  320x240  24bpp  29.970 fps  565.2 kbps (69.0 kbyte/s)
> >==========================================================================
> >Trying to force audio codec driver family libmad...
> >Opening audio decoder: [libmad] libmad mpeg audio decoder
> >AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
> >Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
> >==========================================================================
> >vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local
> >display)
> >==========================================================================
> >Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> >Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> >==========================================================================
> >Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
> >alsa-init: 1 soundcard found, using: default
> >alsa: 44100 Hz/2 channels/4 bpf/60208 bytes buffer/Signed 16 bit Little 
> >Endian
> >AO: [alsa] 44100Hz 2ch s16le (2 bps)
> >Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
> >Starting playback...
> >[mpeg4 @ 0x2aaaab082cb0]looks like this file was encoded with
> >(divx4/(old)xvid/opendivx) -> forcing low_delay flag
> >VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
> >VDec: using Planar YV12 as output csp (no 0)
> >Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> >VO: [xv] 320x240 => 320x240 Planar YV12 
> >alsa-uninit: pcm closed-0.011 ct: -0.002 424/424  1%  0%  0.7% 0 0 48%   
> >
> >Exiting... (Quit)
> >
> >Here is what I get when I start it as a normal user
> >
> >MPlayer 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
> >CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
> >Detected cache-line size is 64 bytes
> >CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> >Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
> >
> >
> >Failed to open /dev/rtc: Device or resource busy (it should be readable by
> >the user.)
> >Playing Building_the_Great_Pyramid.avi.
> >AVI file format detected.
> >VIDEO:  [XVID]  320x240  24bpp  29.970 fps  565.2 kbps (69.0 kbyte/s)
> >==========================================================================
> >Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> >AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
> >Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> >==========================================================================
> >Error opening/initializing the selected video_out (-vo) device.
> >
> >
> >Exiting... (End of file)
> >
> >I have checked the /dev/rtc and the permission is crw-rw-r--  1 root root
> >10, 135 2005-03-01 00:08 /dev/rtc
> >and I am a member of the video group as well. 
> >Thanks for any help,
> >Clyde
> >
> >
> 
> -- 
> WWW: http://dean.bong.com.au  LAN: http://www.bong.com.au
> EMAIL: dean@bong.com.au       or       djzort@bong.com.au
> ICQ: 16867613



Reply to: