Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SRS service stopped, but ffmpeg process did not stop #1206

Closed
2505587 opened this issue Aug 23, 2018 · 3 comments
Closed

SRS service stopped, but ffmpeg process did not stop #1206

2505587 opened this issue Aug 23, 2018 · 3 comments
Assignees
Labels
Bug It might be a bug. Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT.
Milestone

Comments

@2505587
Copy link

2505587 commented Aug 23, 2018

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

@winlinvip winlinvip added the Bug It might be a bug. label Aug 25, 2018
@winlinvip winlinvip added this to the srs 2.0 release milestone Aug 25, 2018
@winlinvip
Copy link
Member

winlinvip commented Aug 25, 2018

Can you provide the steps to reproduce? Configuration file?

TRANS_BY_GPT3

@2505587
Copy link
Author

2505587 commented Aug 27, 2018

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

@winlinvip
Copy link
Member

winlinvip commented Oct 14, 2018

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

@winlinvip winlinvip self-assigned this Sep 11, 2021
@winlinvip winlinvip added the Codec HEVC, FFmpeg for ingesting, trascoding or codec. label Sep 11, 2021
@winlinvip winlinvip changed the title SRS服务停止,但ffmpeg进程没停 SRS service stopped, but ffmpeg process did not stop Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. Codec HEVC, FFmpeg for ingesting, trascoding or codec. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants