RidgeRun / gst-interpipe

GStreamer plug-in for interpipeline communication
Other
143 stars 64 forks source link

Switch interpipe pipeline from live source to replay #74

Open Peoh opened 3 years ago

Peoh commented 3 years ago

Hello I am currently working on a little application and I am struggling to find the timestamp issue and resolve it.

There is 3 pipelines (simplified):

So there is two sources. The live source is the default one, and the replay can be activated on demand. Once requested the interpipesrc listen to the replay instead of the camera source.

This is what I noted, let's say we start the application (with the 3 pipelines) at T+0, and the mp4 file is 20 seconds long:

What I have tested so far:

With the last 2 point, I was able to have a smooth replay, but only between T+0 and T+20.

Did I miss something? I think there is some configuration on the interpipes in this case but I am completely lost.

anilgond commented 3 years ago

Are you playing the filesrc's pipeline in starting?? If yes then please try to start that pipeline just before switching. May be this will resolve your problem.

TopperBG commented 3 years ago

You switching from src camera to filesrc right ?