* [FFmpeg-devel] [PATCH] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs @ 2021-12-23 8:11 lance.lmwang 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 1/2] " lance.lmwang 0 siblings, 1 reply; 6+ messages in thread From: lance.lmwang @ 2021-12-23 8:11 UTC (permalink / raw) To: ffmpeg-devel; +Cc: Limin Wang From: Limin Wang <lance.lmwang@gmail.com> Most of user data unregistered SEIs are privated data which defined by user/ encoder. currently, the user data unregistered SEIs found in input are forwarded as side-data to encoders directly, it'll cause the reencoded output including some useless UDU SEIs. I prefer to add one option to enable/disable it and default is off after I saw the patch by Andreas Rheinhardt: https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ How to test by cli: ./ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts ./ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts ./ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. # and mediainfo will show with wrong encoding setting info ./ffmpeg -i b.ts -vf showinfo -f null - ./ffmpeg -i c.ts -vf showinfo -f null - This fixes tickets #9500 and #9557. Signed-off-by: Limin Wang <lance.lmwang@gmail.com> --- doc/encoders.texi | 6 ++++++ libavcodec/libx264.c | 5 +++-- libavcodec/libx265.c | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 8a7589c..e3b61de 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2660,6 +2660,9 @@ ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv Import closed captions (which must be ATSC compatible format) into output. Only the mpeg2 and h264 decoders provide these. Default is 1 (on). +@item udu_sei @var{boolean} +Import user data unregistered SEI if available into output. Default is 0 (off). + @item x264-params (N.A.) Override the x264 configuration using a :-separated list of key=value parameters. @@ -2741,6 +2744,9 @@ Quantizer curve compression factor Normally, when forcing a I-frame type, the encoder can select any type of I-frame. This option forces it to choose an IDR-frame. +@item udu_sei @var{boolean} +Import user data unregistered SEI if available into output. Default is 0 (off). + @item x265-params Set x265 options using a list of @var{key}=@var{value} couples separated by ":". See @command{x265 --help} for a list of options. diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 2b680ab..bbe0517 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -104,6 +104,7 @@ typedef struct X264Context { int chroma_offset; int scenechange_threshold; int noise_reduction; + int udu_sei; AVDictionary *x264_params; @@ -468,7 +469,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, AVFrameSideData *side_data = frame->side_data[j]; void *tmp; x264_sei_payload_t *sei_payload; - if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) + if (!(x4->udu_sei && side_data->type == AV_FRAME_DATA_SEI_UNREGISTERED)) continue; tmp = av_fast_realloc(sei->payloads, &sei_data_size, (sei->num_payloads + 1) * sizeof(*sei_payload)); if (!tmp) { @@ -1168,7 +1169,7 @@ static const AVOption options[] = { { "chromaoffset", "QP difference between chroma and luma", OFFSET(chroma_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, { "noise_reduction", "Noise reduction", OFFSET(noise_reduction), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, - + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { "x264-params", "Override the x264 configuration using a :-separated list of key=value parameters", OFFSET(x264_params), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, { NULL }, }; diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 7dd70a3..39b2849 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -54,6 +54,7 @@ typedef struct libx265Context { void *sei_data; int sei_data_size; + int udu_sei; /** * If the encoder does not support ROI then warn the first time we @@ -548,7 +549,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, void *tmp; x265_sei_payload *sei_payload; - if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) + if (!(ctx->udu_sei && side_data->type == AV_FRAME_DATA_SEI_UNREGISTERED)) continue; tmp = av_fast_realloc(ctx->sei_data, @@ -708,6 +709,7 @@ static const AVOption options[] = { { "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, { "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, { "profile", "set the x265 profile", OFFSET(profile), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, { NULL } }; -- 1.8.3.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
* [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs 2021-12-23 8:11 [FFmpeg-devel] [PATCH] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang @ 2021-12-25 14:46 ` lance.lmwang 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 2/2] avcodec/libx26[45]: reindent after last commit lance.lmwang 2021-12-28 1:29 ` [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang 0 siblings, 2 replies; 6+ messages in thread From: lance.lmwang @ 2021-12-25 14:46 UTC (permalink / raw) To: ffmpeg-devel; +Cc: Limin Wang From: Limin Wang <lance.lmwang@gmail.com> Most of user data unregistered SEIs are privated data which defined by user/ encoder. currently, the user data unregistered SEIs found in input are forwarded as side-data to encoders directly, it'll cause the reencoded output including some useless UDU SEIs. I prefer to add one option to enable/disable it and default is off after I saw the patch by Andreas Rheinhardt: https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ How to test by cli: ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. # and mediainfo will show with wrong encoding setting info ffmpeg -i b.ts -vf showinfo -f null - ffmpeg -i c.ts -vf showinfo -f null - This fixes tickets #9500 and #9557. --- doc/encoders.texi | 6 ++++++ libavcodec/libx264.c | 5 ++++- libavcodec/libx265.c | 4 ++++ libavcodec/version.h | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 8a7589c..e3b61de 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -2660,6 +2660,9 @@ ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv Import closed captions (which must be ATSC compatible format) into output. Only the mpeg2 and h264 decoders provide these. Default is 1 (on). +@item udu_sei @var{boolean} +Import user data unregistered SEI if available into output. Default is 0 (off). + @item x264-params (N.A.) Override the x264 configuration using a :-separated list of key=value parameters. @@ -2741,6 +2744,9 @@ Quantizer curve compression factor Normally, when forcing a I-frame type, the encoder can select any type of I-frame. This option forces it to choose an IDR-frame. +@item udu_sei @var{boolean} +Import user data unregistered SEI if available into output. Default is 0 (off). + @item x265-params Set x265 options using a list of @var{key}=@var{value} couples separated by ":". See @command{x265 --help} for a list of options. diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 2b680ab..9836818 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -104,6 +104,7 @@ typedef struct X264Context { int chroma_offset; int scenechange_threshold; int noise_reduction; + int udu_sei; AVDictionary *x264_params; @@ -464,6 +465,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, } } + if (x4->udu_sei) { for (int j = 0; j < frame->nb_side_data; j++) { AVFrameSideData *side_data = frame->side_data[j]; void *tmp; @@ -487,6 +489,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; sei->num_payloads++; } + } } do { @@ -1168,7 +1171,7 @@ static const AVOption options[] = { { "chromaoffset", "QP difference between chroma and luma", OFFSET(chroma_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, { "noise_reduction", "Noise reduction", OFFSET(noise_reduction), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, - + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { "x264-params", "Override the x264 configuration using a :-separated list of key=value parameters", OFFSET(x264_params), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, { NULL }, }; diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 7dd70a3..47d0103 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -54,6 +54,7 @@ typedef struct libx265Context { void *sei_data; int sei_data_size; + int udu_sei; /** * If the encoder does not support ROI then warn the first time we @@ -543,6 +544,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, memcpy(x265pic.userData, &pic->reordered_opaque, sizeof(pic->reordered_opaque)); } + if (ctx->udu_sei) { for (i = 0; i < pic->nb_side_data; i++) { AVFrameSideData *side_data = pic->side_data[i]; void *tmp; @@ -568,6 +570,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; sei->numPayloads++; } + } } ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal, @@ -708,6 +711,7 @@ static const AVOption options[] = { { "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, { "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, { "profile", "set the x265 profile", OFFSET(profile), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, { "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, { NULL } }; diff --git a/libavcodec/version.h b/libavcodec/version.h index 580b099..45c6d13 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,7 +29,7 @@ #define LIBAVCODEC_VERSION_MAJOR 59 #define LIBAVCODEC_VERSION_MINOR 15 -#define LIBAVCODEC_VERSION_MICRO 101 +#define LIBAVCODEC_VERSION_MICRO 102 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ LIBAVCODEC_VERSION_MINOR, \ -- 1.8.3.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
* [FFmpeg-devel] [PATCH v2 2/2] avcodec/libx26[45]: reindent after last commit 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 1/2] " lance.lmwang @ 2021-12-25 14:46 ` lance.lmwang 2021-12-28 1:29 ` [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang 1 sibling, 0 replies; 6+ messages in thread From: lance.lmwang @ 2021-12-25 14:46 UTC (permalink / raw) To: ffmpeg-devel; +Cc: Limin Wang From: Limin Wang <lance.lmwang@gmail.com> --- libavcodec/libx264.c | 44 ++++++++++++++++++++++---------------------- libavcodec/libx265.c | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 9836818..c5e0231 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -466,29 +466,29 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, } if (x4->udu_sei) { - for (int j = 0; j < frame->nb_side_data; j++) { - AVFrameSideData *side_data = frame->side_data[j]; - void *tmp; - x264_sei_payload_t *sei_payload; - if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) - continue; - tmp = av_fast_realloc(sei->payloads, &sei_data_size, (sei->num_payloads + 1) * sizeof(*sei_payload)); - if (!tmp) { - free_picture(ctx); - return AVERROR(ENOMEM); - } - sei->payloads = tmp; - sei->sei_free = av_free; - sei_payload = &sei->payloads[sei->num_payloads]; - sei_payload->payload = av_memdup(side_data->data, side_data->size); - if (!sei_payload->payload) { - free_picture(ctx); - return AVERROR(ENOMEM); + for (int j = 0; j < frame->nb_side_data; j++) { + AVFrameSideData *side_data = frame->side_data[j]; + void *tmp; + x264_sei_payload_t *sei_payload; + if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) + continue; + tmp = av_fast_realloc(sei->payloads, &sei_data_size, (sei->num_payloads + 1) * sizeof(*sei_payload)); + if (!tmp) { + free_picture(ctx); + return AVERROR(ENOMEM); + } + sei->payloads = tmp; + sei->sei_free = av_free; + sei_payload = &sei->payloads[sei->num_payloads]; + sei_payload->payload = av_memdup(side_data->data, side_data->size); + if (!sei_payload->payload) { + free_picture(ctx); + return AVERROR(ENOMEM); + } + sei_payload->payload_size = side_data->size; + sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; + sei->num_payloads++; } - sei_payload->payload_size = side_data->size; - sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; - sei->num_payloads++; - } } } diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 47d0103..851f099 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -545,31 +545,31 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } if (ctx->udu_sei) { - for (i = 0; i < pic->nb_side_data; i++) { - AVFrameSideData *side_data = pic->side_data[i]; - void *tmp; - x265_sei_payload *sei_payload; - - if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) - continue; - - tmp = av_fast_realloc(ctx->sei_data, - &ctx->sei_data_size, - (sei->numPayloads + 1) * sizeof(*sei_payload)); - if (!tmp) { - av_freep(&x265pic.userData); - av_freep(&x265pic.quantOffsets); - return AVERROR(ENOMEM); + for (i = 0; i < pic->nb_side_data; i++) { + AVFrameSideData *side_data = pic->side_data[i]; + void *tmp; + x265_sei_payload *sei_payload; + + if (side_data->type != AV_FRAME_DATA_SEI_UNREGISTERED) + continue; + + tmp = av_fast_realloc(ctx->sei_data, + &ctx->sei_data_size, + (sei->numPayloads + 1) * sizeof(*sei_payload)); + if (!tmp) { + av_freep(&x265pic.userData); + av_freep(&x265pic.quantOffsets); + return AVERROR(ENOMEM); + } + ctx->sei_data = tmp; + sei->payloads = ctx->sei_data; + sei_payload = &sei->payloads[sei->numPayloads]; + sei_payload->payload = side_data->data; + sei_payload->payloadSize = side_data->size; + /* Equal to libx265 USER_DATA_UNREGISTERED */ + sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; + sei->numPayloads++; } - ctx->sei_data = tmp; - sei->payloads = ctx->sei_data; - sei_payload = &sei->payloads[sei->numPayloads]; - sei_payload->payload = side_data->data; - sei_payload->payloadSize = side_data->size; - /* Equal to libx265 USER_DATA_UNREGISTERED */ - sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; - sei->numPayloads++; - } } } -- 1.8.3.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 1/2] " lance.lmwang 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 2/2] avcodec/libx26[45]: reindent after last commit lance.lmwang @ 2021-12-28 1:29 ` lance.lmwang 2021-12-28 2:12 ` "zhilizhao(赵志立)" 1 sibling, 1 reply; 6+ messages in thread From: lance.lmwang @ 2021-12-28 1:29 UTC (permalink / raw) To: ffmpeg-devel On Sat, Dec 25, 2021 at 10:46:52PM +0800, lance.lmwang@gmail.com wrote: > From: Limin Wang <lance.lmwang@gmail.com> > > Most of user data unregistered SEIs are privated data which defined by user/ > encoder. currently, the user data unregistered SEIs found in input are forwarded > as side-data to encoders directly, it'll cause the reencoded output including some > useless UDU SEIs. > > I prefer to add one option to enable/disable it and default is off after I saw > the patch by Andreas Rheinhardt: > > https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ > > How to test by cli: > ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts > ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts > ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts > > # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. > # and mediainfo will show with wrong encoding setting info > ffmpeg -i b.ts -vf showinfo -f null - > ffmpeg -i c.ts -vf showinfo -f null - > > This fixes tickets #9500 and #9557. > --- > doc/encoders.texi | 6 ++++++ > libavcodec/libx264.c | 5 ++++- > libavcodec/libx265.c | 4 ++++ > libavcodec/version.h | 2 +- > 4 files changed, 15 insertions(+), 2 deletions(-) > > diff --git a/doc/encoders.texi b/doc/encoders.texi > index 8a7589c..e3b61de 100644 > --- a/doc/encoders.texi > +++ b/doc/encoders.texi > @@ -2660,6 +2660,9 @@ ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv > Import closed captions (which must be ATSC compatible format) into output. > Only the mpeg2 and h264 decoders provide these. Default is 1 (on). > > +@item udu_sei @var{boolean} > +Import user data unregistered SEI if available into output. Default is 0 (off). > + > @item x264-params (N.A.) > Override the x264 configuration using a :-separated list of key=value > parameters. > @@ -2741,6 +2744,9 @@ Quantizer curve compression factor > Normally, when forcing a I-frame type, the encoder can select any type > of I-frame. This option forces it to choose an IDR-frame. > > +@item udu_sei @var{boolean} > +Import user data unregistered SEI if available into output. Default is 0 (off). > + > @item x265-params > Set x265 options using a list of @var{key}=@var{value} couples separated > by ":". See @command{x265 --help} for a list of options. > diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c > index 2b680ab..9836818 100644 > --- a/libavcodec/libx264.c > +++ b/libavcodec/libx264.c > @@ -104,6 +104,7 @@ typedef struct X264Context { > int chroma_offset; > int scenechange_threshold; > int noise_reduction; > + int udu_sei; > > AVDictionary *x264_params; > > @@ -464,6 +465,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, > } > } > > + if (x4->udu_sei) { > for (int j = 0; j < frame->nb_side_data; j++) { > AVFrameSideData *side_data = frame->side_data[j]; > void *tmp; > @@ -487,6 +489,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, > sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; > sei->num_payloads++; > } > + } > } > > do { > @@ -1168,7 +1171,7 @@ static const AVOption options[] = { > { "chromaoffset", "QP difference between chroma and luma", OFFSET(chroma_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, > { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, > { "noise_reduction", "Noise reduction", OFFSET(noise_reduction), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, > - > + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, > { "x264-params", "Override the x264 configuration using a :-separated list of key=value parameters", OFFSET(x264_params), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, > { NULL }, > }; > diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c > index 7dd70a3..47d0103 100644 > --- a/libavcodec/libx265.c > +++ b/libavcodec/libx265.c > @@ -54,6 +54,7 @@ typedef struct libx265Context { > > void *sei_data; > int sei_data_size; > + int udu_sei; > > /** > * If the encoder does not support ROI then warn the first time we > @@ -543,6 +544,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, > memcpy(x265pic.userData, &pic->reordered_opaque, sizeof(pic->reordered_opaque)); > } > > + if (ctx->udu_sei) { > for (i = 0; i < pic->nb_side_data; i++) { > AVFrameSideData *side_data = pic->side_data[i]; > void *tmp; > @@ -568,6 +570,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, > sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; > sei->numPayloads++; > } > + } > } > > ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal, > @@ -708,6 +711,7 @@ static const AVOption options[] = { > { "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > { "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > { "profile", "set the x265 profile", OFFSET(profile), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, > { "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, > { NULL } > }; > diff --git a/libavcodec/version.h b/libavcodec/version.h > index 580b099..45c6d13 100644 > --- a/libavcodec/version.h > +++ b/libavcodec/version.h > @@ -29,7 +29,7 @@ > > #define LIBAVCODEC_VERSION_MAJOR 59 > #define LIBAVCODEC_VERSION_MINOR 15 > -#define LIBAVCODEC_VERSION_MICRO 101 > +#define LIBAVCODEC_VERSION_MICRO 102 > > #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ > LIBAVCODEC_VERSION_MINOR, \ > -- > 1.8.3.1 > plan to apply tomorrow unless there are objections. -- Thanks, Limin Wang _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs 2021-12-28 1:29 ` [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang @ 2021-12-28 2:12 ` "zhilizhao(赵志立)" 2021-12-28 10:39 ` lance.lmwang 0 siblings, 1 reply; 6+ messages in thread From: "zhilizhao(赵志立)" @ 2021-12-28 2:12 UTC (permalink / raw) To: FFmpeg development discussions and patches > On Dec 28, 2021, at 9:29 AM, lance.lmwang@gmail.com wrote: > > On Sat, Dec 25, 2021 at 10:46:52PM +0800, lance.lmwang@gmail.com wrote: >> From: Limin Wang <lance.lmwang@gmail.com> >> >> Most of user data unregistered SEIs are privated data which defined by user/ >> encoder. currently, the user data unregistered SEIs found in input are forwarded >> as side-data to encoders directly, it'll cause the reencoded output including some >> useless UDU SEIs. >> >> I prefer to add one option to enable/disable it and default is off after I saw >> the patch by Andreas Rheinhardt: >> >> https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ >> >> How to test by cli: >> ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts >> ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts >> ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts >> >> # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. >> # and mediainfo will show with wrong encoding setting info >> ffmpeg -i b.ts -vf showinfo -f null - >> ffmpeg -i c.ts -vf showinfo -f null - >> >> This fixes tickets #9500 and #9557. >> --- >> doc/encoders.texi | 6 ++++++ >> libavcodec/libx264.c | 5 ++++- >> libavcodec/libx265.c | 4 ++++ >> libavcodec/version.h | 2 +- >> 4 files changed, 15 insertions(+), 2 deletions(-) >> >> diff --git a/doc/encoders.texi b/doc/encoders.texi >> index 8a7589c..e3b61de 100644 >> --- a/doc/encoders.texi >> +++ b/doc/encoders.texi >> @@ -2660,6 +2660,9 @@ ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv >> Import closed captions (which must be ATSC compatible format) into output. >> Only the mpeg2 and h264 decoders provide these. Default is 1 (on). >> >> +@item udu_sei @var{boolean} >> +Import user data unregistered SEI if available into output. Default is 0 (off). >> + >> @item x264-params (N.A.) >> Override the x264 configuration using a :-separated list of key=value >> parameters. >> @@ -2741,6 +2744,9 @@ Quantizer curve compression factor >> Normally, when forcing a I-frame type, the encoder can select any type >> of I-frame. This option forces it to choose an IDR-frame. >> >> +@item udu_sei @var{boolean} >> +Import user data unregistered SEI if available into output. Default is 0 (off). >> + >> @item x265-params >> Set x265 options using a list of @var{key}=@var{value} couples separated >> by ":". See @command{x265 --help} for a list of options. >> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c >> index 2b680ab..9836818 100644 >> --- a/libavcodec/libx264.c >> +++ b/libavcodec/libx264.c >> @@ -104,6 +104,7 @@ typedef struct X264Context { >> int chroma_offset; >> int scenechange_threshold; >> int noise_reduction; >> + int udu_sei; >> >> AVDictionary *x264_params; >> >> @@ -464,6 +465,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, >> } >> } >> >> + if (x4->udu_sei) { >> for (int j = 0; j < frame->nb_side_data; j++) { >> AVFrameSideData *side_data = frame->side_data[j]; >> void *tmp; >> @@ -487,6 +489,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, >> sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; >> sei->num_payloads++; >> } >> + } >> } >> >> do { >> @@ -1168,7 +1171,7 @@ static const AVOption options[] = { >> { "chromaoffset", "QP difference between chroma and luma", OFFSET(chroma_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, >> { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, >> { "noise_reduction", "Noise reduction", OFFSET(noise_reduction), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, >> - >> + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, >> { "x264-params", "Override the x264 configuration using a :-separated list of key=value parameters", OFFSET(x264_params), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, >> { NULL }, >> }; >> diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c >> index 7dd70a3..47d0103 100644 >> --- a/libavcodec/libx265.c >> +++ b/libavcodec/libx265.c >> @@ -54,6 +54,7 @@ typedef struct libx265Context { >> >> void *sei_data; >> int sei_data_size; >> + int udu_sei; >> >> /** >> * If the encoder does not support ROI then warn the first time we >> @@ -543,6 +544,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, >> memcpy(x265pic.userData, &pic->reordered_opaque, sizeof(pic->reordered_opaque)); >> } >> >> + if (ctx->udu_sei) { >> for (i = 0; i < pic->nb_side_data; i++) { >> AVFrameSideData *side_data = pic->side_data[i]; >> void *tmp; >> @@ -568,6 +570,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, >> sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; >> sei->numPayloads++; >> } >> + } >> } >> >> ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal, >> @@ -708,6 +711,7 @@ static const AVOption options[] = { >> { "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, >> { "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, >> { "profile", "set the x265 profile", OFFSET(profile), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, >> + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, >> { "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, >> { NULL } >> }; >> diff --git a/libavcodec/version.h b/libavcodec/version.h >> index 580b099..45c6d13 100644 >> --- a/libavcodec/version.h >> +++ b/libavcodec/version.h >> @@ -29,7 +29,7 @@ >> >> #define LIBAVCODEC_VERSION_MAJOR 59 >> #define LIBAVCODEC_VERSION_MINOR 15 >> -#define LIBAVCODEC_VERSION_MICRO 101 >> +#define LIBAVCODEC_VERSION_MICRO 102 >> >> #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ >> LIBAVCODEC_VERSION_MINOR, \ >> -- >> 1.8.3.1 >> > > plan to apply tomorrow unless there are objections. LGTM. Since a lot people are enjoying their vacation, maybe waiting a few more days. > > > -- > Thanks, > Limin Wang > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs 2021-12-28 2:12 ` "zhilizhao(赵志立)" @ 2021-12-28 10:39 ` lance.lmwang 0 siblings, 0 replies; 6+ messages in thread From: lance.lmwang @ 2021-12-28 10:39 UTC (permalink / raw) To: ffmpeg-devel On Tue, Dec 28, 2021 at 10:12:43AM +0800, "zhilizhao(赵志立)" wrote: > > > > On Dec 28, 2021, at 9:29 AM, lance.lmwang@gmail.com wrote: > > > > On Sat, Dec 25, 2021 at 10:46:52PM +0800, lance.lmwang@gmail.com wrote: > >> From: Limin Wang <lance.lmwang@gmail.com> > >> > >> Most of user data unregistered SEIs are privated data which defined by user/ > >> encoder. currently, the user data unregistered SEIs found in input are forwarded > >> as side-data to encoders directly, it'll cause the reencoded output including some > >> useless UDU SEIs. > >> > >> I prefer to add one option to enable/disable it and default is off after I saw > >> the patch by Andreas Rheinhardt: > >> > >> https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ > >> > >> How to test by cli: > >> ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts > >> ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts > >> ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts > >> > >> # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. > >> # and mediainfo will show with wrong encoding setting info > >> ffmpeg -i b.ts -vf showinfo -f null - > >> ffmpeg -i c.ts -vf showinfo -f null - > >> > >> This fixes tickets #9500 and #9557. > >> --- > >> doc/encoders.texi | 6 ++++++ > >> libavcodec/libx264.c | 5 ++++- > >> libavcodec/libx265.c | 4 ++++ > >> libavcodec/version.h | 2 +- > >> 4 files changed, 15 insertions(+), 2 deletions(-) > >> > >> diff --git a/doc/encoders.texi b/doc/encoders.texi > >> index 8a7589c..e3b61de 100644 > >> --- a/doc/encoders.texi > >> +++ b/doc/encoders.texi > >> @@ -2660,6 +2660,9 @@ ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv > >> Import closed captions (which must be ATSC compatible format) into output. > >> Only the mpeg2 and h264 decoders provide these. Default is 1 (on). > >> > >> +@item udu_sei @var{boolean} > >> +Import user data unregistered SEI if available into output. Default is 0 (off). > >> + > >> @item x264-params (N.A.) > >> Override the x264 configuration using a :-separated list of key=value > >> parameters. > >> @@ -2741,6 +2744,9 @@ Quantizer curve compression factor > >> Normally, when forcing a I-frame type, the encoder can select any type > >> of I-frame. This option forces it to choose an IDR-frame. > >> > >> +@item udu_sei @var{boolean} > >> +Import user data unregistered SEI if available into output. Default is 0 (off). > >> + > >> @item x265-params > >> Set x265 options using a list of @var{key}=@var{value} couples separated > >> by ":". See @command{x265 --help} for a list of options. > >> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c > >> index 2b680ab..9836818 100644 > >> --- a/libavcodec/libx264.c > >> +++ b/libavcodec/libx264.c > >> @@ -104,6 +104,7 @@ typedef struct X264Context { > >> int chroma_offset; > >> int scenechange_threshold; > >> int noise_reduction; > >> + int udu_sei; > >> > >> AVDictionary *x264_params; > >> > >> @@ -464,6 +465,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, > >> } > >> } > >> > >> + if (x4->udu_sei) { > >> for (int j = 0; j < frame->nb_side_data; j++) { > >> AVFrameSideData *side_data = frame->side_data[j]; > >> void *tmp; > >> @@ -487,6 +489,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, > >> sei_payload->payload_type = SEI_TYPE_USER_DATA_UNREGISTERED; > >> sei->num_payloads++; > >> } > >> + } > >> } > >> > >> do { > >> @@ -1168,7 +1171,7 @@ static const AVOption options[] = { > >> { "chromaoffset", "QP difference between chroma and luma", OFFSET(chroma_offset), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, VE }, > >> { "sc_threshold", "Scene change threshold", OFFSET(scenechange_threshold), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, > >> { "noise_reduction", "Noise reduction", OFFSET(noise_reduction), AV_OPT_TYPE_INT, { .i64 = -1 }, INT_MIN, INT_MAX, VE }, > >> - > >> + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, > >> { "x264-params", "Override the x264 configuration using a :-separated list of key=value parameters", OFFSET(x264_params), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, > >> { NULL }, > >> }; > >> diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c > >> index 7dd70a3..47d0103 100644 > >> --- a/libavcodec/libx265.c > >> +++ b/libavcodec/libx265.c > >> @@ -54,6 +54,7 @@ typedef struct libx265Context { > >> > >> void *sei_data; > >> int sei_data_size; > >> + int udu_sei; > >> > >> /** > >> * If the encoder does not support ROI then warn the first time we > >> @@ -543,6 +544,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, > >> memcpy(x265pic.userData, &pic->reordered_opaque, sizeof(pic->reordered_opaque)); > >> } > >> > >> + if (ctx->udu_sei) { > >> for (i = 0; i < pic->nb_side_data; i++) { > >> AVFrameSideData *side_data = pic->side_data[i]; > >> void *tmp; > >> @@ -568,6 +570,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, > >> sei_payload->payloadType = SEI_TYPE_USER_DATA_UNREGISTERED; > >> sei->numPayloads++; > >> } > >> + } > >> } > >> > >> ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal, > >> @@ -708,6 +711,7 @@ static const AVOption options[] = { > >> { "preset", "set the x265 preset", OFFSET(preset), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > >> { "tune", "set the x265 tune parameter", OFFSET(tune), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > >> { "profile", "set the x265 profile", OFFSET(profile), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, > >> + { "udu_sei", "Use user data unregistered SEI if available", OFFSET(udu_sei), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, > >> { "x265-params", "set the x265 configuration using a :-separated list of key=value parameters", OFFSET(x265_opts), AV_OPT_TYPE_DICT, { 0 }, 0, 0, VE }, > >> { NULL } > >> }; > >> diff --git a/libavcodec/version.h b/libavcodec/version.h > >> index 580b099..45c6d13 100644 > >> --- a/libavcodec/version.h > >> +++ b/libavcodec/version.h > >> @@ -29,7 +29,7 @@ > >> > >> #define LIBAVCODEC_VERSION_MAJOR 59 > >> #define LIBAVCODEC_VERSION_MINOR 15 > >> -#define LIBAVCODEC_VERSION_MICRO 101 > >> +#define LIBAVCODEC_VERSION_MICRO 102 > >> > >> #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ > >> LIBAVCODEC_VERSION_MINOR, \ > >> -- > >> 1.8.3.1 > >> > > > > plan to apply tomorrow unless there are objections. > > LGTM. Since a lot people are enjoying their vacation, maybe waiting a few more days. thanks for review, will apply. > > > > > > > -- > > Thanks, > > Limin Wang > > _______________________________________________ > > ffmpeg-devel mailing list > > ffmpeg-devel@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > > > To unsubscribe, visit link above, or email > > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". -- Thanks, Limin Wang _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-28 10:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-12-23 8:11 [FFmpeg-devel] [PATCH] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 1/2] " lance.lmwang 2021-12-25 14:46 ` [FFmpeg-devel] [PATCH v2 2/2] avcodec/libx26[45]: reindent after last commit lance.lmwang 2021-12-28 1:29 ` [FFmpeg-devel] [PATCH v2 1/2] avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIs lance.lmwang 2021-12-28 2:12 ` "zhilizhao(赵志立)" 2021-12-28 10:39 ` lance.lmwang
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git