[FFmpeg-devel] [PATCH] avfilter/framesync: fix forward EOF pts

2024-05-21 Thread Nicolas Gaullier
Note1: when the EOF pts is not accurate enough, the last frame can be dropped by vf_fps with default rounding. Note2: vf_scale use framesync since e82a3997cdd6c0894869b33ba42430ac3, so this is a very commonplace scenario. For example: ./ffprobe -f lavfi testsrc=d=1,scale,fps -of flat \ -count_f

Re: [FFmpeg-devel] [PATCH] avfilter/framesync: fix forward EOF pts

2024-05-23 Thread Nicolas Gaullier
>Envoyé : mardi 21 mai 2024 21:39 > >Note1: when the EOF pts is not accurate enough, the last frame can be dropped >by vf_fps with default rounding. > >Note2: vf_scale use framesync since e82a3997cdd6c0894869b33ba42430ac3, >so this is a very commonplace scenario. > >For example: >./ffprobe -f lavf

Re: [FFmpeg-devel] [PATCH v3 0/1] avformat/demux: fix accurate probing of durations in mpegts/ps

2024-05-24 Thread Nicolas Gaullier
Objet : Re: [FFmpeg-devel] [PATCH v3 0/1] avformat/demux: fix accurate >>probing of durations in mpegts/ps >> >>>De : Nicolas Gaullier Envoyé : mardi 2 >>>avril 2024 23:26 Objet : [PATCH v3 0/1] avformat/demux: fix accurate >>>probing of durations in

Re: [FFmpeg-devel] [PATCH 0/1] avcodec/h264_parser: fix start of packet for some broken

2024-05-24 Thread Nicolas Gaullier
se this simple command line and then compare the xml, it seems quite clear: >ffprobe xxx.ts -show_packets -show_data -print_format xml > >Nicolas Gaullier (1): > avcodec/h264_parser: fix start of packet for some broken streams > > libavcodec/h264_parser.c | 11 ++- > 1 file cha

[FFmpeg-devel] [PATCH 0/1] avfilter/framesync: fix forward EOF pts

2024-05-28 Thread Nicolas Gaullier
This a new ping but I post the patch again to get fate cleanly completed on patchwork. BTW, the initial design of framesync/EOF was in n3.4-dev-1799-g4e0e9ce2dc, so one can say that time has past... Thank you in advance for the review. Nicolas Nicolas Gaullier (1): avfilter/framesync: fix

[FFmpeg-devel] [PATCH 1/1] avfilter/framesync: fix forward EOF pts

2024-05-28 Thread Nicolas Gaullier
Note1: when the EOF pts is not accurate enough, the last frame can be dropped by vf_fps with default rounding. Note2: vf_scale use framesync since e82a3997cdd6c0894869b33ba42430ac3, so this is a very commonplace scenario. For example: ./ffprobe -f lavfi testsrc=d=1,scale,fps -of flat \ -count_f

Re: [FFmpeg-devel] [PATCH 0/1] avfilter/framesync: fix forward EOF pts

2024-06-03 Thread Nicolas Gaullier
>Envoyé : mardi 28 mai 2024 11:11 > >This a new ping but I post the patch again to get fate cleanly completed on >patchwork. >BTW, the initial design of framesync/EOF was in n3.4-dev-1799-g4e0e9ce2dc, so >one can say that time has past... > >Thank you in advance for the review. >Nicolas Another

Re: [FFmpeg-devel] [PATCH 0/1] avfilter/framesync: fix forward EOF pts

2024-06-14 Thread Nicolas Gaullier
>Envoyé : lundi 3 juin 2024 12:00 >>Envoyé : mardi 28 mai 2024 11:11 >> >>This a new ping but I post the patch again to get fate cleanly completed on >>patchwork. >>BTW, the initial design of framesync/EOF was in n3.4-dev-1799-g4e0e9ce2dc, so >>one can say that time has past... >> >>Thank you in

[FFmpeg-devel] [PATCH 0/1] avformat: Add probe_streams option

2021-10-04 Thread Nicolas Gaullier
... thank you for your feedbacks... Nicolas Gaullier (1): avformat: Add probe_streams option doc/formats.texi| 3 +++ libavformat/avformat.h | 9 + libavformat/mpeg.c | 5 +++-- libavformat/mpegts.c| 10 ++ libavformat/options_table.h | 1

[FFmpeg-devel] [PATCH 1/1] avformat: Add probe_streams option

2021-10-04 Thread Nicolas Gaullier
Allow user to disable codec probing: - spdif (and s337m incl. s-adm in the future) is not sub-demuxed and may pass-through to a muxer - disable any stream probing in wav files (dts detection). - mpeg-ts files missing PAT/PMT are considered invalid. Signed-off-by: Nicolas Gaullier --- doc

[FFmpeg-devel] [PATCH v2 0/1] Add-probe_streams-option

2021-10-05 Thread Nicolas Gaullier
This V2 is just a rebase. See my post yesterday for details. Nicolas Gaullier (1): avformat: Add probe_streams option doc/formats.texi| 3 +++ libavformat/avformat.h | 9 + libavformat/mpeg.c | 5 +++-- libavformat/mpegts.c| 10

[FFmpeg-devel] [PATCH v2 1/1] avformat: Add probe_streams option

2021-10-05 Thread Nicolas Gaullier
Allow user to disable codec probing: - spdif (and s337m incl. s-adm in the future) is not sub-demuxed and may pass-through to a muxer - disable any stream probing in wav files (dts detection). - mpeg-ts files missing PAT/PMT are considered invalid. Signed-off-by: Nicolas Gaullier --- doc

[FFmpeg-devel] [PATCH v3 1/1] avformat: Add probe_streams option

2021-10-12 Thread Nicolas Gaullier
Allow user to disable codec probing: - spdif (and s337m incl. s-adm in the future) is not sub-demuxed and may pass-through to a muxer - disable any stream probing in wav files (dts detection). - mpeg-ts files missing PAT/PMT are considered invalid. Signed-off-by: Nicolas Gaullier --- doc

[FFmpeg-devel] [PATCH v3 0/1] Add-probe_streams-option

2021-10-12 Thread Nicolas Gaullier
. I am surprised there was no reaction to this patch: there is for sure things to discuss about what is a proposal for now. This patch is required for me before rolling out my patch serie for s337m support in WAV files. (This v3 is just a rebased version) Thank you! Nicolas Nicolas Gaullier

Re: [FFmpeg-devel] [PATCH v3 0/1] Add-probe_streams-option

2021-10-19 Thread Nicolas Gaullier
>Nicolas Gaullier (1): > avformat: Add probe_streams option > > doc/formats.texi| 3 +++ > libavformat/avformat.h | 9 + > libavformat/mpeg.c | 5 +++-- > libavformat/mpegts.c| 10 ++ > libavformat/options_table.h | 1 +

[FFmpeg-devel] [PATCH] avformat/concatdec: copy side data

2021-11-23 Thread Nicolas Gaullier
Fixes mpeg2video stream copy to mpeg muxer. Note: this is a following of 1ec86be79b11. Signed-off-by: Nicolas Gaullier --- libavformat/concatdec.c | 11 +++ tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 +- tests/ref/fate/concat-demuxer-extended

[FFmpeg-devel] [PATCH] avformat/mxfenc: fix DNxHD GC ULs

2021-11-30 Thread Nicolas Gaullier
Fix GC container ul. Fix GC element type both for the generic case and for OPAtom. Thanks to Philip de Nier for checking the values, especially for OPAtom. --- libavformat/mxfenc.c | 8 ++-- tests/ref/lavf/mxf_opatom | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a

Re: [FFmpeg-devel] [PATCH] avformat/mxfenc: fix DNxHD GC ULs

2021-12-03 Thread Nicolas Gaullier
>Please add a reference to the relevant SMPTE document in the comment, or >perhaps at the list of references at the start of the file > >/Tomas I have added the reference to ST2019-4 for "VC3 mapping", so that should be ok for generic standard files. It seems redundant for me, but if you want, I

[FFmpeg-devel] [PATCH 1/1] avcodec/h264: Fix poc_lsb in open gop context

2019-07-23 Thread Nicolas Gaullier
When no IDR nor mmco_reset is found, prev_poc_lsb is undefined and shall not be assumed to be zero --- libavcodec/h264_parse.c | 2 ++ libavcodec/h264dec.c| 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c index ac31f54e07..6

[FFmpeg-devel] [PATCH 0/1] avcodec/h264: Fix poc_lsb in open gop context

2019-07-23 Thread Nicolas Gaullier
sample where log2_max_pic_order_cnt_lsb_minus4=5 ie. 512 frames (@25fps), thus there is about 10 seconds of video that are 'lost'. https://framadrop.org/r/a5RSjBKXAS#yBbeVfBR4LQwK4x3seqg4uGRdPv8FLJ6YNv8dVpjGJ4= NB: FATE pass without modification Thank you for the review, Nicolas Nicolas Gaullier (1): av

[FFmpeg-devel] [PATCH 0/3] avformat: Use s337m subdemux inside mxf/wav

2019-07-26 Thread Nicolas Gaullier
u_JxHeVIRc#Fs2PXutr7geTBoTpnnJ/4+dTDNGBUuGT1Gf/wh00ZDw= https://framadrop.org/r/nmjF4PbdxV#Flq5vPoRMrdfPKuM5+zdf3itUamIeWCVDriZaSKPkPQ= Thank you for the review Nicolas Gaullier (3): avformat/s337m: Make available as subdemuxer avformat: Support s337m in mxf/wav/w64 avformat/s337m: Test mx

[FFmpeg-devel] [PATCH 1/3] avformat/s337m: Make available as subdemuxer

2019-07-26 Thread Nicolas Gaullier
--- libavformat/s337m.c | 57 +++-- libavformat/s337m.h | 48 2 files changed, 95 insertions(+), 10 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/libavformat/s337

[FFmpeg-devel] [PATCH 2/3] avformat: Support s337m in mxf/wav/w64

2019-07-26 Thread Nicolas Gaullier
--- libavformat/avformat.h | 7 +++ libavformat/mxfdec.c| 20 +++- libavformat/options_table.h | 1 + libavformat/wavdec.c| 7 ++- 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 6

[FFmpeg-devel] [PATCH 3/3] avformat/s337m: Test mxf subdemux

2019-07-26 Thread Nicolas Gaullier
incl. 24bits 5.1+2 dolby_e decoding --- tests/Makefile | 1 + tests/fate-run.sh| 4 tests/fate/audio.mak | 5 + 3 files changed, 10 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index 624292d451..e8e23085eb 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -74,6

[FFmpeg-devel] [PATCH v2 0/5] avformat: Use s337m subdemux inside wav

2019-08-06 Thread Nicolas Gaullier
: https://framadrop.org/r/05WkojY4i3#VWCpClXRaLnju5Z479g2qvLgMjD64rCTjYu31kQSAbI= https://framadrop.org/r/dL5lFkBf3P#3lBD0SHINiZsN8BNBHUL2D1lRx17FJurCxzIRpXsMXg= Nicolas Gaullier (5): avformat/s337m: Use base AVClass for av_log usage avformat/s337m: Split read_packet/get_packet avformat/s337m

[FFmpeg-devel] [PATCH v2 1/5] avformat/s337m: Use base AVClass for av_log usage

2019-08-06 Thread Nicolas Gaullier
s337m_get_offset_and_codec does not make use of AVFormatContext: AVClass is enough for logging. Will facilitate further use from outside --- libavformat/s337m.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/s337m.c b/libavformat/s337m.c index 48ab66a6da

[FFmpeg-devel] [PATCH v2 2/5] avformat/s337m: Split read_packet/get_packet

2019-08-06 Thread Nicolas Gaullier
Prepare use of s337m_get_packet from outside --- libavformat/s337m.c | 29 +++-- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/libavformat/s337m.c b/libavformat/s337m.c index 8956afb23f..22140297e6 100644 --- a/libavformat/s337m.c +++ b/libavformat/s337m.c

[FFmpeg-devel] [PATCH v2 4/5] avformat/wavdec: s337m support

2019-08-06 Thread Nicolas Gaullier
Enabled by AVOption dolbyeprobe Requires stereo --- libavformat/s337m.h | 1 + libavformat/wavdec.c | 41 ++--- 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/libavformat/s337m.h b/libavformat/s337m.h index bfe2a5d457..0c3fbf1990 100644 --- a/

[FFmpeg-devel] [PATCH v2 3/5] avformat/s337m: Make available as subdemuxer

2019-08-06 Thread Nicolas Gaullier
--- libavformat/s337m.c | 63 +++- libavformat/s337m.h | 64 + 2 files changed, 116 insertions(+), 11 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/libavfo

[FFmpeg-devel] [PATCH v2 5/5] avformat/s337m: Test wav subdemux

2019-08-06 Thread Nicolas Gaullier
incl. 24bits 5.1+2 dolby_e decoding --- tests/Makefile | 1 + tests/fate-run.sh| 4 tests/fate/audio.mak | 5 + 3 files changed, 10 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index 0ef571b067..ebaa465597 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -75,6

[FFmpeg-devel] [PATCH v3 3/6] avformat/s337m: Make available as subdemuxer

2019-08-06 Thread Nicolas Gaullier
--- libavformat/s337m.c | 64 - libavformat/s337m.h | 64 + 2 files changed, 117 insertions(+), 11 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/libavf

[FFmpeg-devel] [PATCH v3 0/6] avformat: Use s337m subdemux inside wav

2019-08-06 Thread Nicolas Gaullier
te min/max values that would be really relevant and worth sharing depend on video resolution... Nicolas Gaullier (6): avformat/s337m: Use base AVClass for av_log usage avformat/s337m: Split read_packet/get_packet avformat/s337m: Make available as subdemuxer avformat/wavdec: s337m support

