Interesting, I had noticed this discrepancy between ubuntu 9.04 and
8.04 (i'm on 8.04 on my work machine) before. For some reason,
&quot;localhost&quot; (the default) doesn&#39;t work on 9.04, but 127.0.0.1 does. Thanks for confirming, I just filed this under:<br><br><a href="https://bugzilla.gnome.org/show_bug.cgi?id=595840">https://bugzilla.gnome.org/show_bug.cgi?id=595840</a><br>

<br>-T<br><br><br><div class="gmail_quote">2009/9/21 Dirk Griffioen <span dir="ltr">&lt;<a href="mailto:dirk.griffioen@barcelonamedia.org">dirk.griffioen@barcelonamedia.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div bgcolor="#ffffff" text="#000000">
Tristan,<br>
<br>
If I add &#39;host&#39; to the udpsink it works ...<br>
<br>
<pre>gst-launch -v jackaudiosrc connect=none ! audio/x-raw-float, channels=10
! vorbisenc ! rtpvorbispay ! udpsink port=10000 host=127.0.0.1</pre>
<br>
Then both jackaudiosink and jackaudiosrc show up.<br>
<br>
Thanks for the help!<br>
<br>
Best, Dirk<div><div></div><div class="h5"><br>
<blockquote type="cite">
  <pre>Are you copying the caps from udpsink&#39;s sink pad directly from the
sender pipeline? Vorbis caps (i.e. the codebook) will change for
different configurations.

-T

Dirk Griffioen wrote:
  </pre>
  <blockquote type="cite">
    <pre>Hi Tristan,

Thanks for the replies. They are really helpfull! (And I will have a
further look at &#39;miville&#39; - it looks really nice).
    </pre>
    <blockquote type="cite">
      <pre>This example might help:
sender

gst-launch -v jackaudiosrc connect=none ! audio/x-raw-float, channels=10
! vorbisenc ! rtpvorbispay ! udpsink port=10000

receiver

gst-launch -v udpsrc caps=&quot;$CAPS&quot; port=10000 ! rtpvorbisdepay !
vorbisdec ! queue max-size-buffers=3 ! jackaudiosink connect=none

where $CAPS are the caps of the udpsink from the first pipeline.


      </pre>
    </blockquote>
    <pre>This does not work for me, jackaudiosink does not pop up in qjackctl
... I tried some other configurations, but nothing.

However, somehow my first pipeline with rtp decided to work, with 24
channels and from gst-launch. Still, I get:

WARNING: from element /GstPipeline:pipeline0/GstVorbisDec:vorbisdec0:
Could not decode stream.
Additional debug info:
vorbisdec.c(670): vorbis_handle_identification_packet ():
/GstPipeline:pipeline0/GstVorbisDec:vorbisdec0:
Using NONE channel layout for more than 8 channels

Maybe this can interpreted as &#39;cannot read layout from stream,
defaulting to NONE&#39; - as the audio streams fine.
    </pre>
    <blockquote type="cite">
      <pre>-Tristan

Tristan Matthews wrote:

      </pre>
      <blockquote type="cite">
        <pre>As far as I know this should be fine in python, though I haven&#39;t tried
it. Our app (<a href="https://svn.sat.qc.ca/trac/miville" target="_blank">https://svn.sat.qc.ca/trac/miville</a>) does this for up to 8
channels of vorbis or raw audio (with rtpL16pay/depay) and gstrtpbin. We
haven&#39;t tried (yet) to implement support for more than 8 channels. Here
we don&#39;t set the channel positions and it works, but I do get that same
&quot;warning could not decode stream&quot; even though the sound if fine.
The element to set the number of channels is a caps filter element, so
the equivalent in C would be:

GstElement *capsfilter;
gst_element_factory_make(capsfilter, NULL);
g_object_set(capsfilter, &quot;caps&quot;, &quot;audio/x-raw-float, channels=8&quot;, NULL);

and then link it in between jackaudiosrc and vorbisenc.

-Tristan

Dirk Griffioen wrote:


        </pre>
        <blockquote type="cite">
          <pre>Hi Tristan,


          </pre>
          <blockquote type="cite">
            <pre>You probably have to set the &quot;channel-positions&quot; property on the
interleave element, which you can&#39;t do with gst-launch as I recall (i.e.
you need to write c or python app for it) as it is an array. However for
more than 8 channels the positions might have to all be set to
GST_AUDIO_CHANNEL_POSITION_NONE




            </pre>
          </blockquote>
          <pre>Yes I read about that
(<a href="http://tristanswork.blogspot.com/2008/08/multichannel-audio-with-gstreamer.html" target="_blank">http://tristanswork.blogspot.com/2008/08/multichannel-audio-with-gstreamer.html</a>),
and can I do this in python as well? (I dont mind C, but python will
be quicker).



          </pre>
          <blockquote type="cite">
            <pre>Are you just trying to do something like this?

gst-launch -v jackaudiosrc connect=none ! audio/x-raw-float, channels=24
! vorbisenc ! vorbisdec ! jackaudiosink connect=none




            </pre>
          </blockquote>
          <pre>Well, almost :)

I am trying to put rtp in between the vorbisencoder and decoder so I
can stream n channels from A to B over a single rtp session

I get the following on the receiving end (after copying the new config
string from A to B):

GstPipeline:pipeline0/GstVorbisDec:vorbisdec0.GstPad:sink: caps =
audio/x-vorbis
WARNING: from element /GstPipeline:pipeline0/GstVorbisDec:vorbisdec0:
Could not decode stream.
Additional debug info:
vorbisdec.c(670): vorbis_handle_identification_packet ():
/GstPipeline:pipeline0/GstVorbisDec:vorbisdec0:
Using NONE channel layout for more than 8 channels

Which is weird because it knows this:

/GstPipeline:pipeline0/GstVorbisDec:vorbisdec0.GstPad:src: caps =
audio/x-raw-float, rate=(int)48000, channels=(int)24,
endianness=(int)1234, width=(int)32,
channel-positions=(GstAudioChannelPosition)&lt;
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE,
GST_AUDIO_CHANNEL_POSITION_NONE, GST_AUDIO_CHANNEL_POSITION_NONE &gt;

Do you have any tips? (Maybe the NONE layout is not in the vorbis
config string ...)

Regards, Dirk

PS - how do you call the &#39;audio/x-raw-float, channels=24&#39; element?



          </pre>
          <blockquote type="cite">
            <pre>(note that the bottleneck here will probably be your soundcard).

-Tristan

Dirk Griffioen wrote:



            </pre>
            <blockquote type="cite">
              <pre>Thanks for the answer!




              </pre>
              <blockquote type="cite">
                <pre>I think you need to interleave several mono channels from audiotestsrc
into a stereo stream and then shove them into the vorbis encoder. You
need an audio mixer, or something like that.





                </pre>
              </blockquote>
              <pre>I would like to encode separate channels.

For example, this runs

gst-launch-0.10 -v interleave name=i ! queue ! \
vorbisenc ! vorbisdec ! \
jackaudiosink connect=none \
jackaudiosrc ! audioconvert ! queue ! i. \
jackaudiosrc ! audioconvert ! queue ! i.

but this does not:

gst-launch-0.10 -v interleave name=i ! queue ! \
vorbisenc ! vorbisdec ! \
jackaudiosink connect=none \
jackaudiosrc ! audioconvert ! queue ! i. \
jackaudiosrc ! audioconvert ! queue ! i. \
jackaudiosrc ! audioconvert ! queue ! i. \
jackaudiosrc ! audioconvert ! queue ! i.

Do you know why? The vorbis spec allows for 255 channels and I simply
would like to run n channels through the vorbis encoder ...

I really could use some help.

Thanks in advance, Dirk


------------------------------------------------------------------------------
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a>
_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>





              </pre>
            </blockquote>
            <pre>            </pre>
          </blockquote>
          <pre>------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a>
------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>



          </pre>
        </blockquote>
        <pre>        </pre>
      </blockquote>
      <pre>      </pre>
    </blockquote>
    <pre>------------------------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a>
------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>

    </pre>
  </blockquote>
  <pre>--
Tristan Matthews
Société des arts technologiques [SAT]
email: <a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a>
web: <a href="http://www.music.mcgill.ca/%7Etmatthews" target="_blank">http://www.music.mcgill.ca/~tmatthews</a>


------------------------------------------------------------------------------
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a>
_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a>
  </pre>
</blockquote>
<br>
</div></div></div>

<br>------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA<br>
is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;<br>
<a href="http://p.sf.net/sfu/devconf" target="_blank">http://p.sf.net/sfu/devconf</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Tristan Matthews<br>email: <a href="mailto:tristan@sat.qc.ca">tristan@sat.qc.ca</a><br>web: <a href="http://tristanswork.blogspot.com">http://tristanswork.blogspot.com</a><br>