blue tooth issue with gstreamer

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

blue tooth issue with gstreamer

satish kumar-2
 Hi all
 
 I need "aplay" command format to play audio song in BT headset (what are presettings to play headset
   I am palying giving following commands.
  
   Killall hcid
   uim /dev/ttyO1 3686400 none /sys/uim/pid &
   hciconfig hci0 up
   hciconfig -a
   hcid -s -f /etc/bluetooth/hcid.conf

   and I am giving amixer seting commands as per I3.7-Pre2 release.

amixer cset name='HandsfreeL Mux' 2
amixer cset name='HandsfreeL Switch' 1
amixer cset name='HandsfreeR Mux' 2
amixer cset name='HandsfreeR Switch' 1
amixer cset name='DAC2 Analog Playback Volume' 16 amixer cset name='HeadsetL Mixer AudioL2' 1 amixer cset name='HeadsetR Mixer AudioR2' 1 amixer cset name='Analog Left Main Mic Capture Switch' 1 amixer cset name='Analog Right Sub Mic Capture Switch' 1 amixer cset name='Analog Left Headset Mic Capture Switch' 1

Once it is done I am paring headset to zoom3 Device.
When I am playing "gst-launch filesrc location" 

  gst-launch filesrc location=satish/track4.mp3 ! mp3parse ! goodec_mp3 ! a
  lsasink device=bluetooth


I am getting the error as

   MP3 Decoder string device :i/:o//codec Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/
GstAlsaSink:alsasink0: Could not open  audio device for playback.
Additional debug info:
gstalsasink.c(690): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:als
asink0:
Playback open error on device 'bluetooth': No such file or directory Setting pipeline to NULL ...
Total time: 0.000000 seconds
Freeing pipeline ...
˜7
µ„<@˜7



I am using gstreamer 0.10 version
Linux 2.6.32 RC7 kernel
Board is  zoom3.


Can you please help me out what are reasons for the above error.



And I am giving aplay command in the following format.
 Aplay -D bluetooth track4.wav

I am getting error as

 ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM bluetooth
 aplay: main:608: audio open error: No such file or directory

------------------------------------------------------------------------------


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: blue tooth issue with gstreamer

Zheng, Huan

Basically I think it’s an alsa configuration issue. You may need to check your alsa configuration file and create a Bluetooth device inside it.

Please see below as an example. And then search on the internet to find more info.

 

pcm.m_voice{

    type bluetooth

    device "00:07:A4:B5:D8:9E"   #optional, connects to specific device instead the default one

    profile "voice"             #optional, supported profiles are: auto, hifi and voice

}

pcm.bluetooth{

    type bluetooth

    device "00:07:A4:B5:D8:9E"   #optional, connects to specific device instead the default one

    profile "hifi"             #optional, supported profiles are: auto, hifi and voice    

}

pcm.hd{

    type hw

    device 0

    card 0

}

pcm.!default{

    type plug

    slave.pcm "hd"

}

 

From: satish kumar [mailto:[hidden email]]
Sent: Monday, May 31, 2010 8:06 PM
To: [hidden email]
Subject: [gst-devel] blue tooth issue with gstreamer

 

 Hi all
 
 I need "aplay" command format to play audio song in BT headset (what are presettings to play headset
   I am palying giving following commands.
  
   Killall hcid
   uim /dev/ttyO1 3686400 none /sys/uim/pid &
   hciconfig hci0 up
   hciconfig -a
   hcid -s -f /etc/bluetooth/hcid.conf

   and I am giving amixer seting commands as per I3.7-Pre2 release.

amixer cset name='HandsfreeL Mux' 2
amixer cset name='HandsfreeL Switch' 1
amixer cset name='HandsfreeR Mux' 2
amixer cset name='HandsfreeR Switch' 1
amixer cset name='DAC2 Analog Playback Volume' 16 amixer cset name='HeadsetL Mixer AudioL2' 1 amixer cset name='HeadsetR Mixer AudioR2' 1 amixer cset name='Analog Left Main Mic Capture Switch' 1 amixer cset name='Analog Right Sub Mic Capture Switch' 1 amixer cset name='Analog Left Headset Mic Capture Switch' 1

Once it is done I am paring headset to zoom3 Device.
When I am playing "gst-launch filesrc location" 

  gst-launch filesrc location=satish/track4.mp3 ! mp3parse ! goodec_mp3 ! a
  lsasink device=bluetooth


I am getting the error as

   MP3 Decoder string device :i/:o//codec Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/

GstAlsaSink:alsasink0: Could not open  audio device for playback.
Additional debug info:
gstalsasink.c(690): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:als
asink0:
Playback open error on device 'bluetooth': No such file or directory Setting pipeline to NULL ...
Total time: 0.000000 seconds
Freeing pipeline ...
˜7
µ„<@˜7



I am using gstreamer 0.10 version
Linux 2.6.32 RC7 kernel
Board is  zoom3.


Can you please help me out what are reasons for the above error.



And I am giving aplay command in the following format.
 Aplay -D bluetooth track4.wav

I am getting error as

 ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM bluetooth
 aplay: main:608: audio open error: No such file or directory


------------------------------------------------------------------------------


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: blue tooth issue with gstreamer

Colin Guthrie-6
In reply to this post by satish kumar-2
'Twas brillig, and satish kumar at 31/05/10 13:06 did gyre and gimble:

> Can you please help me out what are reasons for the above error.
>
>
>
> And I am giving aplay command in the following format.
>  Aplay -D bluetooth track4.wav
>
> I am getting error as
>
>  ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM bluetooth
>  aplay: main:608: audio open error: No such file or directory

Pretty much all upstream bluetooth audio focus on Linux these days with
with pulseaudio. GStreamer has excellent pulseaudio support and I use
this setup myself quite regularly.

I strongly recommend using this approach rather than wasting time trying
to get a working alsa setup with bluetooth devices.

Col

--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel