After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565584 - no audio through airport express using the apexsink
no audio through airport express using the apexsink
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-24 22:52 UTC by Ryan
Modified: 2011-05-19 17:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Ryan 2008-12-24 22:52:41 UTC
apexsink build from 0.10.9

I have set gstreamer to:
gconftool -t string --set /system/gstreamer/0.10/default/musicaudiosink "apexsink host=192.168.0.107"

Run this command with (GST_DEBUG=apexsink:5)
gst-launch-0.10 audiotestsrc ! decodebin ! audioconvert ! audioresample ! apexsink host=192.168.0.107

As can be seen below it seems to connect to the airport but thinks the jack is disconnected and and the jack is 'undefined'.

Using iTunes on XP works just fine, as does iTunes (0.6) on wine.  Although, I would love to not have to use iTunes.

#### DEBUG ####
0:00:00.204099544 28027  0x97b7050 INFO              apexsink gstapexsink.c:299:gst_apexsink_init:<GstApExSink@0x98ba0b8> ApEx sink default initialization, target="", port="5000", volume="75%"
0:00:00.204276242 28027  0x97b7050 INFO              apexsink gstapexsink.c:316:gst_apexsink_set_property:<apexsink0> ApEx sink target set to "192.168.0.107"
Setting pipeline to PAUSED ...
0:00:01.121588498 28027  0x97b7050 INFO              apexsink gstapexsink.c:426:gst_apexsink_open:<apexsink0> OPEN : ApEx sink successfully connected to "192.168.0.107:5000", ANNOUNCE, SETUP and RECORD requests performed
0:00:01.121757793 28027  0x97b7050 WARN              apexsink gstapexsink.c:436:gst_apexsink_open:<apexsink0> OPEN : ApEx jack is disconnected !
0:00:01.121890491 28027  0x97b7050 WARN              apexsink gstapexsink.c:459:gst_apexsink_open:<apexsink0> OPEN : ApEx jack type is undefined !
0:00:01.129919794 28027  0x97b7050 INFO              apexsink gstapexsink.c:473:gst_apexsink_open:<apexsink0> OPEN : ApEx sink successfully set volume to "75%"
0:00:01.142368164 28027  0x98bd4b8 INFO              apexsink gstapexsink.c:496:gst_apexsink_prepare:<apexsink0> PREPARE : ApEx sink ready to stream at 44100Hz, 4 bytes per sample, 2 channels, 16384 bytes segments (176kB/s)
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:01.145788431 28027  0x97b7050 INFO              apexsink gstapexsink.c:537:gst_apexsink_delay:<apexsink0> DELAY
New clock: GstAudioSinkClock

0:00:01.176044860 28027  0x98bde10 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
^^^ this line is just repeated until I Ctrl-C
Comment 1 Jérémie Bernard 2009-05-02 12:27:49 UTC
The sink notifies only that it could not retreive the jack's connection status nor its type, it does not change its configuration whenever an analogic or digital is detected : this is only some debug additional information.

As you do not hear any sound, did you try to add and force the volume option to the apex sink (for example gst-launch-0.10 audiotestsrc ! decodebin ! audioconvert ! audioresample ! apexsink host=192.168.0.107 volume=100) ?
Comment 2 Christian Thalinger 2009-09-26 08:56:22 UTC
I tried the audiotestsrc and this works.  But I don't get it to play an .ogg file, there is no output.  Am I doing something wrong?

