Dynamic injection of a live stream into my pipeline

Hello, I’m new to GStreamer and I’m trying to add a live stream on the fly 10 seconds after launching my pipeline.

However, I don’t see any particular errors in my logs, the stream doesn’t crash, but I can’t hear the live stream.

If I change my liveadder to a simple adder, it works, but I get a small dropout/artifact, and I’d like to avoid that.

I imagine it doesn’t work with the liveadder because of the clock or something like that, but since I’m a beginner, I’m really struggling to figure it out.

Here’s the GitHub link to the project; it’s quite simple (it’s in Go, but that doesn’t matter).

Any help is welcome.

Thanks in advance :slight_smile:

My pipeline

Don’t use liveadder. Instead use the audiomixer element.

Adding a file source to a dynamically running pipeline requires offsetting timestamps. This has been covered already in MP4 playback starts ahead when dynamically added to running pipeline

Yes, I finally found it after several hours of searching.

Thank you :pray:

I just got done creating a C++ Gstreamer wrapper library. It makes things link getting data from a pipeline or sending data to a pipeline easy.