[FFmpeg-devel] [PATCH v3 4/6] avformat/wavdec: s337m support

2019-08-06 Thread Nicolas Gaullier
Enabled by AVOption dolbyeprobe Requires stereo --- libavformat/s337m.h | 1 + libavformat/wavdec.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/libavformat/s337m.h b/libavformat/s337m.h index 0f21a23a30..aff76373d3 100644 --- a/libavformat/s337m.h +++ b/libavfor

[FFmpeg-devel] [PATCH v3 5/6] avformat/wavdec: reindent

2019-08-06 Thread Nicolas Gaullier
--- libavformat/wavdec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 2ef2d9e549..b9a782bec5 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -712,14 +712,14 @@ smv_out: } if (!CONF

[FFmpeg-devel] [PATCH] doc/developper: always use braces for statements

2019-08-06 Thread Nicolas Gaullier
--- doc/developer.texi | 8 1 file changed, 8 insertions(+) diff --git a/doc/developer.texi b/doc/developer.texi index 5c342c9106..1e95768364 100644 --- a/doc/developer.texi +++ b/doc/developer.texi @@ -213,6 +213,14 @@ please use av_log() instead. @item Casts should be used only when

[FFmpeg-devel] [PATCH v8 0/3] Fix mpeg1/2 stream copy

2020-02-25 Thread Nicolas Gaullier
FFMAX removed (Michael's review) and avctx->rc_buffer_size is not used anymore (James's review) Nicolas Gaullier (3): avformat/utils: Make find_stream_info get side data from codec context avcodec/utils: Fix ff_add_cpb_side_data() add twice avcodec/mpeg12dec: Add CPB coded side dat

[FFmpeg-devel] [PATCH v8 2/3] avcodec/utils: Fix ff_add_cpb_side_data() add twice

2020-02-25 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data(). --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c4dc136d3c..08e2d5b68b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1980,6 +1980,11 @@ AVCPBProperti

[FFmpeg-devel] [PATCH v8 1/3] avformat/utils: Make find_stream_info get side data from codec context

2020-02-25 Thread Nicolas Gaullier
This will allow probing input coded side data, and also forwarding them to the output. --- libavformat/utils.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index cb15f6a4b3..a58e47fabc 100644 --- a/libavformat/utils.c +++ b/liba

[FFmpeg-devel] [PATCH v8 3/3] avcodec/mpeg12dec: Add CPB coded side data

2020-02-25 Thread Nicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg --- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH v8 3/4] avcodec/utils: Fix ff_add_cpb_side_data() add twice

2020-03-05 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data(). --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c4dc136d3c..08e2d5b68b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1980,6 +1980,11 @@ AVCPBProperti

[FFmpeg-devel] [PATCH v8 1/4] avcodec/mpeg12dec: Do not alter avctx->rc_buffer_size

2020-03-05 Thread Nicolas Gaullier
--- libavcodec/mpeg12dec.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 17f9495a1d..2945728edd 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -64,6 +64,7 @@ typedef struct Mpeg1Context {

[FFmpeg-devel] [PATCH v8 2/4] avformat/utils: Make find_stream_info get side data from codec context

2020-03-05 Thread Nicolas Gaullier
This will allow probing input coded side data, and also forwarding them to the output. --- libavformat/utils.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index cb15f6a4b3..a58e47fabc 100644 --- a/libavformat/utils.c +++ b/liba

[FFmpeg-devel] [PATCH v8 0/4] Fix mpeg1/2 stream copy

2020-03-05 Thread Nicolas Gaullier
I have not received any feedback yet. I repost here with all 4 patches, maybe it is easier for the review - 1/4: fix mpeg12 decoder use of avctx->rc_buffer_size with is forbidden by API doc - 2/4,3/4,4/4: fix mpeg1/2 stream copy Thank you Nicolas Gaullier (4): avcodec/mpeg12dec: Do not al

[FFmpeg-devel] [PATCH v8 4/4] avcodec/mpeg12dec: Add CPB coded side data

2020-03-05 Thread Nicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg --- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH 0/1] avformat/mpegenc.c: vbvsize option

2019-10-31 Thread Nicolas Gaullier
review! Nicolas Nicolas Gaullier (1): avformat/mpegenc.c: vbvsize option libavformat/mpegenc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.22.0 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo

[FFmpeg-devel] [PATCH 1/1] avformat/mpegenc.c: vbvsize option

2019-10-31 Thread Nicolas Gaullier
Allow the user to set or override the vbv size --- libavformat/mpegenc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index f6980231a2..1613c8afa1 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -67,6 +67,7

[FFmpeg-devel] [PATCH 1/5] fftools/ffmpeg: Fix forward CPB props in to out

2019-12-16 Thread Nicolas Gaullier
--- fftools/ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 27f68933f8..36c207653b 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3562,12 +3562,14 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len)

[FFmpeg-devel] [PATCH 3/5] avformat/utils: Use coded_side_data

2019-12-16 Thread Nicolas Gaullier
Make find_stream_info get side data from the codec context. --- fftools/ffmpeg.c | 16 +++- libavformat/avformat.h | 11 +++ libavformat/utils.c| 18 ++ 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.

[FFmpeg-devel] [PATCH 0/5] Fix mpeg1/2 stream copy

2019-12-16 Thread Nicolas Gaullier
pg -vcodec copy output.mpg NB: Back to v2.8.9 (before codecpar was introduced), it was working because of direct access to rc_buffer_size by the muxer. Nicolas Gaullier (5): fftools/ffmpeg: Fix forward CPB props in to out fftools/ffmpeg: Reindent after last commit avformat/utils: Use coded

[FFmpeg-devel] [PATCH 2/5] fftools/ffmpeg: Reindent after last commit

2019-12-16 Thread Nicolas Gaullier
--- fftools/ffmpeg.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 36c207653b..9af2bc2fb5 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3563,12 +3563,12 @@ static int init_output_stream(OutputStream *ost, char

[FFmpeg-devel] [PATCH 5/5] avcodec/mpeg12dec: Add CPB coded side data

2019-12-16 Thread Nicolas Gaullier
--- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 775579f9f0..2dc44e6d6f 100644 --- a/libavcodec/mpeg12dec.c +

[FFmpeg-devel] [PATCH 4/5] avcodec/utils: Fix ff_add_cpb_side_data add twice

2019-12-16 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data. --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8a49234bcd..f35cfcf2f9 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1975,6 +1975,11 @@ AVCPBProperties

[FFmpeg-devel] [PATCH v2 0/7] Fix mpeg1/2 stream copy

2019-12-19 Thread Nicolas Gaullier
Includes Hendrik and Michael feedbacks (thanks to you!) : - comments added - API changes and minor version updated - split lib/tools commits (the code itself was left untouched) Nicolas Gaullier (7): fftools/ffmpeg: Fix forward CPB props in to out fftools/ffmpeg: Reindent after last commit

[FFmpeg-devel] [PATCH v2 2/7] fftools/ffmpeg: Reindent after last commit

2019-12-19 Thread Nicolas Gaullier
--- fftools/ffmpeg.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 36c207653b..9af2bc2fb5 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3563,12 +3563,12 @@ static int init_output_stream(OutputStream *ost, char

[FFmpeg-devel] [PATCH v2 1/7] fftools/ffmpeg: Fix forward CPB props in to out

2019-12-19 Thread Nicolas Gaullier
CPB side_data is copied when stream-copying (see init_output_stream_streamcopy()), but it shall not be copied when the stream is decoded. --- fftools/ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 27f68933f8..36c207653b 100644 --- a/fftool

[FFmpeg-devel] [PATCH v2 4/7] avformat/utils: Make find_stream_info get side data from codec context

2019-12-19 Thread Nicolas Gaullier
This will allow probing input coded side data, and also forwarding them to the output. --- libavformat/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index fe92ad4a1d..f7c949f0a1 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @

[FFmpeg-devel] [PATCH v2 6/7] avcodec/utils: Fix ff_add_cpb_side_data() add twice

2019-12-19 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data(). --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 8a49234bcd..f35cfcf2f9 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1975,6 +1975,11 @@ AVCPBProperti

[FFmpeg-devel] [PATCH v2 7/7] avcodec/mpeg12dec: Add CPB coded side data

2019-12-19 Thread Nicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg --- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH v2 5/7] fftools/ffmpeg: Use the new av_stream_add_coded_side_data()

2019-12-19 Thread Nicolas Gaullier
This code is now shared with avformat_find_stream_info(). --- fftools/ffmpeg.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9af2bc2fb5..232c8f5fd8 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3537,19 +35

[FFmpeg-devel] [PATCH v2 3/7] avformat: Add av_stream_add_coded_side_data()

2019-12-19 Thread Nicolas Gaullier
This will allow avformat_find_stream_info() get side data from the codec context. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 11 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 2 +- 4 files changed, 30 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v3 3/7] avformat: Add av_stream_add_coded_side_data()

2019-12-20 Thread Nicolas Gaullier
This will allow avformat_find_stream_info() get side data from the codec context. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 11 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) diff --

[FFmpeg-devel] [PATCH v4 3/7] avformat: Add av_stream_add_coded_side_data()

2019-12-20 Thread Nicolas Gaullier
This will allow avformat_find_stream_info() get side data from the codec context. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 11 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) diff --

[FFmpeg-devel] [PATCH v5 0/7] Fix mpeg1/2 stream copy

2019-12-30 Thread Nicolas Gaullier
) Nicolas Gaullier (5): avformat: Add av_stream_add_coded_side_data() avformat/utils: Make find_stream_info get side data from codec context fftools/ffmpeg: Use the new av_stream_add_coded_side_data() avcodec/utils: Fix ff_add_cpb_side_data add twice avcodec/mpeg12dec: Add CPB coded side data

[FFmpeg-devel] [PATCH v5 3/7] avformat: Add av_stream_add_coded_side_data()

2019-12-30 Thread Nicolas Gaullier
This will allow avformat_find_stream_info() get side data from the codec context. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 11 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) diff --

[FFmpeg-devel] [PATCH 0/9] avformat: Use s337m subdemux inside wav

2020-01-03 Thread Nicolas Gaullier
, but this one could also be 'forwarded' to spdif - verbose detection and phase (I think it is a broadcast requirement) Fate samples can be found here: - 512.wav : http://0x0.st/zdW-.wav - 512.mxf.pcm : http://0x0.st/zdWo.pcm Thank you for this new review... Nicolas Gaullier (9): av

[FFmpeg-devel] [PATCH 3/9] avformat/s337m: Consider container bit resolution

2020-01-03 Thread Nicolas Gaullier
Prepare the support of s337m in muxers other than raw (ex: wav). For example, this forbids reading 16 bits DolbyE stream from a 24 bit wav file. --- libavformat/s337m.c | 20 ++-- libavformat/s337m.h | 3 ++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/libavfor

[FFmpeg-devel] [PATCH 1/9] avformat/s337m: Use base AVClass for av_log usage

2020-01-03 Thread Nicolas Gaullier
s337m_get_offset_and_codec does not make use of AVFormatContext: AVClass is enough for logging. Will facilitate further use from outside --- libavformat/s337m.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/s337m.c b/libavformat/s337m.c index 48ab66a6da

[FFmpeg-devel] [PATCH 2/9] avformat/s337m: Split read_packet/get_packet

2020-01-03 Thread Nicolas Gaullier
Prepare use of s337m_get_packet from outside. --- libavformat/s337m.c | 28 +--- libavformat/s337m.h | 38 ++ 2 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/li

[FFmpeg-devel] [PATCH 6/9] avformat/wavdec: fix s337m/spdif probing beyond data_end

2020-01-03 Thread Nicolas Gaullier
--- libavformat/wavdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 2796905e1f..ccb9576b84 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -78,7 +78,7 @@ static void set_spdif_s337m(AVFormatContext *s, WAVD

[FFmpeg-devel] [PATCH 9/9] avformat/wavdec: Test s337m

2020-01-03 Thread Nicolas Gaullier
Test the new 'dolbyeprobe' AVOption. Test dolby_e decoding for 24 bits with program config '5.1+2' --- tests/Makefile | 1 + tests/fate-run.sh| 4 tests/fate/audio.mak | 5 + 3 files changed, 10 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index e5f41008d4..65ccca

[FFmpeg-devel] [PATCH 8/9] avformat/wavdec: Reindent after last commit

2020-01-03 Thread Nicolas Gaullier
--- libavformat/wavdec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 039ec1658e..0980d85189 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -714,14 +714,14 @@ smv_out: size = FFMIN(S

[FFmpeg-devel] [PATCH 7/9] avformat/wavdec: Fix s337m last packet parsing

2020-01-03 Thread Nicolas Gaullier
Fix reading beyond data_end. --- libavformat/wavdec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index ccb9576b84..039ec1658e 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -643,8 +643,6 @@ static int wav

[FFmpeg-devel] [PATCH 4/9] avformat/s337m: New ff_s337m_probe()

2020-01-03 Thread Nicolas Gaullier
Similar to ff_spdif_probe() with two additionnal parameters: - an AVClass for logging - the bit resolution of the container as it may be 16 or 24 for s337m --- libavformat/s337m.c | 35 +++ libavformat/s337m.h | 19 +++ 2 files changed, 54 insertions

[FFmpeg-devel] [PATCH 5/9] avformat/wavdec: s337m support

2020-01-03 Thread Nicolas Gaullier
Add s337m probing/reading similarly to spdif. Add a new AVOption 'dolbyeprobe' to enable it. --- libavformat/wavdec.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 575c667452..2796905e1f 100644 --- a/l

[FFmpeg-devel] [PATCH v6 0/5] Fix mpeg1/2 stream copy

2020-01-13 Thread Nicolas Gaullier
the review. For the record, the target use case is to fix things like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg (And note that as a side effect, ffmpeg now reports the cpb and signaled bitrate of mpeg2 video inputs) Nicolas Nicolas Gaullier (5): avformat: Add

[FFmpeg-devel] [PATCH v6 2/5] avformat/utils: Make find_stream_info get side data from codec context

2020-01-13 Thread Nicolas Gaullier
This will allow probing input coded side data, and also forwarding them to the output. --- libavformat/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 3270d971c6..ddc36cce1c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @

[FFmpeg-devel] [PATCH v6 1/5] avformat: Add av_stream_add_coded_side_data()

2020-01-13 Thread Nicolas Gaullier
This will allow avformat_find_stream_info() get side data from the codec context. --- doc/APIchanges | 3 +++ libavformat/avformat.h | 11 +++ libavformat/utils.c| 15 +++ libavformat/version.h | 4 ++-- 4 files changed, 31 insertions(+), 2 deletions(-) diff --

[FFmpeg-devel] [PATCH v6 3/5] fftools/ffmpeg: Use the new av_stream_add_coded_side_data()

2020-01-13 Thread Nicolas Gaullier
This code is now shared with avformat_find_stream_info(). --- fftools/ffmpeg.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 6bcd7b94d2..a513e9f3cc 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3534,19 +35

[FFmpeg-devel] [PATCH v6 4/5] avcodec/utils: Fix ff_add_cpb_side_data() add twice

2020-01-13 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data(). --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index ab48754a64..d9af6053bb 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1978,6 +1978,11 @@ AVCPBProperti

[FFmpeg-devel] [PATCH v6 5/5] avcodec/mpeg12dec: Add CPB coded side data

2020-01-13 Thread Nicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg --- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH v7 2/3] avcodec/utils: Fix ff_add_cpb_side_data() add twice

2020-01-14 Thread Nicolas Gaullier
Makes it behave similarly to av_stream_add_side_data(). --- libavcodec/utils.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index ab48754a64..d9af6053bb 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1978,6 +1978,11 @@ AVCPBProperti

[FFmpeg-devel] [PATCH v7 0/3] Fix mpeg1/2 stream copy

2020-01-14 Thread Nicolas Gaullier
Modified with Anton feedback: no public amendment, the code from add_coded_side_data() is now duplicated from existing one in ffmpeg.c, but it is rather small. Nicolas Gaullier (3): avformat/utils: Make find_stream_info get side data from codec context avcodec/utils: Fix ff_add_cpb_side_data

[FFmpeg-devel] [PATCH v7 1/3] avformat/utils: Make find_stream_info get side data from codec context

2020-01-14 Thread Nicolas Gaullier
This will allow probing input coded side data, and also forwarding them to the output. --- libavformat/utils.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index f3d71642c3..cc9898681a 100644 --- a/libavformat/utils.c +++ b/liba

[FFmpeg-devel] [PATCH v7 3/3] avcodec/mpeg12dec: Add CPB coded side data

2020-01-14 Thread Nicolas Gaullier
This fixes mpeg2video stream copies to mpeg muxer like this: ffmpeg -i xdcamhd.mxf -c:v copy output.mpg --- libavcodec/mpeg12dec.c | 7 +++ tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/ts-demux | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavcod

[FFmpeg-devel] [PATCH v2 0/8] avformat: Use s337m subdemux inside wav

2020-01-15 Thread Nicolas Gaullier
discussed with Carl Eugen If possible, I would like to continue this review, but when time will come to apply, I would like to postpone it a little bit to wait for the global AVOption, this is to make sure that users will be able to disable the wav s337m probing if they need to. Thank you al

[FFmpeg-devel] [PATCH v2 8/8] avformat/wavdec: Test s337m

2020-01-15 Thread Nicolas Gaullier
Test s337m probing in wav container. Test dolby_e decoding for 24 bits with program config '5.1+2' --- tests/Makefile | 1 + tests/fate/audio.mak | 5 + 2 files changed, 6 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index e5f41008d4..65cccac312 100644 --- a/tests/Makefile

[FFmpeg-devel] [PATCH v2 7/8] avformat/wavdec: fix s337m/spdif probing beyond data_end

2020-01-15 Thread Nicolas Gaullier
--- libavformat/wavdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 3571733817..d8a27c79cf 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -77,7 +77,7 @@ static void set_spdif_s337m(AVFormatContext *s, WAVD

[FFmpeg-devel] [PATCH v2 5/8] avformat/wavdec: s337m support

2020-01-15 Thread Nicolas Gaullier
Add s337m probing/reading similarly to spdif. --- libavformat/wavdec.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 575c667452..d030ed9f9d 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c

[FFmpeg-devel] [PATCH v2 1/8] avformat/s337m: Use base AVClass for av_log usage

2020-01-15 Thread Nicolas Gaullier
s337m_get_offset_and_codec does not make use of AVFormatContext: AVClass is enough for logging. Will facilitate further use from outside --- libavformat/s337m.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/s337m.c b/libavformat/s337m.c index 48ab66a6da

[FFmpeg-devel] [PATCH v2 2/8] avformat/s337m: Split read_packet/get_packet

2020-01-15 Thread Nicolas Gaullier
Prepare use of s337m_get_packet from outside. --- libavformat/s337m.c | 26 -- libavformat/s337m.h | 37 + 2 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 libavformat/s337m.h diff --git a/libavformat/s337m.c b/libav

[FFmpeg-devel] [PATCH v2 3/8] avformat/s337m: Consider container bit resolution

2020-01-15 Thread Nicolas Gaullier
Prepare the support of s337m in muxers other than raw (ex: wav). For example, this forbids reading 16 bits DolbyE stream from a 24 bit wav file. --- libavformat/s337m.c | 20 ++-- libavformat/s337m.h | 3 ++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/libavfor

[FFmpeg-devel] [PATCH v2 6/8] avformat/wavdec.c: Reindent after last commit

2020-01-15 Thread Nicolas Gaullier
--- libavformat/wavdec.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index d030ed9f9d..3571733817 100644 --- a/libavformat/wavdec.c +++ b/libavformat/wavdec.c @@ -713,14 +713,14 @@ smv_out: size = FFMIN(S

[FFmpeg-devel] [PATCH v2 4/8] avformat/s337m: New ff_s337m_probe()

2020-01-15 Thread Nicolas Gaullier
Similar to ff_spdif_probe() with just an additional checking of the bit resolution of the container as it may be 16 or 24 for s337m. --- libavformat/s337m.c | 32 libavformat/s337m.h | 16 2 files changed, 48 insertions(+) diff --git a/libavformat

[FFmpeg-devel] [PATCH v3 5/8] avformat/wavdec: s337m support

2020-01-16 Thread Nicolas Gaullier
Add s337m probing/reading similarly to spdif. --- libavformat/wavdec.c | 35 +++ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 575c667452..9802eef561 100644 --- a/libavformat/wavdec.c +++ b/libavform

[FFmpeg-devel] [PATCH] avcodec/mpeg12dec: Do not alter avctx->rc_buffer_size

2020-02-24 Thread Nicolas Gaullier
--- libavcodec/mpeg12dec.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 17f9495a1d..2945728edd 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -64,6 +64,7 @@ typedef struct Mpeg1Context {

[FFmpeg-devel] [PATCH] avfilter/vf_colorspace: use colorspace negotiation API

2024-03-25 Thread Nicolas Gaullier
when it is not specified: the documentation states the output defaults to the same value as the input, but it does not seem possible to implement currently. Signed-off-by: Nicolas Gaullier --- libavfilter/vf_colorspace.c | 62 + 1 file changed, 36 insertions

[FFmpeg-devel] [PATCH v4 0/1] avformat/mpegts: Add duration_probesize AVOption

2024-03-26 Thread Nicolas Gaullier
by it, so I don't feel it is acceptable? Any input welcome. Nicolas Gaullier (1): avformat/mpegts: Add duration_probesize AVOption doc/demuxers.texi | 13 + doc/formats.texi | 2 +- libavformat/demux.c | 23 ++--- libavformat/mpegts.c | 104 +--

[FFmpeg-devel] [PATCH v4 1/1] avformat/mpegts: Add duration_probesize AVOption

2024-03-26 Thread Nicolas Gaullier
n is found but not the other audio/video stream durations, there will be a retry, so at the end the full user-overriden probesize will be used as expected by the user. Signed-off-by: Nicolas Gaullier --- doc/demuxers.texi | 13 + doc/formats.texi | 2 +- libavformat/demux.c | 23

[FFmpeg-devel] [PATCH 0/1] avcodec/h264_parser: fix start of packet for some broken

2024-03-26 Thread Nicolas Gaullier
.ts Same sample modified to exhibit the issue (invalid NAL_AUDs + an available null ending byte at 0x291F): https://0x0.st/Xs9j.ts I use this simple command line and then compare the xml, it seems quite clear: ffprobe xxx.ts -show_packets -show_data -print_format xml Nicolas Gaullier (1): avco

[FFmpeg-devel] [PATCH 1/1] avcodec/h264_parser: fix start of packet for some broken streams

2024-03-26 Thread Nicolas Gaullier
--- libavcodec/h264_parser.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 94cfbc481e..6b721ec253 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -124,7 +124,16 @@ static int h264_fi

  1   2   3   4   >