2009-06-24 05:23:17

by John Frankish

[permalink] [raw]
Subject: Mixed Results Playing mp3

I've been trying various tools to play mp3 files to a Bluetooth headset whilst I decide whether to buy some a2dp headphones . Using the following and the .asoundrc at the bottom of the post:

bluez-4.41
dbus-1.2.14
dbus-glib-0.80
alsa-1.0.20
kernel-2.6.29.2

I get the following results:

1. mplayer-gtk1 (svn 29308): plays without problems

2. xmms-1.2.11: no error messages, but produces "noise" and "clicks" (the bluez wiki mentions "issues" with xmms).

3. aplay-1.0.20: Is it possible to play mp3 with aplay, if so, what command is required?

4. mpg123-1.8.1: "mpg123 -v -a plug:bluetooth file.mp3", "mpg123 -v -a bluetooth file.mp3", no error messages, but produces "noise" and "clicks"

I don't see why xmms and mpg123 wouldn't work and there are no error messages or pointers from "bluetoothd -dn" - does anybody have any ideas?

-----------
pcm.rawbluetooth {
type bluetooth
device 00:12:EE:A6:1D:F4
}

pcm.bluetooth {
type plug
slave {
pcm {
type bluetooth
device 00:12:EE:A6:1D:F4
}
}
}


2009-06-25 03:33:32

by John Frankish

[permalink] [raw]
Subject: RE: Mixed Results Playing mp3



-----Original Message-----
From: John R. [mailto:[email protected]]
Sent: 25 June, 2009 04:17
To: John Frankish
Cc: [email protected]
Subject: Re: Mixed Results Playing mp3

John Frankish wrote:

> Does your mpg123 support alsa?
>
>> yes, it plays mp3 without problems via the machine's sound card

It could be that mpg123 is using OSS and not ALSA directly. Make sure
ALSA is being used.

> Thanks - I used "-o alsa" to verify alsa was being used, the result is the same.

This could also be totally unrelated.

John

2009-06-25 00:16:50

by John R.

[permalink] [raw]
Subject: Re: Mixed Results Playing mp3

John Frankish wrote:

> Does your mpg123 support alsa?
>
>> yes, it plays mp3 without problems via the machine's sound card

It could be that mpg123 is using OSS and not ALSA directly. Make sure
ALSA is being used.

This could also be totally unrelated.

John

2009-06-24 13:07:47

by John Frankish

[permalink] [raw]
Subject: RE: Mixed Results Playing mp3



-----Original Message-----
From: Benjamin Vasanthakumar J [mailto:[email protected]]
Sent: 24 June, 2009 16:40
To: John Frankish
Cc: [email protected]
Subject: Re: Mixed Results Playing mp3

Dear John Frankish,
>
>> I get the following results:
>>
>> 1. mplayer-gtk1 (svn 29308): plays without problems
>>
>> 2. xmms-1.2.11: no error messages, but produces "noise" and "clicks" (the bluez wiki mentions "issues" with xmms).
>>
>> 3. aplay-1.0.20: Is it possible to play mp3 with aplay, if so, what command is required?
>>
>
> aplay will not play mp3 encoded files.
>
>
>> 4. mpg123-1.8.1: "mpg123 -v -a plug:bluetooth file.mp3", "mpg123 -v -a bluetooth file.mp3", no error messages, but produces "noise" and "clicks"
>>
>> I don't see why xmms and mpg123 wouldn't work and there are no error messages or pointers from "bluetoothd -dn" - does anybody have any ideas?
>>
>> -----------
>> pcm.rawbluetooth {
>> type bluetooth
>> device 00:12:EE:A6:1D:F4
>> }
>>
>> pcm.bluetooth {
>> type plug
>> slave {
>> pcm {
>> type bluetooth
>> device 00:12:EE:A6:1D:F4
>> }
>> }
>> }
>>
>
>
> Please refer to here:
>
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices
>
>
>> I did (and I tried this also with the same results), the .asoundrc I used is as per the example /etc/alsa/Bluetooth.conf provided in the bluez-4.41 tarball
>>
>
> Your asoundrc differs from the example.
>
> Does your mpg123 support alsa?
>
>
>> yes, it plays mp3 without problems via the machine's sound card
>>
>
> John
>
>
>> --
>>
> Thanks for the reply

