Streaming in stereo in OPUS

Peter Maersk-Moller pmaersk at gmail.com
Wed Jul 19 23:02:56 UTC 2017


It means you are streaming sterao audio as an opus encoded and RTP
encapsulated stream.

On Wed, Jul 19, 2017 at 10:54 PM, TouchOfDestiny <davide.caldelari at gmail.com
> wrote:

> Hi,
>
> thank you very much for your replies.
> This is what I have with the "-v" option. i slightly modify the command
> line
> parameters, since I don't need any video, only OPUS audio:
>
> /gst-launch-1.0 -v alsasrc ! audio/x-raw,channels=2,rate=48000 !
> audioconvert dithering=0 ! opusenc bitrate=256000 ! rtpopuspay  ! udpsink
> host=127.0.0.1 port=8002 &/
>
> And this is the result (I'm sorry, but I don't understand very well what
> this all means):
>
> /Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSrcClock
> /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-buffer-time = 200000
> /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-latency-time = 10000
> /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0.GstPad:src: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> /GstPipeline:pipeline0/GstOpusEnc:opusenc0.GstPad:sink: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
> "audio/x-raw\,\ format\=\(string\)S16LE\,\ layout\=\(string\)interleaved\
> ,\
> rate\=\(int\)48000\,\ channels\=\(int\)2\,\
> channel-mask\=\(bitmask\)0x0000000000000003"
> Redistribute latency...
> /GstPipeline:pipeline0/GstOpusEnc:opusenc0.GstPad:src: caps =
> "audio/x-opus\,\ multistream\=\(boolean\)false\,\
> streamheader\=\(buffer\)\<\ 4f707573486561640102000080bb0000000000\,\
> 4f707573546167731e000000456e636f6465642077697468204753747265
> 616d6572204f707573656e630000000001\
> \>"
> /GstPipeline:pipeline0/GstRtpOPUSPay:rtpopuspay0.GstPad:src: caps =
> "application/x-rtp\,\ media\=\(string\)audio\,\ clock-rate\=\(int\)48000\,\
> encoding-name\=\(string\)X-GST-OPUS-DRAFT-SPITTKA-00\,\
> payload\=\(int\)96\,\ ssrc\=\(uint\)2976569488\,\
> timestamp-offset\=\(uint\)3934898579\,\ seqnum-offset\=\(uint\)2879"
> /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
> "application/x-rtp\,\ media\=\(string\)audio\,\ clock-rate\=\(int\)48000\,\
> encoding-name\=\(string\)X-GST-OPUS-DRAFT-SPITTKA-00\,\
> payload\=\(int\)96\,\ ssrc\=\(uint\)2976569488\,\
> timestamp-offset\=\(uint\)3934898579\,\ seqnum-offset\=\(uint\)2879"
> /GstPipeline:pipeline0/GstRtpOPUSPay:rtpopuspay0.GstPad:sink: caps =
> "audio/x-opus\,\ multistream\=\(boolean\)false\,\
> streamheader\=\(buffer\)\<\ 4f707573486561640102000080bb0000000000\,\
> 4f707573546167731e000000456e636f6465642077697468204753747265
> 616d6572204f707573656e630000000001\
> \>"
> /GstPipeline:pipeline0/GstRtpOPUSPay:rtpopuspay0: timestamp = 3934898579
> /GstPipeline:pipeline0/GstRtpOPUSPay:rtpopuspay0: seqnum = 2879
> /
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/Streaming-in-stereo-in-OPUS-tp4683854p4683868.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170720/a18010c0/attachment-0001.html>


More information about the gstreamer-devel mailing list