winlin

support ffmpeg filter

@@ -23,10 +23,10 @@ vhost __defaultVhost__ { @@ -23,10 +23,10 @@ vhost __defaultVhost__ {
23 engine fast{ 23 engine fast{
24 enabled on; 24 enabled on;
25 vfilter { 25 vfilter {
26 - vf 'drawtext=text=SRS'; 26 + #vf 'drawtext=text=SRS';
27 #vf 'crop=in_w-20:in_h-160:10:80'; 27 #vf 'crop=in_w-20:in_h-160:10:80';
28 - #i ./doc/ffmpeg-logo.png;  
29 - #filter_complex 'overlay=10:10'; 28 + i ./doc/ffmpeg-logo.png;
  29 + filter_complex 'overlay=10:10';
30 } 30 }
31 vcodec libx264; 31 vcodec libx264;
32 vbitrate 300; 32 vbitrate 300;
@@ -48,7 +48,7 @@ vhost __defaultVhost__ { @@ -48,7 +48,7 @@ vhost __defaultVhost__ {
48 output rtmp://[vhost]:[port]/[app]/[stream]_fast; 48 output rtmp://[vhost]:[port]/[app]/[stream]_fast;
49 } 49 }
50 engine sd{ 50 engine sd{
51 - enabled off; 51 + enabled on;
52 vfilter { 52 vfilter {
53 vf 'split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2'; 53 vf 'split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2';
54 } 54 }