LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1816|回复: 24

Mplayer在root身份下使用正常,普通用户下却无法使用!

[复制链接]
发表于 2008-10-4 21:49:38 | 显示全部楼层 |阅读模式
用root用户登录后可以正常使用!但是普通用户就不行,连在普通用户下用sudo都不行!这个问题太邪门了,请Debian高手指教!

这中问题,我不是第一次碰上,但从来没有解决过,最后都只能通过重装Debian来解决,这次我不想再重装了!

我在好多地方求助过这个问题,但一直无人能帮我!
发表于 2008-10-4 23:02:50 | 显示全部楼层
root以后startx了?

估计是你修改过mplayer的权限吧。

ls -l一下看看是什么样的。
回复 支持 反对

使用道具 举报

发表于 2008-10-5 14:07:38 | 显示全部楼层
试试添加用户到video组,重新登录一次
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-5 15:36:44 | 显示全部楼层
qwy@redforce:~$ ls -l /usr/bin/gmplayer
lrwxrwxrwx 1 root root 7 10-05 15:19 /usr/bin/gmplayer -> mplayer
qwy@redforce:~$ ls -l /usr/bin/mplayer
-rwxr-xr-x 1 root root 4367580 10-01 02:52 /usr/bin/mplayer
qwy@redforce:~$


这是ls的结果!

我确实在xorg.conf坏掉时,用root登录后startx过!问题莫非出在这个步骤上?!
回复 支持 反对

使用道具 举报

发表于 2008-10-5 15:51:15 | 显示全部楼层
ls的结果跟我的看起来一样啊,不过我的是ubuntu,应该没关系的。
你在普通用户下输入 mplayer 提示什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-5 17:06:34 | 显示全部楼层
qwy@redforce:~$ mplayer /mnt/sda5/电影/\[鹿鼎记\].Royal.Tramp.1992.DVDRip.X264.AC3.CD1-tdw9430.avi
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T5550  @ 1.83GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 /mnt/sda5/电影/[鹿鼎记].Royal.Tramp.1992.DVDRip.X264.AC3.CD1-tdw9430.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
VIDEO:  [H264]  800x432  12bpp  23.976 fps  1845.9 kbps (225.3 kbyte/s)
Clip info:
Software: VirtualDubMod 1.5.10.1 (Build 2366/Release)
SUB: Detected subtitle file format: subviewer
SUB: Read 620 subtitles.
SUB: Added subtitle file (1): /mnt/sda5/电影/[鹿鼎记].Royal.Tramp.1992.DVDRip.X264.AC3.CD1-tdw9430.srt
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 800 x 432 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.85:1 - prescaling to correct movie aspect.
VO: [xv] 800x432 => 800x432 Planar YV12


MPlayer interrupted by signal 11 in module: filter_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
[ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]
qwy@redforce:~$
回复 支持 反对

使用道具 举报

发表于 2008-10-5 17:41:40 | 显示全部楼层
Post by 秦武扬;1890662
qwy@redforce:~$ mplayer /mnt/sda5/电影/\[鹿鼎记\].Royal.Tramp.1992.DVDRip.X264.AC3.CD1-tdw9430.avi
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T5550  @ 1.83GHz (Family: 6, Model: 15, Stepping: 13)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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.
qwy@redforce:~$

mplayer可以运行
好像是你 mount 的目录权限不够,不能读取,你 mount 时把权限改一下

例子:
在/etc/fstab   中加入  
  /dev/hda6   /mnt/ntfs   ntfs   defaults,umask=0222,gid=adm   0   0  
  其中umask是指有什么权限,0222   =   -r-xr-xr-x     或者   777   =   -rwxrwxrwx  
  gid是指用户组,   重启后就可以了。
回复 支持 反对

使用道具 举报

发表于 2008-10-5 18:05:49 | 显示全部楼层
我装过几次了,从来也没碰到楼主的这种情况啊?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-5 18:49:08 | 显示全部楼层
Post by dammmm;1890675
mplayer可以运行
好像是你 mount 的目录权限不够,不能读取,你 mount 时把权限改一下

例子:
在/etc/fstab   中加入  
  /dev/hda6   /mnt/ntfs   ntfs   defaults,umask=0222,gid=adm   0   0  
  其中umask是指有什么权限,0222   =   -r-xr-xr-x     或者   777   =   -rwxrwxrwx  
  gid是指用户组,   重启后就可以了。


我的系统里没有ntfs分区,我都是里斯格式的文件系统!
回复 支持 反对

使用道具 举报

发表于 2008-10-5 19:02:33 | 显示全部楼层
看看你存mp3的目录和文件的权限是不是正确
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表