Issues with Switching from VOD to Live RTMP Stream Using input-selector

Hello, I am new to GStreamer. I have a pipeline that streams a VOD file to an RTMP output. I added a live RTMP stream as a second input and used input-selector to switch between them. However, after switching inputs, I encounter the following issues:

  1. Backward DTS warnings for both video and audio in flvmux.
  2. Prolonged buffering in the player before switching to the live stream.
  3. Audio-video synchronization issues after the switch.

I have already tried using ts-offset, but it didn’t resolve the issue. Any insights on how to fix these problems would be greatly appreciated.

Thank you!