From df0229a7caa124dcfb84c34b48d316744c467311 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 27 Feb 2013 23:22:39 +0200 Subject: avconv: Apply codec options to streams that are copied as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows setting/overriding e.g. the bitrate parameter, which is required for the smoothstreaming muxer. Normally, the bitrate is set by the demuxer in these cases, but not all demuxers can provide it. This allows stream copy of data to the smoothstreaming muxer from such inputs. Signed-off-by: Martin Storsjö --- avconv_opt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'avconv_opt.c') diff --git a/avconv_opt.c b/avconv_opt.c index 2a40087708..7c58f49e3b 100644 --- a/avconv_opt.c +++ b/avconv_opt.c @@ -800,6 +800,8 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e preset, ost->file_index, ost->index); exit(1); } + } else { + ost->opts = filter_codec_opts(o->g->codec_opts, AV_CODEC_ID_NONE, oc, st, NULL); } avcodec_get_context_defaults3(st->codec, ost->enc); -- cgit v1.2.3