正在显示
1 个修改的文件
包含
20 行增加
和
0 行删除
| @@ -919,6 +919,26 @@ vhost same.vhost.forward.srs.com { | @@ -919,6 +919,26 @@ vhost same.vhost.forward.srs.com { | ||
| 919 | forward 127.0.0.1:1936 127.0.0.1:1937; | 919 | forward 127.0.0.1:1936 127.0.0.1:1937; |
| 920 | } | 920 | } |
| 921 | 921 | ||
| 922 | +# the vhost for exec, fork process when publish stream. | ||
| 923 | +vhost exec.srs.com { | ||
| 924 | + # the exec used to fork process when got some event. | ||
| 925 | + exec { | ||
| 926 | + # whether enable the exec. | ||
| 927 | + # default: off. | ||
| 928 | + enabled off; | ||
| 929 | + # when publish stream, exec the process with variables: | ||
| 930 | + # [vhost] the input stream vhost. | ||
| 931 | + # [port] the intput stream port. | ||
| 932 | + # [app] the input stream app. | ||
| 933 | + # [stream] the input stream name. | ||
| 934 | + # [engine] the tanscode engine name. | ||
| 935 | + # other variables for exec only: | ||
| 936 | + # [url] the rtmp url which trigger the publish. | ||
| 937 | + # @remark empty to ignore this exec. | ||
| 938 | + publish ./objs/ffmpeg/bin/ffmpeg -f flv -i [url] -vcodec copy -acodec copy -f flv ./[stream].flv; | ||
| 939 | + } | ||
| 940 | +} | ||
| 941 | + | ||
| 922 | # the main comments for transcode | 942 | # the main comments for transcode |
| 923 | vhost example.transcode.srs.com { | 943 | vhost example.transcode.srs.com { |
| 924 | # the streaming transcode configs. | 944 | # the streaming transcode configs. |
-
请 注册 或 登录 后发表评论