Add custom data to each frame

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Add custom data to each frame

Jiasheng
Hi, 

I am new to GStreamer and am currently working on a project where I want to include IMU(camera orientation) data to each frame (this will include 4 floats per frame). I am using a e-CAM30_HEXCUTX2 running on a Nvidia TX 2 board. I have recompiled gst_launch.c to gst_myCustomLaunch and am running this command for local testing: gst_myCustomLaunch v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY,width=(int)2304,height=(int)1296" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420,width=(int)1920,height=(int)1080" ! nvoverlaysink overlay-w=1920 overlay-h=1080 sync=false 

I think GstMeta should serve my need but I did not find a way to insert buffer to the v4l2src. It seems that I could add data to a GstAppSrc but I am not sure if it is valid to embed/parallel a v4l2src to appsrc and how. 

Could someone points me a way to do this? Thanks!

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel