Hi. I just saw that "ffmpeg --help encoder=ffv1 full" only lists the "slicecrc" parameter option. I'd like to add the other options to the help as well.
The attached patch adds explanation for "-coder". I've read up on AVOption Struct Reference [1] and read other source files, but the usage of some arguments (offset, flags, unit) is not clear to me. Feedback on my patch, as well as hints towards documentation about adding AVOptions greatly appreciated :) Thanks in advance, Pb == References: [1] http://ffmpeg.org/doxygen/trunk/structAVOption.html
>From d51af4c272d3573f4c4c94dcfe93c7c45e9d7e36 Mon Sep 17 00:00:00 2001 From: Peter B <p...@das-werkstatt.com> Date: Sun, 13 Sep 2015 19:04:20 +0200 Subject: [PATCH] Adding ffv1 help reference for "coder" parameter. --- 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 } }; -- 1.7.9.5
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel