[MPlayer-users] mplayer hangs (?) eating 100% cpu while trying to identify the file

hubert depesz lubaczewski depesz at depesz.com
Wed Apr 1 19:52:48 CEST 2009


Hi,
we use this command:
mplayer -nolirc -endpos 0 -vo null -quiet -ao null <FILE>
to identify given file, to check if it's video, and if yes, get its
metadata.

Works quite well.

But.
Just yesterday, sombody uploaded file which made mplayer hand, using
100% cpu. mplayer did output a lot of "Seek failed" lines, and strace
output looked rather weird:

_llseek(3, 99252353933312, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99256648898560, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99260943863808, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99265238829056, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99269533794304, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99273828759552, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12
_llseek(3, 99278123724800, 0xbfed71f0, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "Seek failed\n", 12)           = 12

It looks like a bug to me, but maybe I'm wrong.
The file in question is available here:
http://www.depesz.com/original.flv
be warned - I have no clue on what's inside as I was not able to play it, and I
did not create it.

is there anything I could do to avoid this kind of "hangs" while identifying videos?

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz at depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007


More information about the MPlayer-users mailing list