mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Improve the usage of "transcode" in the "full.conf" file. v5.0.162, v6.0.56 (#3596)
--------- Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
30c2f50cae
commit
7ba59c3635
4 changed files with 18 additions and 2 deletions
|
@ -2307,6 +2307,7 @@ vhost example.transcode.srs.com {
|
|||
# [app] the input stream app.
|
||||
# [stream] the input stream name.
|
||||
# [engine] the transcode engine name.
|
||||
# [param] the input stream query string.
|
||||
# we also support datetime variables.
|
||||
# [2006], replace this const to current year.
|
||||
# [01], replace this const to current month.
|
||||
|
@ -2468,6 +2469,19 @@ vhost copy.transcode.srs.com {
|
|||
}
|
||||
}
|
||||
}
|
||||
# forward the input stream query string to output
|
||||
vhost param.transcode.srs.com {
|
||||
transcode {
|
||||
enabled on;
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
engine copy {
|
||||
enabled on;
|
||||
vcodec copy;
|
||||
acodec copy;
|
||||
output rtmp://127.0.0.1:[port]/[app]/[stream]_[engine][param];
|
||||
}
|
||||
}
|
||||
}
|
||||
# transcode all app and stream of vhost
|
||||
# the comments, read example.transcode.srs.com
|
||||
vhost all.transcode.srs.com {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue