runOnPublish ffmpeg process not stopped when publisher disconnects #494
Replies: 1 comment
-
moved here #495 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I don't know if this is by design or maybe a bug or something related to my stupidity regarding ffmpeg . So I will post this here.
Which version are you using?
Initially started with 0.16.4 a couple of days ago.
No change with v0.17.0
Which operating system are you using?
OS
Architecture
Describe the issue
in short:
In detail:
I have a simple instance running with 1 endpoint to record an incoming stream with ffmpeg. Tried it with the go standalone binary on the system itself and within a custom docker container.
A client (my one and only 'publisher') is publishing a stream to this endpoint with ffmpeg
This is working so far. The stream gets recorded and segmented.
When the client stops publishing the stream the rtsp-simple-server takes notice and reports this
But the ffmpeg process is still running and not getting killed (waited for more than 10 minutes):
If the client/publisher connects and starts to stream again, the recording gets stuck. The running ffmpeg is not picking up the new stream data which gets lost.
rtmp-simple-server reports the new publisher:
Ffmpeg shows no activity, the target file doesn't change. I have to restart rstp-simple-server or kill the ffmpeg process to be able to record again.
Killing ffmpeg gives the following log output
So from my understanding rtsp-simple-server should stop the runOnPublish ffmpeg process when the last publisher disconnects. But this does not happen. Am I missing something? Is this a bug or is my ffmpeg usage messed up?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions