Playsink creates the wrong Sink

Nicolas Dufresne nicolas at ndufresne.ca
Fri Dec 20 19:02:51 UTC 2019


Le vendredi 20 décembre 2019 à 12:34 +0000, Jon Lovewell a écrit :
> Hello everyone,
>  
> I have a pcap file which contains a rtsp session in which H264 encoded video is being streamed between a server and client.
>  
> I am using the following pipeline to play this file
>  
> filesrc location=<PathToFile> ! pcapparse ! irtspparse ! capsfilter caps="application/x-rtp,media=video,payload=99,encoding-name=H264,clock-rate=90000" ! rtph264depay ! decodebin ! playsink
>  
> Using this pipeline playsink creates an audio sink instead of a video sink.

Using playsink is a bit more complex then that, you have to specify
which pad to use. This is possible in gst-launch, but I suspect what
you really want is just "videoconvert ! videoscale ! autovideosink"
here.

>  
> If however, I use the following pipeline I get the video.
>  
> filesrc location=<PathToFile> ! pcapparse ! irtspparse ! capsfilter caps="application/x-rtp,media=video,payload=99,encoding-name=H264,clock-rate=90000" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
>  
> Can anyone tell me if my first pipeline is acceptable.  I have tried to use playsink’s flags property to limit the output to video but to no avail.  
>  
> I can provide ‘dot’ files or debug trace if required.
>  
> Any help or advice greatly appreciated.
>  
> Kind Regards
>  
> Jon
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191220/f26913a3/attachment.sig>


More information about the gstreamer-devel mailing list