Playsink creates the wrong Sink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Playsink creates the wrong Sink

Jon L

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.

 

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playsink creates the wrong Sink

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

signature.asc (201 bytes) Download Attachment