[MPlayer-dev-eng] [MPlayer-cvslog] r34099 - in trunk/libass: ass.c ass.h ass_bitmap.c ass_bitmap.h ass_cache.c ass_cache.h ass_drawing.c ass_font.c ass_font.h ass_fontconfig.c ass_fontconfig.h ass_library.c ass_library.h ass_parse.c...

Erik Auerswald auerswal at unix-ag.uni-kl.de
Sun Sep 18 18:51:04 CEST 2011


Hi,

On 09/18/2011 06:06 PM, Reimar Döffinger wrote:
> On Sun, Sep 18, 2011 at 02:41:00PM +0200, Erik Auerswald wrote:
>>> My concern now is mostly about making sure that no significant
>>> optimizations are lost when removing our heavily modified mp3lib.
>>
>> ffmp3float seems to be faster on my system:
>>
>> ==========================================================================
>> Requested audio codec family [mpg123] (afm=mpg123) not available.
>> Enable it at compilation.
>> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
>> AUDIO: 44100 Hz, 2 ch, floatle, 192.0 kbit/6.80% (ratio: 24000->352800)
>> Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
>> ==========================================================================
>> AO: [null] 44100Hz 2ch floatle (4 bytes per sample)
>> Video: no video
>> Starting playback...
>> A: 271.7 (04:31.6) of 358.0 (05:58.0)  0.9% 0%
>> Audio output truncated at end.
>> A: 271.7 (04:31.6) of 358.0 (05:58.0)  0.9% 0%
>>
>>
>> BENCHMARKs: VC:   0.000s VO:   0.000s A:   2.433s Sys: 276.795s =  279.228s
>> BENCHMARK%: VC:  0.0000% VO:  0.0000% A:  0.8712% Sys: 99.1288% = 100.0000%
>>
>> ==========================================================================
>> Trying to force audio codec driver family mp3lib...
>> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
>> AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
>> Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
>> ==========================================================================
>> AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
>> Video: no video
>> Starting playback...
>> A: 271.6 (04:31.6) of 538.0 (08:58.0)  1.1% 0%
>> Audio output truncated at end.
>> A: 271.6 (04:31.6) of 538.0 (08:58.0)  1.1% 0%

You omitted the -benchmark output, I re-added it for reference:

BENCHMARKs: VC:   0.000s VO:   0.000s A:   2.998s Sys: 276.480s =  279.478s
BENCHMARK%: VC:  0.0000% VO:  0.0000% A:  1.0728% Sys: 98.9272% = 100.0000%

> Yes, but they are outputting to different formats.
> I guess where Carl sees the performance loss is when you need s16le in
> the end, e.g. if you add -af format=s16le (or something like that, do
> not know the exact syntax).

Using -format s16le (or -af format=s16le) is a bit slower than foatle, 
but still faster than mp3lib:

==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 192.0 kbit/6.80% (ratio: 24000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 271.7 (04:31.6) of 358.0 (05:58.0)  1.0% 0%
Audio output truncated at end.
A: 271.7 (04:31.6) of 358.0 (05:58.0)  1.0% 0%


BENCHMARKs: VC:   0.000s VO:   0.000s A:   2.627s Sys: 276.665s =  279.292s
BENCHMARK%: VC:  0.0000% VO:  0.0000% A:  0.9407% Sys: 99.0593% = 100.0000%


Hm, -ac ffmp3 results in s16le output and is a lot slower:

==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 271.6 (04:31.6) of 358.0 (05:58.0)  1.9% 0%
Audio output truncated at end.
A: 271.7 (04:31.6) of 358.0 (05:58.0)  1.9% 0%


BENCHMARKs: VC:   0.000s VO:   0.000s A:   5.171s Sys: 280.325s =  285.496s
BENCHMARK%: VC:  0.0000% VO:  0.0000% A:  1.8114% Sys: 98.1886% = 100.0000%


Erik


More information about the MPlayer-dev-eng mailing list