Need help with synchronisation between two cameras

I have a pipeline that looks like
rtspsrc →
|-> funnel → appsink
appsrc →

rtsp stream is h264 10 FPS.
appsrc is reading images from a custom built camera that is running at 40 FPS. (I can not change this).

[1] Both the cameras are connected to the same machine.
[2] The custom camera gives time of image capture along with the image itself.

I am trying to synchronize these two cameras using gstreamer.
any help would be helpful.

Hi @AdityaWasnik91

  1. Could you tell us a little more about your use case?
  2. I see you are funneling both streams together, are they both h264?
  3. Do you have some timestamp from the rtsp camera, some metadata perhaps?

Regards,
Allan Navarro