GStreamer Get Exact Time of 1st Frame

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GStreamer Get Exact Time of 1st Frame

2,302 Views
madstrum
Contributor III

Hi,

I'm running GStreamer from the command line to record video to H.264 avi like this.


gst-launch tvsrc fps-n=25 ! 'video/x-raw-yuv, width=(int)720, height=(int)576, framerate=(fraction)25/1' ! vpuenc codec=6 ! avimux ! queue2 max-size-buffer=1 max-size-bytes=0 max-size-time=0 ! filesink location=output.avi

There is some init time from when I do gst-launch till when the video actually starts recording.

Is there any method to get the exact time of the very 1st frame output to text file? Or better still, the exact time of every frame?

Thank you.

Labels (4)
0 Kudos
3 Replies

1,884 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Mad,

     please refer to the following 2 addresses, maybe they are helpful for you ! We can find how to use timestamp in Gstreamer by these 2 contents.

https://community.freescale.com/message/444528#444528 

http://www.linuxtv.org/wiki/index.php/GStreamer


Regards,

weidong

0 Kudos

1,884 Views
世浩李
Contributor II

Hello ,the link https://community.freescale.com/message/444528#444528   is not accessed and how can I find it? Thanks!

0 Kudos

1,884 Views
madstrum
Contributor III
0 Kudos