[FFmpeg-devel] [PATCH] Adding ffv1 help reference for "coder" parameter.
Tobias Rapp
t.rapp at noa-archive.com
Mon Sep 14 11:00:02 CEST 2015
On 13.09.2015 19:13, Peter B. wrote:
> libavcodec/ffv1enc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
> index 265ced1..d210692 100644
> --- a/libavcodec/ffv1enc.c
> +++ b/libavcodec/ffv1enc.c
> @@ -1345,6 +1345,7 @@ static av_cold int encode_close(AVCodecContext *avctx)
> #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
> static const AVOption options[] = {
> { "slicecrc", "Protect slices with CRCs", OFFSET(ec), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE },
> + { "coder", "Coder used: 0 (Golomb Rice), 1 (Range coder), 2 (Range coder with custom state transition table)", OFFSET(ac), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE },
> { NULL }
> };
I guess this won't work. From a brief look at encode_init() in ffv1enc.c
it seems that the ac value is derived from AVCodecContext->coder_type so
the "coder" doc would be found in the global codec options:
http://ffmpeg.org/ffmpeg-codecs.html#Codec-Options
Regards,
Tobias
More information about the ffmpeg-devel
mailing list