Page 1 of 1

keep rtsp session/stream open while pausing the source stream

Posted: 30 Sep 2021 08:14
by hon oci
hi

i am using a videomanagement software to receive an rtsp stream typically sourced from ip cameras.
now i'd like to simulate a camera by streaming a video file from libvlc. this works so far. Now the problem starts when i like to pause the stream.
the client receives no more frames and the "camera" is not accessible anymore (logical consequence)

to avoid this i tried to change the source video by streaming a still image transcoded to h264 while paused and change back to the desired videostream when resuming.

the change is not fluent enough and the rtsp session is restarting at every change. so the "camera" does stream timeout and reconnects after a while

is there a possibility in (lib)vlc to freeze or pause a source stream while keeping the rtsp session and the client stream open ?
any other ideas to work around this problem?

Re: keep rtsp session/stream open while pausing the source stream

Posted: 30 Sep 2021 13:19
by Rémi Denis-Courmont
With RTSP, only the client can pause/resume. This is by protocol design.

Re: keep rtsp session/stream open while pausing the source stream

Posted: 30 Sep 2021 14:32
by hon oci
hi rémi

Thank you for the answer!
I don't know RTSP very well, but i thought that i have seen, that rtsp also supports multicast!?

how would that be possible to start/pause a stream if multiple clients are involved?
or does this work different in multicast?
if so, is there a possibility to get this working?

Re: keep rtsp session/stream open while pausing the source stream

Posted: 30 Sep 2021 17:17
by Rémi Denis-Courmont
You can't pause a multicast stream.