1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

support ffmpeg filter

This commit is contained in:
winlin 2013-12-01 10:55:06 +08:00
parent 9a0d8855d8
commit a7c83b1aee

View file

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