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

support live stream transcoding by ffmpeg.

This commit is contained in:
winlin 2013-11-30 23:04:47 +08:00
parent ee18b9f537
commit 525af4599f
6 changed files with 145 additions and 26 deletions

View file

@ -18,7 +18,8 @@ vhost __defaultVhost__ {
#forward 127.0.0.1:1936;
transcode {
enabled on;
ffmpeg /home/winlin/srs/objs/ffmpeg/bin/ffmpeg;
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
#ffmpeg ./research/ffempty/ffempty;
engine fd{
enabled on;
vcodec libx264;
@ -29,12 +30,14 @@ vhost __defaultVhost__ {
vthreads 2;
vprofile baseline;
vpreset superfast;
vparams {}
vparams {
}
acodec libaacplus;
abitrate 30;
asample_rate 22050;
asample_rate 44100;
achannels 2;
aparams {}
aparams {
}
output rtmp://[vhost]:[port]/[app]/[stream]_fast;
}
}
@ -151,7 +154,34 @@ vhost all.transcode.vhost.com {
}
acodec libaacplus;
abitrate 30;
asample_rate 22050;
asample_rate 44100;
achannels 2;
aparams {
}
output rtmp://[vhost]:[port]/[app]/[stream]_fast;
}
}
}
# transcode all stream using the empty ffmpeg demo, donothing.
vhost ffempty.transcode.vhost.com {
transcode {
enabled on;
ffmpeg ./research/ffempty/ffempty;
engine fd{
enabled on;
vcodec libx264;
vbitrate 300;
vfps 20;
vwidth 480;
vheight 320;
vthreads 2;
vprofile baseline;
vpreset superfast;
vparams {
}
acodec libaacplus;
abitrate 30;
asample_rate 44100;
achannels 2;
aparams {
}