简体   繁体   中英

Timestamping in Gstreamer pipeline

I have created a gstreamer pipeline with my appsrc; the pipeline is like this

appsrc name=src ! video/x-h264 ! decodebin ! queue ! autovideosink 

I have written code to run this pipeline; I will get h264 frames in my appsrc, and I am pushing it to decodebin. I am not receiving any timestamps in my appsrc. So I am thinking of feeding timestamps values (such that the fps will be 30fps). There are two feilds in the GstBuffer Structure, the timestamp feild and the PTS feild, which one should I set with my timestamp. And on reference to which clock the render and decoder will check these timestamps ?

Currently wht I am doing is creating a baseclock reference from system time, and with respect to that time I am incrementing my timestamps, and it is not working, If I set only the duration feild it plays fine, But I want to implement the timestamp logic so that the decoder can drop some frames if some comes late.. I have very little knowledge about timestamping, so I want to know more about timestamping

Are you using GST 1.0or GST 0.10? There is no "timestamp" that is exposed in GST 1.0, whereas in 0.10 there aren't PTS/DTS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM