[MPlayer-dev-eng] An audio file demuxer ???

Arpi arpi at thot.banki.hu
Wed Feb 13 21:10:31 CET 2002


Hi,

> just for fun (and knowledge) I writed an audio file demuxer. It can "demux" 
> mp3 and
> wav file. It appear that the mp3 decoder is VERY GOOD. Top give a very cool 
> 0% of
> CPU usage while it give 7-8% to mpg123. To benchmark I removed the sleep
> used to wait that the audio buffer is empty and compared with mpg123.

hmm. i wanted to ask/check but forgot... so it's bad to hear it still uses
sleep() for audio-only files. it may cause problems, and make -vo pcm still
not working... we should use -ao driver to block and disable any sleeping
for audioonly playback.


> 
> mpg123 -w /dev/null :
>         User time (seconds): 21.80
>         System time (seconds): 0.15
>         Percent of CPU this job got: 85%
>         Elapsed (wall clock) time (h:mm:ss or m:ss): 0:25.74
> 
> mplayer -ao pcm -aofile /dev/null -quiet
>         User time (seconds): 18.68
>         System time (seconds): 0.69
>         Percent of CPU this job got: 87%
>         Elapsed (wall clock) time (h:mm:ss or m:ss): 0:22.07
> 
> Pretty good, no ? And mplayer is a little longer to start than mpg123. This
> test was done with a vbr mp3 (average rate 160Kbps) of 5 min 26 sec.
> Does a such demuxer have a chance to be accepted in CVS ?

yes.
anyway, for mp3, you should use my mp3 frame reader, it's called mp3_head.c
or so. it's in libmpdemux. why? for proper mencoder streamcopying.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list