Skip to contentSkip to conversation

Bad encoding performance of Linux SBC audio codec

Bluez-devel Christian Hoene 4 participants 6 messages Oct 27, 2008 – Oct 29, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I have made some extensive study on the compression performance of Linux's SBC audio codec in comparison to the reference implementation.

I am sorry to say that the audio quality of the open source version of SBC is far worse than the reference implementation.

Can anybody confirm these results?
Do you have any idea why the performance is so worse?

With best regards,

Christian

--------------------------------------------------------
Dr.-Ing. Christian Hoene
Computer Networks and Internet, University of T=FCbingen Sand 13, 72076 T=FCbingen, Germany, Phone +49 7071 2970532
http://net.informatik.uni-tuebingen.de/~hoene

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great priz= es
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Christian,

Quoted 8 lines

I have made some extensive study on the compression performance of Linux's SBC audio codec in comparison to the reference implementation.

I am sorry to say that the audio quality of the open source version of SBC is far worse than the reference implementation.

Can anybody confirm these results?
Do you have any idea why the performance is so worse?

are you talking about the encoder or the decoder. For the encoder, I can't see the big difference. For the decoder you can clearly hear that we get the volume wrong.

Regards

Marcel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
In reply to Christian Hoene

Christian

Quoted 2 lines

I am sorry to say that the audio quality of the open source version of SBC is far worse than the reference implementation.

If you are using the standalone "sbc" project at sourceforge, then you should try the version inside bluez. The standalone used to simply be slower, but we identified & fixed some quality issues too that should be backported.

Signature · 11 lines
Brad Midgley

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
maintainer
#3 lore raw

Hi Brad,

Quoted 7 lines
Quoted 2 lines

I am sorry to say that the audio quality of the open source version of SBC is far worse than the reference implementation.

If you are using the standalone "sbc" project at sourceforge, then you should try the version inside bluez. The standalone used to simply be slower, but we identified & fixed some quality issues too that should be backported.

the standalone version should not be used at all at the moment. All efforts should go into the version included in bluez-4.x.tar.gz.

Regards

Marcel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

Re: [Bluez-devel] REALLY Bad encoding performance of Linux SBC audio codec

Hello,

Sorry Bad news.
the encoding and decodng performance of bluez's SBC is really bad. I just used the latest sbcenc program from bluez-4.17 and compared it to the reference

Attached you will find wav-files encoded with the Bluetooth reference implementation and bluez

Filelist
========
compare.sh is the scrip that I use to compare both codec
versions

refsop01.wav        the original sample
tmp.ref.sbc         with reference encoded
tmp.bluez.sbc       with bluez encoded
tmp.ref.sw.wav      with reference encoded and decoded (has good quality)
tmp.bluez.sw.wav    with bluez encoded and decoded (has bad quality ODG=)

tmp.refbluez.sw.wav with reference encoded and with bluez decoded (has bad quality)
tmp.bluezref.sw.wav with bluez encoded and with reference decoded (has medium quality)

Both the bluez encoder and decoder do not work as good as the reference implementation.

I also conducted some perceptual audio tests with ITU BS.1387 (PEAQ), which confirm these results.

With best regards,

Christian

PS:
Attached also an enhanced version for sbc/sbcenc.c, which considers more command line options.

Quoted 28 lines

-----Original Message-----
From: Marcel Holtmann [mailto:[email protected]]
Sent: Monday, October 27, 2008 8:42 PM
To: BlueZ development
Subject: Re: [Bluez-devel] Bad encoding performance of Linux SBC audio codec

Hi Brad,

Quoted 1 line
Quoted 1 line

I am sorry to say that the audio quality of the open source version

of SBC

Quoted 3 lines
Quoted 1 line

is far worse than the reference implementation.

If you are using the standalone "sbc" project at sourceforge, then

you

Quoted 3 lines

should try the version inside bluez. The standalone used to simply be slower, but we identified & fixed some quality issues too that should be backported.

the standalone version should not be used at all at the moment. All efforts should go into the version included in bluez-4.x.tar.gz.

Regards

Marcel

Quoted 13 lines

-----------------------------------------------------------------------
--
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#5 lore raw

Re: [Bluez-devel] REALLY Bad encoding performance of Linux SBC audio codec

Hello,

Thanks for doing those tests, we never really have a method for testing the sbc codec, so PEAQ could be a good start. By looking the results it seems that our decoder is not really in good shape, which is not a surprise since we normally only use the encoder part. As for comparison with the reference implementation, bluez sbc codec does not use floating point as the reference codec seems to be using, so this may well be impacting on quality, although we probably gain some speed.

Other points we might need to consider:
- Test with different audio source/parameter. (48000hz/mono/28
bitpool is not that common to be used as reference)
- Mono seems to surfer from quality problems which may cause the problem.
- Consider working on a gstreamer element for doing live tests based
on ITU BS.1387 (PEAQ)
- Also consider using liboil as alternative for using floating point.

BTW, don't assume something is bad just because it produces different results than the reference, as far I can tell you one cannot really notice _any_ difference between bluez sbc codec and logitech freepulse e(enhanced)sbc, so on real world we are not that _bad_.

-- =

Luiz Augusto von Dentz
Engenheiro de Computa=E7=E3o

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great priz= es
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel