I am new with Gstreamer. I am using below command to record raw video data from camera.
gst-launch-1.0 -e v4l2src ! 'video/x-raw, format=UYVY, width=1920, height=1080, framerate=16/1' ! recorded_`date '+%Y-%m-%d_%H-%M-%S'`.UYVY
Now want to set timestamp from c code.I am using g_object_set as below.
g_object_set(sink, “location”, “test.mp4”, NULL);
Is it possible to add timestamp through code?
Any help would be greatly appreciated.
We would suggest encode into a file instead of saving the UYVY frames. Please check the encoding examples in gstreamer user guide.
Thanks for quick response, below pipeline i am using to store data in mp4 file.
gst-launch-1.0 nvarguscamerasrc ! ‘video/x-raw(memory:NVMM),width=(int)1920,height=(int)1080,framerate=16/1’ ! omxh264enc profile=8 bitrate=1000000 ! video/x-h264 ! h264parse ! flvmux ! filesink location = recorded_‘date ‘+%Y-%m-%d_%H-%M-%S’’.mp4