Hi camelstrike, hi Rémi Denis-Courmont
I have two different rtsp streams (audio and video) coming from different devices to my VLM that broadcasts them to my clients.
I'd like to synchronize both streams so that I can have perfect lip sync on the resulting stream played by clients (with vlc).
I'm using the following configuration file:
Code: Select all
# video channel (connection to an rtsp server)
new channel1 broadcast enabled
setup channel1 input rtsp://user:password@172.32.0.20:554/path/media.amp
setup channel1 output #duplicate{dst=std{dst=rtp{port=6666,mux=ts,name="Stream1",description="Stream1Description",sdp=rtsp://:8081/test.sdp}}
# audio channel (receive through rtp stream)
new channel2 broadcast enabled
setup channel2 input rtp://@196.0.0.5:9999
setup channel2 output #duplicate{dst=rtp{port=5555,mux=ts,name="Stream2",description="Stream2Description",sdp=rtsp://:8082/test.sdp}}
control channel1 play
control channel2 play
By now my clients connect in this way:
rtsp://[serverip]:8081/test.sdp (for first stream)
rtsp://[serverip]:8082/test.sdp (for second stream)
and they have 2 separate streams (1 for video and 1 for audio)
So what do I have to do to have those streams synchronized into 1 stream on my clients?
Can I receive both streams simultaneously (and synchronized) using a single vlc instance?
Thanks in advance for any hint!
P.S: i'm also able to modify my configuration to have vlm sending rtp streams to my clients (is it better than above to achieve syncronization?)