Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gmplayer: long startup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu May 25, 2006 8:45 pm    Post subject: gmplayer: long startup Reply with quote

Starting gmplayer takes really long, about 50 seconds.
When it plays the performance is ok, just like mplayer or xine.
Starting mplayer itself is fast enough.

gmplayer seems just to have a problem with the gui. Acessing the gui takes also long time. I also noticed the lazy gui on x86 but not that grave.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Thu May 25, 2006 9:58 pm    Post subject: Reply with quote

If you look at the output gmplayer produces while starting, does it hang on the 'disabling xscreensaver' (or similar) line?
Does this also happen with other users? (Root for example?)
Because I've had that problem as well. I don't know exactly what causes it, but it appears to be something todo with some leftover (possibly kde) files in the homedirectory. I don't remember the name(s), and I don't know how to reproduce it but try looking in your homedir for files (possibly hidden) that look 'suspicous' (I don't know how else to put it) and remove them. That should fix it (it did for me at least twice until now) :)
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu May 25, 2006 10:06 pm    Post subject: Reply with quote

This is where it stops:
Code:
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x25, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x26, depth 24, R:FF0000 G:FF00 B:FF
[GUI] done.
Within this moment everything stops, even music playing in the background keeps quiet for 10 seconds.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Thu May 25, 2006 10:24 pm    Post subject: Reply with quote

Hmmm, that does look very strange, I haven't seen that before.
What do you mean by 'music in the background'? Xmms? Because if even music in the background stops, this isn't neccessarily a problem with (g)mplayer, as howeverlong it takes for gmplayer to load, it shouldn't interrupt other tasks. Then it might be a problem with for example X or your Video drivers.

But, do other users experience this same delay? aka is it user specific?
Since mplayer does start fast, what VideoOut does it use? And what happens when you try gmplayer with other VO's? (for example xv,gl2,sdl,etc. Look at "mplayer -vo help" for vo's supported on your system)
Also, please note that when I use '-vo x11' I don't get even a single line of output similar to yours unless I tell mplayer to be verbose.
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
younker
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 280
Location: China

PostPosted: Fri May 26, 2006 2:46 am    Post subject: Reply with quote

I have this problem too when start gmplayer in Xfce 4.4, also when open a preference dialog in gmplayer it also takes long time, but it runs fine in Gnome and KDE, so i think maybe this is not a gmplayer problem, but a problem of xfce 4.4.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Fri May 26, 2006 7:15 am    Post subject: Reply with quote

Da Fox wrote:
What do you mean by 'music in the background'? Xmms? Because if even music in the background stops, this isn't neccessarily a problem with (g)mplayer, as howeverlong it takes for gmplayer to load, it shouldn't interrupt other tasks. Then it might be a problem with for example X or your Video drivers.
Yes playing xmms in the background. I agree with that, this freezing is specific for a real hardware problem. I looked closer into the vo driver:
Starting mplayer without options runs fine, also with -vo xv , but -vo x11 is quite similar lazy like gmplayer. The lazyness is always only about the gui and frame.
In gmplayer I can choose
  • xv X11/Xv
  • X11 x11(XImage/Shm)
  • gl X11(OpenGL)
  • gl2 X11(OpenGL) - multiple textures version
I have selected the first (xv), but if I start gmplayer it shows
Code:
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
whereas mplayer shows
Code:
VO: [xv] 512x384 => 512x384 Planar YV12

Quote:
Also, please note that when I use '-vo x11' I don't get even a single line of output similar to yours unless I tell mplayer to be verbose.
Therefore I start gmplayer -msglevel all=6 , mplayer shows information itself without options.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Sat May 27, 2006 11:19 pm    Post subject: Reply with quote

You can specify the same commandline options for gmplayer as you can with mplayer. Try starting 'gmplayer -vo xv'. If it still insists on using x11 something is pretty wrong. What kind of graphics hardware and video drivers are you using? If you have a multi-boot installation, do any of these or similar delays occur in other operating systems? (For example (Free)BSD, MacOS, ReactOS (or Windows 9x/XP if you must))
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sat May 27, 2006 11:48 pm    Post subject: Reply with quote

Spooky. The slow gmplayer:
Code:
$ gmplayer -vo xv -msglevel all=6 |grep vo

vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
CommandLine: '-vo' 'xv' '-msglevel' 'all=6'
vo: X11 truecolor visual 0x23, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x24, depth 24, R:FF0000 G:FF00 B:FF
...

mplayer normal:
Code:
$ mplayer -vo xv -msglevel all=6  file.avi  |grep vo

CommandLine: '-vo' 'xv' '-msglevel' 'all=6' 'file.avi'
File not found: '/home/user/.mplayer/default.sub'
Failed to open /home/user/.mplayer/default.sub
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
Trying filter chain: vo
*** [vo] Allocating (slices) mp_image_t, 512x384x12bpp YUV planar, 294912 bytes

mplayer also slow:
Code:
$ mplayer -vo x11 -msglevel all=6  file.avi  |grep vo

