How to convert PTS to GstClockTime.

ZhengZheng pasapasashiteiru at hotmail.com
Mon May 25 01:37:58 PDT 2015


Hi.

I want to synchronize Video and bmp image data.

I use mpegtsdemux plugins.
I think mpegtsdemux convert PTS to GstClockTime with PCR table.(tsdemux.c)
And put in to GstVideoCodecFrame.

[Question.1]
  bmp image data have PTS (the same as MPEGTIME).
  I want to convert PTS to GstTime(the same as Stream Time).
  How can I convert PTS to GstTime.

[Question.2]
  What should time after a change be compared with?
  - gst_element_query_position()?
  - gst_clock_get_time ()?
  - GST_BUFFER_PTS(buffer)?
  or any other way.

Are there other good ideas to make the outside bitmap data synchronous?




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-convert-PTS-to-GstClockTime-tp4671993.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list