keep rtsp session/stream open while pausing the source stream
Posted: 30 Sep 2021 08:14
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?
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?