Playbins for some codecs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Playbins for some codecs

Michael Smith-2

Hello,


I'm sending an audio in a RTP streaming using gst-launch and I need to encode it with some codecs.


I was able to do it with opus:


gst-launch-1.0 autoaudiosrc ! audioconvert ! audioresample  ! opusenc ! rtpopuspay ! udpsink host=192.168.1.147 port=5001 ) 


gst-launch-1.0 udpsrc port=5001 caps="application/x-rtp" ! rtpopusdepay ! opusdec ! alsasink 


And G711:


gst-launch-1.0 autoaudiosrc ! audioconvert ! audioresample  ! alawenc ! rtppcmapay ! udpsink host=192.168.1.147 port=5001                                      


gst-launch-1.0 udpsrc port=5001 caps="application/x-rtp" ! rtppcmadepay ! alawdec ! alsasink


Now I also need to do it with these codecs:


G722

MP3

MPEG1/2

MPEG4

MPEG2/4

PCM


I found in the plugins list that gstreamer has the plugins for all of these codecs. But how can I find the right playbins for each one of them? Is there a documentation of how to change the playbins or a list of playbins for these codecs?


Any tip will be very helpful,


Thanks



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Playbins for some codecs

Nicolas Dufresne-5
Le mercredi 09 août 2017 à 12:50 +0000, Michael Smith a écrit :
> I found in the plugins list that gstreamer has the plugins for all of
> these codecs. But how can I find the right playbins for each one of
> them? Is there a documentation of how to change the playbins or a
> list of playbins for these codecs?

Please don't confuse playbin from a pipeline. In your case, you are
creating static pipelines. To build your pipelines, you need to
understand what you are doing. If you look closely, you'll notice that
all your pipelines have the same patter:

  source ! converters ! encoder ! payloader ! udpsink

So what you need to find is the matching encoder and payloader for each
format you want. To get a list of payloader/depayloader support on your
target you can run:

  gst-inspect-1.0 rtp

Dont' forget to properly configure the encoders for RTP streaming, not
all encoder have default configuration that are suitable.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Playbins for some codecs

Michael Smith-2

Hello Nicolas,


Thanks for your answer. I was able to find all the payloaders that I need, but my main dificulty is to find the matching encoder for each of the payloaders. 


Is there a documentation for this and for the properly configurations of the enconders? I'm not finding too much material about it.


Thanks again.




De: gstreamer-devel <[hidden email]> em nome de Nicolas Dufresne <[hidden email]>
Enviado: sexta-feira, 11 de agosto de 2017 10:44
Para: Discussion of the development of and with GStreamer
Assunto: Re: Playbins for some codecs
 
Le mercredi 09 août 2017 à 12:50 +0000, Michael Smith a écrit :
> I found in the plugins list that gstreamer has the plugins for all of
> these codecs. But how can I find the right playbins for each one of
> them? Is there a documentation of how to change the playbins or a
> list of playbins for these codecs?

Please don't confuse playbin from a pipeline. In your case, you are
creating static pipelines. To build your pipelines, you need to
understand what you are doing. If you look closely, you'll notice that
all your pipelines have the same patter:

  source ! converters ! encoder ! payloader ! udpsink

So what you need to find is the matching encoder and payloader for each
format you want. To get a list of payloader/depayloader support on your
target you can run:

  gst-inspect-1.0 rtp

Dont' forget to properly configure the encoders for RTP streaming, not
all encoder have default configuration that are suitable.

regards,
Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...