Gstreamer UDP Source Query

Nicolas Dufresne nicolas at ndufresne.ca
Wed Jan 17 17:12:44 UTC 2018


Le mercredi 17 janvier 2018 à 10:10 +0000, Mohammad, Jamal M a écrit :
> Hi Guys,
>  
> I am developing an IP Streaming based media player. I am using the
> following pipelines:
>  
> Src:
>  
> gst-launch-1.0 -vvv udpsrc port=5004 ! application/x-rtp, payload=96
> ! rtph2 64depay ! h264parse ! imxvpudec ! imxipuvideosink sync=false
>  
> Sink:
>  
> C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -v filesrc
> location=C:\\gstreamer\\1.0\\x86_64\\bin\\hash.h264 ! h264parse !
> rtph264pay ! udpsink host=153.77.205.139 port=5004 sync=true
>  
> This was the proof of concept. Now, We wanted to have an application
> which can perform the same operation but with a little tweak when
> there is no streaming or when no data from the sink, we need to
> switch to offline base media player, means play a set of videos
> offline and when there is data on udp port, switch to streaming.
>  
> Following are my queries:
>  
> Is there any way to find out streaming has been completed after video
> play over IP

Only is you signal this information. An example, the RTSP protocol will
announce the duration, so the other end will know because that duration
have elapsed.

> Is there any way to find out there is no streaming happening.

You could use a pad probe that watch for data, and implement a keep
alive stile mechanism.

>  
> Please help. I am ready to help you if you need more details
>  
>  
> Mohammad Jamal Mohiuddin
> Software Engineer, Retail Hosp/HW
> NCR Corporation India Pvt Ltd.
> MohammadJamal.Mohiuddin at ncr.com | www.ncr.com
>  
>  
>  
>  
>  _______________________________________________
> 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/20180117/e3e44701/attachment.sig>


More information about the gstreamer-devel mailing list