View previous topic :: View next topic |
Author |
Message |
tytus Tux's lil' helper
Joined: 19 Jun 2004 Posts: 97 Location: Boston, USA
|
Posted: Sun Jan 23, 2005 5:21 am Post subject: mplayer jekry performace if not root |
|
|
The only time I get an acceptable performance form mplayer is when I run it as root. If I run it as non-root user the vidoe is jerky and freezes quite often. Is there anything that I can do to get acceptable performance form mplayer run as non-root?
Piotr |
|
Back to top |
|
|
ahubu Guru
Joined: 16 Aug 2003 Posts: 400 Location: Groningen, The Netherlands
|
Posted: Sun Jan 23, 2005 2:53 pm Post subject: |
|
|
Give us some more information, your post is too vague... could you give me output of what mplayer says when it starts up as your 'jerky' user?
Maybe you have no read access to /dev/rtc ? Did you add your user to the video group (I don't actually know whether that does anything, but adding yourself to the audio group gives you audio, so I did it anyway, maybe...) _________________ Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak. -Unknown |
|
Back to top |
|
|
tytus Tux's lil' helper
Joined: 19 Jun 2004 Posts: 97 Location: Boston, USA
|
Posted: Sun Jan 23, 2005 5:05 pm Post subject: |
|
|
ahbuist wrote: | Give us some more information, your post is too vague... could you give me output of what mplayer says when it starts up as your 'jerky' user? |
My appolagies. I should have fought about it . Here it is:
Code: | promanus@romanus video $ mplayer NewsHour.mpg
MPlayer 1.0pre5try2-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2843 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE2
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/promanus/.mplayer/config
Reading /home/promanus/.mplayer/codecs.conf: Can't open '/home/promanus/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /home/promanus/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /home/promanus/.mplayer/input.conf: No such file or directory
Input config file /usr/share/mplayer/input.conf parsed: 53 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
Playing NewsHour.mpg.
Cache fill: 0.00% (0 bytes) MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 9600.0 kbps (1200.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (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] 720x480 => 720x540 Planar YV12
A: 7.6 V: 6.5 A-V: 1.032 ct: 0.292 188/188 20% 13% 66.0% 50 0 14%
************************************************
**** Your system is too SLOW to play this! ****
************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use ALSA 0.5 or the OSS emulation of ALSA 0.9.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/devices.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
Broken pipe 13.8 A-V: 5.354 ct: 0.536 407/407 16% 8% 105.7% 206 0 15% |
I always have messages about broken pipes.
Here is the output for root:
Code: | root@romanus video # mplayer /dev/video
MPlayer 1.0pre5try2-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 1994 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE2
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Input config file /usr/share/mplayer/input.conf parsed: 53 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
Playing /dev/video.
Cache fill: 18.46% (1548288 bytes) MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 9600.0 kbps (1200.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (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] 720x480 => 720x540 Planar YV12
A: 6.4 V: 6.4 A-V: 0.008 ct: 0.068 184/184 18% 14% 1.1% 0 0 18%
Exiting... (Quit)
root@romanus video # |
ahbuist wrote: | Maybe you have no read access to /dev/rtc ? maybe...) |
I acutally did no compile rtc support. Could this be the problem? Here are my compilation options:
Code: | root@romanus promanus # USE="v4l v4l2 mmx mmx2 real dvd fbcon" emerge -pv mplayer
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] media-video/mplayer-1.0_pre5-r5 -3dfx -3dnow -3dnowex +X -aalib +alsa (-altivec) +arts -bidi -cdparanoia -debug +directfb -divx4linux +doc -dvb +dvd -dvdread -edl +encode +esd +fbcon -ggi +gif +gtk -i8x0 +ipv6 -jack -joystick +jpeg -libcaca +lirc -live -lzo +mad -matroska -matrox +mmx +mmx2 +mpeg -mythtv -nas -network +nls -nvidia +oggvorbis +opengl +oss +png +real -rtc +samba +sdl -sse +svga -tga -theora +truetype +v4l +v4l2 -xanim +xinerama +xmms +xv -xvid -xvmc |
ahbuist wrote: | Did you add your user to the video group (I don't actually know whether that does anything, but adding yourself to the audio group gives you audio, so I did it anyway, maybe...) |
Yes. The user is a member of video group.
Thanks. I hope it helps.
Piotr |
|
Back to top |
|
|
ahubu Guru
Joined: 16 Aug 2003 Posts: 400 Location: Groningen, The Netherlands
|
Posted: Sun Jan 23, 2005 5:40 pm Post subject: |
|
|
Hm, can't see anything out of the ordinary... Maybe you have restrictions on your videocard, but being in the videogroup should solve that...
About RTC, some people say it doesn't make a difference for them, some do. It is not your problem, because you don't have it compiled, and as root you play fine.
You haven't by any chance fiddled with the /etc/security/limits.conf file, and renicing your processes? That might cause trouble (it's a long shot, but hey ).
A little less desperate action might be to move your .mplayer directory (in your home) to another name, so mplayer will make a standard new one. It might be getting some deprecated options from there, that don't work or are suboptimal for your machine (maybe from an old release). I have .mplayer_old[1-4] directories, so I can tell you: it sometimes works _________________ Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak. -Unknown |
|
Back to top |
|
|
tytus Tux's lil' helper
Joined: 19 Jun 2004 Posts: 97 Location: Boston, USA
|
Posted: Mon Jan 24, 2005 12:34 am Post subject: |
|
|
quote="ahbuist"]A little less desperate action might be to move your .mplayer directory (in your home) to another name, so mplayer will make a standard new one. It might be getting some deprecated options from there, that don't work or are suboptimal for your machine (maybe from an old release). I have .mplayer_old[1-4] directories, so I can tell you: it sometimes works [/quote]
Guess what... This solved the problem! I run diff between the old
.mplayer and the new one and here is the output (it may help
somebody):
Code: | diff -c .mplayer/config .mplayer.bak/config
*** .mplayer/config Sun Jan 23 19:23:43 2005
--- .mplayer.bak/config Fri Nov 26 21:59:09 2004
***************
*** 1,3 ****
--- 1,4 ----
# Write your default config options here!
+ cache = 128 # piotr Wednesday Jun-16-2004 23:06:56
Only in .mplayer.bak: config~
Only in .mplayer.bak: gui.conf
Only in .mplayer.bak: gui.history
Only in .mplayer.bak: gui.pl
Only in .mplayer.bak: gui.url
Only in .mplayer.bak: registry |
As you can see the only real difference is "cache = 128". And
the comment suggests that I added it even though I can't remember
any more why!
In any case thank you for your help.
Piotr |
|
Back to top |
|
|
ahubu Guru
Joined: 16 Aug 2003 Posts: 400 Location: Groningen, The Netherlands
|
Posted: Mon Jan 24, 2005 1:39 am Post subject: |
|
|
hah, that explains it, cache on 128 is way too low... standard it's on 4096 I think.
Glad to be on the helping side for a change _________________ Anne // Light travels faster than sound. That's why people appear bright until
you hear them speak. -Unknown |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|