Raw audio MPEG TS streaming

Nicolas Dufresne nicolas at ndufresne.ca
Sat Jul 1 15:18:26 UTC 2017


Le 1 juil. 2017 6:59 AM, "Charles Chen - Contractor" <chchen at actiontec.com>
a écrit :

Hello,


How to generate mpeg TS stream (RTP payload type 33) with raw audio without
using any audio encoder such as AAC? I need to feed raw PCM audio into
mpegtsmux and RTP rtpmp2tpay. I am getting pipeline link error if I:


gst-launch-1.0 autoaudiosrc ! audioconvert ! capsfilter caps =
"audio/x-lpcm,width=16,channels=2,rate=48000" ! filesink location =
"audiofile.raw"


Looks like audio/x-lpcm is not included in the supported media type list:

https://gstreamer.freedesktop.org/documentation/plugin-
development/advanced/media-types.html

Do I have to create a new audio/x-lpcm media type? considering possible
issues to link with existing elements.


Is it feasible to create my own plugin to convert audio/x-raw to
audio/x-lpcm and then link to mpegtsmux?


Or should I use appsrc or appsink method to do that?


Creating an "encoder" for that would be nice, it's currently missing. It
does not seem too complex either. Note that RTP can support raw pcm
directly, if that's an option for you.


Thanks and appreciate any feedback.


Charles



_______________________________________________
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/20170701/bb5388ab/attachment-0001.html>


More information about the gstreamer-devel mailing list