Sync video and data with GStreamer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sync video and data with GStreamer

tshraga
Hello, i would like to know how can i sync data and video with GStreamer.
I capture video from camera and for each frame i also get data (for example:
angles of camera gimbal).
I would like to send the video with the data synchronized by GStreamer.
How can i do that?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Sync video and data with GStreamer

gotsring
I guess most simply you can send them as separate streams indexed using the
frame number or timestamp, then sync the data when you need to.

A more complex solution would be to embed the data as metadata, either as a
GstMeta objects or codec-specific (I used H264's SEI format to save IMU data
in an H264 stream). I don't think that GstMeta objects are accessible
outside of the pipeline though (i.e. if you stream the video over UDP and
receive it somewhere else, the GstMeta will be lost).

See docs for GstMeta:
https://gstreamer.freedesktop.org/documentation/gstreamer/gstmeta.html?gi-language=c#GstMeta
 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel