mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
update readme
This commit is contained in:
parent
100a48795f
commit
52e6115f9a
2 changed files with 24 additions and 2 deletions
|
@ -43,6 +43,8 @@ step 6: play live stream auto transcoded<br/>
|
|||
<pre>
|
||||
rtmp url: rtmp://127.0.0.1:1935/live/livestream_fast
|
||||
m3u8 url: http://127.0.0.1:80/live/livestream_fast.m3u8
|
||||
rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd
|
||||
m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8
|
||||
</pre>
|
||||
|
||||
### System Requirements
|
||||
|
|
|
@ -20,14 +20,14 @@ vhost __defaultVhost__ {
|
|||
enabled on;
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
#ffmpeg ./research/ffempty/ffempty;
|
||||
engine fd{
|
||||
engine fast{
|
||||
enabled on;
|
||||
vcodec libx264;
|
||||
vbitrate 300;
|
||||
vfps 20;
|
||||
vwidth 480;
|
||||
vheight 320;
|
||||
vthreads 2;
|
||||
vthreads 1;
|
||||
vprofile baseline;
|
||||
vpreset superfast;
|
||||
vparams {
|
||||
|
@ -40,6 +40,26 @@ vhost __defaultVhost__ {
|
|||
}
|
||||
output rtmp://[vhost]:[port]/[app]/[stream]_fast;
|
||||
}
|
||||
engine sd{
|
||||
enabled on;
|
||||
vcodec libx264;
|
||||
vbitrate 500;
|
||||
vfps 20;
|
||||
vwidth 720;
|
||||
vheight 480;
|
||||
vthreads 1;
|
||||
vprofile main;
|
||||
vpreset fast;
|
||||
vparams {
|
||||
}
|
||||
acodec libaacplus;
|
||||
abitrate 40;
|
||||
asample_rate 44100;
|
||||
achannels 2;
|
||||
aparams {
|
||||
}
|
||||
output rtmp://[vhost]:[port]/[app]/[stream]_sd;
|
||||
}
|
||||
}
|
||||
}
|
||||
# transcode all app and stream of vhost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue