[MPlayer-users] Problems with mp3 playback

Kevin DeKorte kdekorte at yahoo.com
Sat Aug 27 16:34:55 CEST 2005


I'm still having problems with the latest CVS code when dealing with mp3 
playback. Here is the script I am using

wget http://mplayerplug-in.sf.net/testing/large.mp3 &
sleep 2
mplayer -nocache large.mp3

I know you are going to say why doing you do this

mplayer http://mplayerplug-in.sf.net/testing/large.mp3

Well I can't as this script models the way mplayerplug-in works.

Problem, when this script runs it will start the download and then start 
mplayer after a couple of seconds. mplayer will start playing the media, but 
when it hits the byte where wget was when mplayer was started, mplayer stops. 
I do not have this problem with non-mpeg media types. Quicktime, DiVX.. etc 
all work well except for mp3 and mpeg movies.

My guess is that something with mp3 is telling mplayer how large the file is 
at startup and mplayer will not play past that byte. This value should be 
recomputed to see if the file size has changed. Rather than going for a 
specific number of bytes, the decoder should run until it reaches the EOF.

I've tested this with different codecs within mplayer (ffmpeg, mad, mp3lib) 
and they all do the same thing so it is probably not in the decoder, but in 
the part that loads the file and decides what to do with it.

alsaplayer does not exhibit the problem although the time of the file is wrong 
after it passes the point it was at, at startup

If I change the script to

wget http://mplayerplug-in.sf.net/testing/large.mp3 &
sleep 2
cat large.mp3 | mplayer -

I do not have the problem either. But I can't do this type of command in 
mplayerplug-in as I am using -slave mode to control it's operation.

Thanks,

Kevin

-- 
Get my public GnuPG key from
http://keyserver.veridis.com:11371/export?id=7574690260641978351
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20050827/652617a7/attachment.pgp>


More information about the MPlayer-users mailing list