Displaying sequence no and dump video packets in file

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

Displaying sequence no and dump video packets in file

Mayank Agarwal
Hi,

I am displaying video from udp src at port no 32716.The video is raw yuv 422 packets.
I want to parse sequence number of individual packets and find out packet loss in the network.

My gstreamer pipeline for displaying camera frames is:

gst-launch-1.0 -v udpsrc port=62716 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string){YCbCr-4:2:2}, depth=(string)8, width=(string)1280, height=(string)800, colorimetry=(string)BT709-2, payload=(int)96, ssrc=(uint)341085478, clock-base=(uint)342261484, seqnum-base=(uint)33150" ! rtpvrawdepay ! autovideosink sync=false


Regards
Mayank





_______________________________________________
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: Displaying sequence no and dump video packets in file

Arjen Veenhuizen
Tat is something that you would typically do by inserting the rtpjitterbuffer element after the udpsrc (which would be a good idea in general). A combination of do-lost=true and the appropriate probe for GstRTPPacketLost  downstream would get you underway but I am not sure if the GstRTPPacketLost message also includes the packetnumber.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Displaying sequence no and dump video packets in file

Arjen Veenhuizen
I checked the source (gstrtpjitterbuffer.c) and the GstRTPPacketLost event indeed contains the seqnum!

gst_structure_new ("GstRTPPacketLost",
                "seqnum", G_TYPE_UINT, (guint) next_seqnum,
                "timestamp", G_TYPE_UINT64, out_time,
                "duration", G_TYPE_UINT64, duration, NULL));
Loading...