Whether .wav file play through 'aplay' is working fine for you?

[snip]

Yes, I didn't mention it, but aplay is working fine with a wav file

2009-06-24 12:39:37

by Benjamin Vasanthakumar J

[permalink] [raw]
Subject: Re: Mixed Results Playing mp3

Dear John Frankish,
>
>> I get the following results:
>>
>> 1. mplayer-gtk1 (svn 29308): plays without problems
>>
>> 2. xmms-1.2.11: no error messages, but produces "noise" and "clicks" (the bluez wiki mentions "issues" with xmms).
>>
>> 3. aplay-1.0.20: Is it possible to play mp3 with aplay, if so, what command is required?
>>
>
> aplay will not play mp3 encoded files.
>
>
>> 4. mpg123-1.8.1: "mpg123 -v -a plug:bluetooth file.mp3", "mpg123 -v -a bluetooth file.mp3", no error messages, but produces "noise" and "clicks"
>>
>> I don't see why xmms and mpg123 wouldn't work and there are no error messages or pointers from "bluetoothd -dn" - does anybody have any ideas?
>>
>> -----------
>> pcm.rawbluetooth {
>> type bluetooth
>> device 00:12:EE:A6:1D:F4
>> }
>>
>> pcm.bluetooth {
>> type plug
>> slave {
>> pcm {
>> type bluetooth
>> device 00:12:EE:A6:1D:F4
>> }
>> }
>> }
>>
>
>
> Please refer to here:
>
> http://wiki.bluez.org/wiki/HOWTO/AudioDevices
>
>
>> I did (and I tried this also with the same results), the .asoundrc I used is as per the example /etc/alsa/Bluetooth.conf provided in the bluez-4.41 tarball
>>
>
> Your asoundrc differs from the example.
>
> Does your mpg123 support alsa?
>
>
>> yes, it plays mp3 without problems via the machine's sound card
>>
>
> John
>
>
>> --
>>
> Thanks for the reply

Whether .wav file play through 'aplay' is working fine for you?

At my side, I can hear only a beep tone. Please find the "bluetoothd
-nd" log:

bluetoothd[2904]: Failed to access HAL
bluetoothd[2904]: Accepted new client connection on unix socket (fd=18)
bluetoothd[2904]: Audio API: BT_REQUEST <- BT_GET_CAPABILITIES
bluetoothd[2904]: Audio API: BT_RESPONSE -> BT_GET_CAPABILITIES
bluetoothd[2904]: Audio API: BT_REQUEST <- BT_OPEN
bluetoothd[2904]: open sco - object=ANY source=ANY
destination=AE:2D:CC:AA:BB:1e
bluetoothd[2904]: Audio API: BT_RESPONSE -> BT_OPEN
bluetoothd[2904]: Audio API: BT_REQUEST <- BT_SET_CONFIGURATION
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAS
bluetoothd[2904]: adapter_get_device(AE:2D:CC:AA:BB:14)
bluetoothd[2904]: Discovered Headset service on channel 2
bluetoothd[2904]: /org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: Connecting
to AE:2
bluetoothd[2904]: /org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: Connected
to AE:24
bluetoothd[2904]: telephony-dummy: device 0x20059db0 connected
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAD
bluetoothd[2904]: Audio API: BT_RESPONSE -> BT_SET_CONFIGURATION
bluetoothd[2904]: Audio API: BT_REQUEST <- BT_START_STREAM
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAS
bluetoothd[2904]: Received AT+VGS=8
bluetoothd[2904]: Received AT+VGM=8
bluetoothd[2904]: SCO socket opened for headset
/org/bluez/2904/hci0/dev_AE_2D_4
bluetoothd[2904]: SCO fd=21
bluetoothd[2904]: Audio API: BT_RESPONSE -> BT_START_STREAM
bluetoothd[2904]: Audio API: BT_INDICATION -> BT_NEW_STREAM
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAG
bluetoothd[2904]: Unix client disconnected (fd=18)
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAD
bluetoothd[2904]: client_free(0x200587d0)
*bluetoothd[2904]: No matching connection found for handle 45
bluetoothd[2904]: telephony-dummy: device 0x20059db0 disconnected*
bluetoothd[2904]: State changed
/org/bluez/2904/hci0/dev_AE_2D_CC_AA_BB_14: HEAD

