keep rtsp session/stream open while pausing the source stream

About encoding, codec settings, muxers and filter usage
hon oci
New Cone
New Cone
Posts: 2
Joined: 30 Sep 2021 06:21

keep rtsp session/stream open while pausing the source stream

Postby hon oci » 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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 30 Sep 2021 13:19

With RTSP, only the client can pause/resume. This is by protocol design.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

hon oci
New Cone
New Cone
Posts: 2
Joined: 30 Sep 2021 06:21

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

Postby hon oci » 30 Sep 2021 14:32

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 30 Sep 2021 17:17

You can't pause a multicast stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 24 guests