Pad negotiation at udpsrc element

Sebastian Dröge sebastian at centricular.com
Mon Nov 14 11:57:44 UTC 2016


On Mon, 2016-11-14 at 03:41 -0800, debruyn wrote:
> If you feel a demuxer is necessary why does the following setup work:
> 
> *rtspsrc |  queue | rtph264depay | h264parse | queue        \
>                                                                      
>                
> > mp4mux | filesink
> 
> rtspsrc | queue | rtpmpadepay | mpegaudioparse | queue /*

rtspsrc does the "demuxing" internally already, or in the case of UDP
transport it even goes via two different udpsrcs.

> Note I am also able to stream and record (video only) at the same
> time, and
> it works fine:
> 
> *                     |  queue | rtph264depay | h264parse | queue |
> mp4mux |
> filesink
> udpsrc | tee
> <                                                                    
>        
>                      | queue | rtph264depay | avdec_h264 | theoraenc
> |
> oggmux | shout2send*

This probably works because the depayloader drops all the non-video
packets. The other one does not work because the tee would have to give
two different caps, a different one to each branch.

> As far as the rtpptdemux element I get the same negotiation error but
> now it
> happens where i attach the demuxer. The pipeline looks like this:
> *
>                      |  queue | rtpptdemux | rtph264depay | h264parse
> |
> queue        \
> udpsrc | tee
> <                                                                    
>       
> > mp4mux | filesink

Same thing here. Also you need to understand how the stream is muxed.
To know whether you can demux by pt or by ssrc.

You also need to handle the signals on the element to provide the
correct caps for each of the branches. You can't use these elements
from gst-launch but need to write actual code.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161114/0f22a008/attachment.sig>


More information about the gstreamer-devel mailing list