*Which is the SCORouting we need to give on the audio.conf, by default
it is HCI?*


I do not have X server on my linux box, please suggest which are all the
command line audio players I can use.

Please advice.
Thanks & Regards,
Benjamin

2009-06-24 11:24:42

by John Frankish

[permalink] [raw]
Subject: RE: Mixed Results Playing mp3


-----Original Message-----
From: John R. [mailto:[email protected]]
Sent: 24 June, 2009 14:52
To: John Frankish
Cc: [email protected]
Subject: Re: Mixed Results Playing mp3

John Frankish wrote:

[snip]

> I get the following results:
>
> 1. mplayer-gtk1 (svn 29308): plays without problems
>
> 2. xmms-1.2.11: no error messages, but produces "noise" and "clicks" (the bluez wiki mentions "issues" with xmms).
>
> 3. aplay-1.0.20: Is it possible to play mp3 with aplay, if so, what command is required?

aplay will not play mp3 encoded files.

> 4. mpg123-1.8.1: "mpg123 -v -a plug:bluetooth file.mp3", "mpg123 -v -a bluetooth file.mp3", no error messages, but produces "noise" and "clicks"
>
> I don't see why xmms and mpg123 wouldn't work and there are no error messages or pointers from "bluetoothd -dn" - does anybody have any ideas?
>
> -----------
> pcm.rawbluetooth {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> }
>
> pcm.bluetooth {
> type plug
> slave {
> pcm {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> }
> }
> }


Please refer to here:

http://wiki.bluez.org/wiki/HOWTO/AudioDevices

> I did (and I tried this also with the same results), the .asoundrc I used is as per the example /etc/alsa/Bluetooth.conf provided in the bluez-4.41 tarball

Your asoundrc differs from the example.

Does your mpg123 support alsa?

> yes, it plays mp3 without problems via the machine's sound card

John

> --
Thanks for the reply

2009-06-24 10:52:29

by John R.

[permalink] [raw]
Subject: Re: Mixed Results Playing mp3

John Frankish wrote:

[snip]

> I get the following results:
>
> 1. mplayer-gtk1 (svn 29308): plays without problems
>
> 2. xmms-1.2.11: no error messages, but produces "noise" and "clicks" (the bluez wiki mentions "issues" with xmms).
>
> 3. aplay-1.0.20: Is it possible to play mp3 with aplay, if so, what command is required?

aplay will not play mp3 encoded files.

> 4. mpg123-1.8.1: "mpg123 -v -a plug:bluetooth file.mp3", "mpg123 -v -a bluetooth file.mp3", no error messages, but produces "noise" and "clicks"
>
> I don't see why xmms and mpg123 wouldn't work and there are no error messages or pointers from "bluetoothd -dn" - does anybody have any ideas?
>
> -----------
> pcm.rawbluetooth {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> }
>
> pcm.bluetooth {
> type plug
> slave {
> pcm {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> }
> }
> }


Please refer to here:

http://wiki.bluez.org/wiki/HOWTO/AudioDevices

Your asoundrc differs from the example.

Does your mpg123 support alsa?

John

> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html


2009-07-09 07:15:12

by John Frankish

[permalink] [raw]
Subject: RE: Mixed Results Playing mp3



-----Original Message-----
From: John R. [mailto:[email protected]]
Sent: 25 June, 2009 04:17
To: John Frankish
Cc: [email protected]
Subject: Re: Mixed Results Playing mp3

John Frankish wrote:

> Does your mpg123 support alsa?
>
>> yes, it plays mp3 without problems via the machine's sound card

It could be that mpg123 is using OSS and not ALSA directly. Make sure
ALSA is being used.

> Thanks - I used "-o alsa" to verify alsa was being used, the result is the same.

This could also be totally unrelated.

John
--
Any ideas about this? I'm using the latest versions of bluez, dbus, alsa, mpg123, etc- there must be some reason why mplayer will play mp3 over Bluetooth and mpg123 will not.

Are there any tests I can run to try and narrow down the problem?

Thanks, John