How to synchronize two stream for stereo vision

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

How to synchronize two stream for stereo vision

Damien Picard
Hi !

I'm currently designing webcams that I will use with some stereo image processing algorithms.

I'm streaming from an UVC cam through a RaspberryPi using vl42src,jpegdec, omxh264 and gdp payload at 15 fps in 1920x1080 and it works fine.

Now, I want to synchronize, as much as possible, two streams coming from two such cameras. To do that, I think I have to use some timestamps informations (PTS, DTS, etc.) but I see that these timestamps are always relative to the beginning of the stream.
Is it possible to add an "absolute" timestamp to a payload (GDP payload or any other) ? Even if only to add some absolute timestamps every 5 seconds, or something like that ?

Thank you.


--
Damien Picard
Expert GWT
Mob : 06 11 51 47 78

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

Re: How to synchronize two stream for stereo vision

Damien Picard
Furthermore, is it possible to use a GstNtpClock instead of GstSystemClock with gst-launch ?

2017-03-22 9:35 GMT+01:00 Damien Picard <[hidden email]>:
Hi !

I'm currently designing webcams that I will use with some stereo image processing algorithms.

I'm streaming from an UVC cam through a RaspberryPi using vl42src,jpegdec, omxh264 and gdp payload at 15 fps in 1920x1080 and it works fine.

Now, I want to synchronize, as much as possible, two streams coming from two such cameras. To do that, I think I have to use some timestamps informations (PTS, DTS, etc.) but I see that these timestamps are always relative to the beginning of the stream.
Is it possible to add an "absolute" timestamp to a payload (GDP payload or any other) ? Even if only to add some absolute timestamps every 5 seconds, or something like that ?

Thank you.


--
Damien Picard
Expert GWT
Mob : 06 11 51 47 78



--
Damien Picard
Expert GWT
Mob : 06 11 51 47 78

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