<div dir="ltr"><div><div><div><div>Use the verbose flag to see what is produced<br><br></div> gst-launch-1.0 -v ....<br><br></div>then you can see if you produce stereo at all.<br><br></div>Raspberry Pi does not have audio input so you added an external audio capture device I assume. Does it offer stereo?<br>Even if it does not offer stereo, audioconvert can change channels from something to stereo if you specify it. The module opusenc will take from 1-8 channels so if your alsasrc is mono, it will take that. You need to specify that opusenc should ask for stereo.<br><br></div>To force opusenc to encode in stereo, add a format string after audioconvert.<br><br> gst-launch-1.0 -v audiotestsrc is-live=1 ! audioconvert ! audio/x-raw,channels=2 ! opusenc ! fakesink<br><div><br></div><div>If you wan to ensure your source captures in stereo add a format string before audioconvert<br><br> gst-launch-1.0 -v audiotestsrc is-live=1 ! audio/x-raw,channels=2 ! audioconvert ! opusenc ! fakesink<br><br></div><div>You may want to add rate to format as well. Not all rates are supported by opusenc (like 44100) is not supported.<br></div><div>Obviously, you need to replace audiotestsrc with alsasink.<br><br></div><div>Regards<br></div><div>Peter<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 18, 2017 at 5:41 PM, TouchOfDestiny <span dir="ltr"><<a href="mailto:davide.caldelari@gmail.com" target="_blank">davide.caldelari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm a total newbie here, and I was just wondering how you can stream in<br>
stereo with the opus encoding. I've done this:<br>
<br>
gst-launch-1.0 alsasrc device=hw:1,0 ! audioconvert ! opusenc bitrate=128000<br>
! rtpopuspay pt=98 ! udpsink host=127.0.0.1 port=8002 videotestsrc ! vp8enc<br>
! rtpvp8pay ! udpsink host=127.0.0.1 port=8004<br>
(in Raspberry with Debian)<br>
<br>
But it seems that no stereo is produced. Only mono.<br>
<br>
Do you have any idea?<br>
<br>
Thank you very much.<br>
David<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Streaming-in-stereo-in-OPUS-tp4683854.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Streaming-in-<wbr>stereo-in-OPUS-tp4683854.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>