$ gst-launch-0.10 --gst-debug=apexsink:5 filesrc location=/usr/share/sounds/ubuntu/stereo/bell.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! apexsink host=10.0.0.2 volume=100
0:00:00.133247957 29525      0x1f1b080 INFO              apexsink gstapexsink.c:299:gst_apexsink_init:<GstApExSink@0x204d130> ApEx sink default initialization, target="", port="5000", volume="75%"
0:00:00.135178475 29525      0x1f1b080 INFO              apexsink gstapexsink.c:316:gst_apexsink_set_property:<apexsink0> ApEx sink target set to "10.0.0.2"
0:00:00.135394972 29525      0x1f1b080 INFO              apexsink gstapexsink.c:338:gst_apexsink_set_property:<apexsink0> ApEx volume set to "100%"
Setting pipeline to PAUSED ...
0:00:03.033941669 29525      0x1f1b080 INFO              apexsink gstapexsink.c:426:gst_apexsink_open:<apexsink0> OPEN : ApEx sink successfully connected to "10.0.0.2:5000", ANNOUNCE, SETUP and RECORD requests performed
0:00:03.034377007 29525      0x1f1b080 INFO              apexsink gstapexsink.c:431:gst_apexsink_open:<apexsink0> OPEN : ApEx jack is connected
0:00:03.034510364 29525      0x1f1b080 INFO              apexsink gstapexsink.c:449:gst_apexsink_open:<apexsink0> OPEN : ApEx jack type is analog
0:00:03.038014414 29525      0x1f1b080 INFO              apexsink gstapexsink.c:473:gst_apexsink_open:<apexsink0> OPEN : ApEx sink successfully set volume to "100%"
0:00:03.077826186 29525      0x1f99e10 INFO              apexsink gstapexsink.c:496:gst_apexsink_prepare:<apexsink0> PREPARE : ApEx sink ready to stream at 44100Hz, 4 bytes per sample, 2 channels, 16384 bytes segments (176kB/s)
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:03.079695144 29525      0x1f1b080 INFO              apexsink gstapexsink.c:537:gst_apexsink_delay:<apexsink0> DELAY
New clock: GstAudioSinkClock
0:00:03.083153210 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.170067570 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.258879225 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.354172614 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.440044793 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.525655431 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.609864388 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.697902185 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.783405013 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.871532586 29525      0x209a5d0 INFO              apexsink gstapexsink.c:511:gst_apexsink_write:<apexsink0> WRITE : 16384 bytes sended
0:00:03.873033021 29525      0x1f99e10 INFO              apexsink gstapexsink.c:537:gst_apexsink_delay:<apexsink0> DELAY
Got EOS from element "pipeline0".
Execution ended after 840374201 ns.
Setting pipeline to PAUSED ...
0:00:03.920682161 29525      0x1f1b080 INFO              apexsink gstapexsink.c:549:gst_apexsink_reset:<apexsink0> RESET : flushing buffer...
0:00:03.936482788 29525      0x1f1b080 INFO              apexsink gstapexsink.c:552:gst_apexsink_reset:<apexsink0> RESET : ApEx buffer flush success
0:00:03.936971636 29525      0x1f1b080 INFO              apexsink gstapexsink.c:537:gst_apexsink_delay:<apexsink0> DELAY
Setting pipeline to READY ...
0:00:03.957715737 29525      0x1f1b080 INFO              apexsink gstapexsink.c:549:gst_apexsink_reset:<apexsink0> RESET : flushing buffer...
0:00:03.961953910 29525      0x1f1b080 INFO              apexsink gstapexsink.c:552:gst_apexsink_reset:<apexsink0> RESET : ApEx buffer flush success
0:00:03.962000026 29525      0x1f1b080 INFO              apexsink gstapexsink.c:526:gst_apexsink_unprepare:<apexsink0> UNPREPARE
Setting pipeline to NULL ...
0:00:03.975939916 29525      0x1f1b080 INFO              apexsink gstapexsink.c:568:gst_apexsink_close:<apexsink0> CLOSE : ApEx sink closed connection
FREEING pipeline ...
Comment 3 Jérémie Bernard 2009-09-27 10:55:20 UTC
don't know why it works on some configurations and why not on some others but it seems that in file gstapexsink.c, gst_apexsink_prepare function portal, you have to change the spec->segtotal = 1 to something bigger such as 3 or 4 and of course, rebuild the sink.
Comment 4 Christian Thalinger 2009-10-24 14:06:10 UTC
(In reply to comment #3)
> don't know why it works on some configurations and why not on some others but
> it seems that in file gstapexsink.c, gst_apexsink_prepare function portal, you
> have to change the spec->segtotal = 1 to something bigger such as 3 or 4 and of
> course, rebuild the sink.

Sorry, it took long than I thought that I can come back to this one.  In the meantime I'm back on OpenSolaris and I tried to set the segtotal to 4 but it does not help.  Still no output.
Comment 5 Christian Thalinger 2009-10-24 14:12:37 UTC
(In reply to comment #4)
> Sorry, it took long than I thought that I can come back to this one.  In the
> meantime I'm back on OpenSolaris and I tried to set the segtotal to 4 but it
> does not help.  Still no output.

Oops!  Sorry again, it works.  The problem was that the tested .ogg files was too short and so it didn't start to play.  When I play a longer file it works.

segtotal = 1 is broken, segtotal = 2 works.
Comment 6 Sebastian Dröge (slomo) 2011-05-19 17:16:58 UTC
In latest GIT segtotal=2 is used so everything should be fine now.