ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SRS service stopped, but ffmpeg process did not stop

2505587 opened this issue · comments

I installed SRS 2.0.255 on both Ubuntu 16.04 and CentOS 18.04 today. After executing "service srs stop", the FFmpeg streaming process still remains. Later, I found that versions 2.0.234 and 2.0.248 also have this issue. However, version 2.0.199 is able to stop the process along with the SRS service.

TRANS_BY_GPT3

Can you provide the steps to reproduce? Configuration file?

TRANS_BY_GPT3

The downloaded file is: https://codeload.github.com/ossrs/srs/tar.gz/v2.0-r4. After downloading, unzip it and run ./configure --full; make; make install.

Add the following to srs.conf:
vhost out {
ingest cbn{
enabled on;
input {
type stream;
url rtmp://.../live/;
}
ffmpeg ./objs/ffmpeg.src/_release/bin/ffmpeg;
engine {
enabled off;
output rtmp://
.../live/;
}
}
}

After executing 'service srs stop', this ffmpeg process is still running.

TRANS_BY_GPT3

It seems that the FFMPEG process is not handling the signal. Let me confirm, it seems like SRS will send a SIGKILL signal if FFMPEG does not exit for a long time.

TRANS_BY_GPT3