mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
add todo for ffmpeg
This commit is contained in:
parent
5afe746e69
commit
464d78b762
2 changed files with 6 additions and 3 deletions
|
@ -72,19 +72,18 @@ vhost __defaultVhost__ {
|
|||
vhost dev {
|
||||
enabled on;
|
||||
gop_cache on;
|
||||
hls off;
|
||||
hls on;
|
||||
hls_path ./objs/nginx/html;
|
||||
hls_fragment 5;
|
||||
hls_window 30;
|
||||
#forward 127.0.0.1:19350;
|
||||
#forward 127.0.0.1:1936;
|
||||
transcode {
|
||||
enabled on;
|
||||
enabled off;
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine dev {
|
||||
enabled on;
|
||||
vfilter {
|
||||
t 10;
|
||||
}
|
||||
vcodec libx264;
|
||||
vbitrate 300;
|
||||
|
|
|
@ -374,6 +374,8 @@ int SrsFFMPEG::cycle()
|
|||
return ret;
|
||||
}
|
||||
|
||||
// TODO: to support rewind.
|
||||
|
||||
if (p == 0) {
|
||||
srs_info("transcode process pid=%d is running.", pid);
|
||||
return ret;
|
||||
|
@ -391,6 +393,8 @@ void SrsFFMPEG::stop()
|
|||
return;
|
||||
}
|
||||
|
||||
// TODO: kill the ffmpeg process when stop.
|
||||
|
||||
std::vector<std::string>::iterator it;
|
||||
it = std::find(_transcoded_url.begin(), _transcoded_url.end(), output);
|
||||
if (it != _transcoded_url.end()) {
|
||||
|
|
Loading…
Reference in a new issue