winlin

update readme

@@ -43,6 +43,8 @@ step 6: play live stream auto transcoded<br/> @@ -43,6 +43,8 @@ step 6: play live stream auto transcoded<br/>
43 <pre> 43 <pre>
44 rtmp url: rtmp://127.0.0.1:1935/live/livestream_fast 44 rtmp url: rtmp://127.0.0.1:1935/live/livestream_fast
45 m3u8 url: http://127.0.0.1:80/live/livestream_fast.m3u8 45 m3u8 url: http://127.0.0.1:80/live/livestream_fast.m3u8
  46 +rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd
  47 +m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8
46 </pre> 48 </pre>
47 49
48 ### System Requirements 50 ### System Requirements
@@ -20,14 +20,14 @@ vhost __defaultVhost__ { @@ -20,14 +20,14 @@ vhost __defaultVhost__ {
20 enabled on; 20 enabled on;
21 ffmpeg ./objs/ffmpeg/bin/ffmpeg; 21 ffmpeg ./objs/ffmpeg/bin/ffmpeg;
22 #ffmpeg ./research/ffempty/ffempty; 22 #ffmpeg ./research/ffempty/ffempty;
23 - engine fd{ 23 + engine fast{
24 enabled on; 24 enabled on;
25 vcodec libx264; 25 vcodec libx264;
26 vbitrate 300; 26 vbitrate 300;
27 vfps 20; 27 vfps 20;
28 vwidth 480; 28 vwidth 480;
29 vheight 320; 29 vheight 320;
30 - vthreads 2; 30 + vthreads 1;
31 vprofile baseline; 31 vprofile baseline;
32 vpreset superfast; 32 vpreset superfast;
33 vparams { 33 vparams {
@@ -40,6 +40,26 @@ vhost __defaultVhost__ { @@ -40,6 +40,26 @@ vhost __defaultVhost__ {
40 } 40 }
41 output rtmp://[vhost]:[port]/[app]/[stream]_fast; 41 output rtmp://[vhost]:[port]/[app]/[stream]_fast;
42 } 42 }
  43 + engine sd{
  44 + enabled on;
  45 + vcodec libx264;
  46 + vbitrate 500;
  47 + vfps 20;
  48 + vwidth 720;
  49 + vheight 480;
  50 + vthreads 1;
  51 + vprofile main;
  52 + vpreset fast;
  53 + vparams {
  54 + }
  55 + acodec libaacplus;
  56 + abitrate 40;
  57 + asample_rate 44100;
  58 + achannels 2;
  59 + aparams {
  60 + }
  61 + output rtmp://[vhost]:[port]/[app]/[stream]_sd;
  62 + }
43 } 63 }
44 } 64 }
45 # transcode all app and stream of vhost 65 # transcode all app and stream of vhost