CommandLine: '-vo' 'x11' '-msglevel' 'all=6' 'file.avi'
File not found: '/home/user/.mplayer/default.sub'
Failed to open /home/user/.mplayer/default.sub
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
Trying filter chain: vo
No accelerated colorspace conversion found
*** [vo] Allocating (slices) mp_image_t, 512x384x12bpp YUV planar, 294912 bytes
Look for the line "No accelerated..."
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Mon May 29, 2006 10:06 pm    Post subject: Reply with quote

Well:
Da Fox wrote:
What kind of graphics hardware and video drivers are you using?
If ATi/NVidia try with the default Xorg drivers instead of the Proprietary drivers, or vice-versa

Da Fox wrote:
If you have a multi-boot installation, do any of these or similar delays occur in other operating systems? (For example (Free)BSD, MacOS, ReactOS (or Windows 9x/XP if you must))
This might also give valuable clues as to whether this is hardware or software related.
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Mon May 29, 2006 11:01 pm    Post subject: Reply with quote

Try running gmplayer under strace. See if there's a syscall that's causing the delay.

Recently whenever apps have been slow to start it's been because they're trying to connect to a socket and timing out because iptables is dropping the packets. I assume you've ruled this out?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Tue May 30, 2006 5:34 pm    Post subject: Reply with quote

Da Fox wrote:
Da Fox wrote:
If you have a multi-boot installation, do any of these or similar delays occur in other operating systems? (For example (Free)BSD, MacOS, ReactOS (or Windows 9x/XP if you must))
This might also give valuable clues as to whether this is hardware or software related.
Well mplayer under OSX is working fine, and xine under linux is working fine. I don't think that's interesting.

Concerning strace I don't know where to start. Giving debug information it's even slower. I just give you a part of the output. Take a look at the file not found. This file does exist here and is world readable:
Code:
open("/usr/share/mplayer/Skin/default/pos", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/mplayer/Skin/default/pos.png", O_RDONLY|O_LARGEFILE) = 10
close(10)                               = 0
open("/usr/share/mplayer/Skin/default/pos.png", O_RDONLY|O_LARGEFILE) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=440, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x302bd000
read(10, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\r\0\0\0\36\10\6\0\0"..., 131072) = 440
close(10)                               = 0
munmap(0x302bd000, 131072)              = 0
open("/usr/share/mplayer/Skin/default/pos", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/mplayer/Skin/default/pos.png", O_RDONLY|O_LARGEFILE) = 10
close(10)                               = 0
open("/usr/share/mplayer/Skin/default/pos.png", O_RDONLY|O_LARGEFILE) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=440, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x302bd000
read(10, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\r\0\0\0\36\10\6\0\0"..., 131072) = 440
close(10)                               = 0
munmap(0x302bd000, 131072)              = 0
read(5, "", 131072)                     = 0
mmap(NULL, 212992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30304000
write(3, "5\1\0\4\1\200\0\1\0\0\0@\0\1\0\1+i\0\1", 20) = 20
read(3, 0x7fee79e0, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\1\0006\0\0\0\0\1`\0\7\0\314\240L\0\0\0\0\0\0\0\0\22"..., 32) = 32
writev(3, [{"b\1\0\4\0\6\0\1", 8}, {"RENDER", 6}, {"\0\0", 2}], 3) = 16
read(3, 0x7fee7890, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\343\0007\0\0\0\0\1\234\0\276\20 \0\0\20\37\253\230\20"..., 32) = 32
write(3, "+\1\0\1", 4)                  = 4
read(3, 0x7fee7840, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\1\0008\0\0\0\0\1`\0\7\0\314\240L\0\0\0\0\0\0\0\0\22"..., 32) = 32
write(3, "\234\0\0\3\0\0\0\0\0\0\0\t\234\1\0\1", 16) = 16
read(3, 0x7fee7910, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
read(3, "\1\343\0009\0\0\0\0\0\0\0\0\0\0\0\t\177\343\36\320\20\v"..., 32) = 32
read(3, "\1\373\0:\0\0\0\227\0\0\0\22\0\0\0\1\0\0\0\7\0\0\0\4\0"..., 32) = 32
read(3, "\0\0\0+\1\1\336\354\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0"..., 604) = 604
write(3, "+\0\0\1", 4)                  = 4
read(3, 0x7fee78a0, 32)                 = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL)        = 1 (in              = -1 EAGAIN (Resource temporarily unavailable)

_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Jun 15, 2006 8:22 am    Post subject: Reply with quote

I just switched to KPlayer and KMPlayer.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Mikkl
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2006
Posts: 79

PostPosted: Thu Oct 05, 2006 3:26 pm    Post subject: Reply with quote

i also had the same problem as da fox many times, that gmplayer hangs when it says 'disabling xscreensaver'

i just deleted the ~/.mplayer directory and now it works without problems :), thanks for the hint
(the .mplayer directory will be recreated next time you start mplayer)
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Thu Oct 05, 2006 5:59 pm    Post subject: Reply with quote

Didn't help here. gmplayer really blocks the xserver for a while.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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