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

fix #119: use iformat and oformat for ffmpeg transcode.

This commit is contained in:
winlin 2014-07-19 10:54:38 +08:00
parent 2f0a72d7d1
commit 9bf7b722db
5 changed files with 61 additions and 5 deletions

View file

@ -649,6 +649,12 @@ vhost all.transcode.srs.com {
# whether the engine is enabled
# default: off.
enabled on;
# input format, can be:
# off, do not specifies the format, ffmpeg will guess it.
# flv, for flv or RTMP stream.
# other format, for example, mp4/aac whatever.
# default: flv
iformat flv;
# ffmpeg filters, follows the main input.
vfilter {
# the logo input file.
@ -706,6 +712,12 @@ vhost all.transcode.srs.com {
# audio params, @see: http://ffmpeg.org/ffmpeg-codecs.html#Audio-Encoders
profile:a aac_low;
}
# output format, can be:
# off, do not specifies the format, ffmpeg will guess it.
# flv, for flv or RTMP stream.
# other format, for example, mp4/aac whatever.
# default: flv
oformat flv;
# output stream. variables:
# [vhost] the input stream vhost.
# [port] the intput stream port.