[FFmpeg-devel] [PATCH 1/1] avutil silencing little build warning

2021-01-09 Thread David CARLIER
Hi here little patch for avutil. Kind regards. 0001-avutil-silencing-const-qualifier-warning.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit li

[FFmpeg-devel] [PATCH] avcodec/aacenctab: Simplify exporting array size

2021-01-09 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/aacenc.c| 4 ++-- libavcodec/aacenctab.c | 7 ++- libavcodec/aacenctab.h | 6 ++ 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 070a2e706a..75e40c9d7f 100644 --- a/libavco

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/fft_template: Remove unused fixed-point cosine tables

2021-01-09 Thread Andreas Rheinhardt
Michael Niedermayer: > On Thu, Jan 07, 2021 at 12:13:05AM +0100, Andreas Rheinhardt wrote: >> There are three types of FFTs: floating-point, 32-bit fixed-point and >> 16-bit fixed-point. The latter has exactly one user: The fixed-point >> AC-3-encoder; the cosine tables used by it use up to seven b

Re: [FFmpeg-devel] [PATCH v2 01/11] avcodec/vvc: add shared header for vvc

2021-01-09 Thread Nuo Mi
On Sun, Jan 10, 2021 at 3:09 AM Mark Thompson wrote: > On 09/01/2021 07:34, Nuo Mi wrote: > > --- > > libavcodec/vvc.h | 124 +++ > > 1 file changed, 124 insertions(+) > > create mode 100644 libavcodec/vvc.h > > > > diff --git a/libavcodec/vvc.h b/

[FFmpeg-devel] [PATCH 4/4] avcodec/flashsv2enc: factorize updating block dimensions

2021-01-09 Thread Marton Balint
Signed-off-by: Marton Balint --- libavcodec/flashsv2enc.c | 76 +--- 1 file changed, 32 insertions(+), 44 deletions(-) diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c index 6603d0ded1..5139b17a28 100644 --- a/libavcodec/flashsv2enc.c +++ b/lib

[FFmpeg-devel] [PATCH 3/4] avformat/swf: add support for reading and writing VP6A and Flash Screen Video codecs

2021-01-09 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/swf.c| 8 +--- libavformat/swfdec.c | 10 ++ libavformat/swfenc.c | 31 --- 3 files changed, 35 insertions(+), 14 deletions(-) diff --git a/libavformat/swf.c b/libavformat/swf.c index 1aa434a0ea..a3471d917a

[FFmpeg-devel] [PATCH 2/4] avformat/swfenc: add support for muxing png images

2021-01-09 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/swfenc.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 8ee175664a..a0b7615629 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -224,11 +224,12 @@ stat

[FFmpeg-devel] [PATCH 1/4] avformat/swfenc: fix generation of FileAttributes tag

2021-01-09 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/swfenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index 14be2b72aa..8ee175664a 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -277,10 +277,10 @@ static int sw

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/fft_template: Remove unused fixed-point cosine tables

2021-01-09 Thread Michael Niedermayer
On Thu, Jan 07, 2021 at 12:13:05AM +0100, Andreas Rheinhardt wrote: > There are three types of FFTs: floating-point, 32-bit fixed-point and > 16-bit fixed-point. The latter has exactly one user: The fixed-point > AC-3-encoder; the cosine tables used by it use up to seven bits. The > tables correspo

[FFmpeg-devel] [PATCH v5] avformat/udp: return the error code instead of generic EIO

2021-01-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 55 +-- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 13c346a..cf5185d 100644 --- a/libavformat/udp.c +++ b/libavf

Re: [FFmpeg-devel] [PATCH v4 1/3] avformat/udp: return the error code instead of generic EIO

2021-01-09 Thread lance . lmwang
On Sat, Jan 09, 2021 at 04:59:48PM +0100, Marton Balint wrote: > > > On Sat, 9 Jan 2021, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavformat/udp.c | 61 > > --- > > 1 file changed, 3

Re: [FFmpeg-devel] [PATCH 1/6] avformat/utils: do not overwrite already existing program with defaults in av_new_program

2021-01-09 Thread Marton Balint
On Sun, 3 Jan 2021, Marton Balint wrote: On Mon, 28 Dec 2020, Marton Balint wrote: av_new_program returns the existing program if that already exists, in that case it makes no sense to overwrite existing attributes. Signed-off-by: Marton Balint --- libavformat/utils.c | 12 +--- 1

Re: [FFmpeg-devel] [PATCH v2 06/11] avcodec: add cbs for h266/vvc

2021-01-09 Thread Mark Thompson
On 09/01/2021 07:34, Nuo Mi wrote: --- configure |2 + libavcodec/Makefile |1 + libavcodec/cbs.c |6 + libavcodec/cbs_h2645.c| 373 libavcodec/cbs_h266.h | 840 l

Re: [FFmpeg-devel] [PATCH 1/6] ac3enc_fixed: convert to 32-bit sample format

2021-01-09 Thread Andreas Rheinhardt
Lynne: > @@ -165,7 +164,11 @@ typedef struct AC3EncodeContext { > AVCodecContext *avctx; ///< parent AVCodecContext > PutBitContext pb; ///< bitstream writer context > AudioDSPContext adsp; > +#if AC3ENC_FLOAT > AVFloatDSPContext *fdsp; > +

[FFmpeg-devel] [PATCH 6/6] fft_fixed: remove 16-bit FFT code

2021-01-09 Thread Lynne
No longer used by anything. Unfortunately the old FFT_FLOAT/FFT_FIXED_32 is left as-is. It's simply too much work for code meant to be all removed anyway. Patch attached. Read patch 1/6 to see the size savings. >From 01974d1b7598679cb3c7f4baf9b18771b7fa3557 Mon Sep 17 00:00:00 2001 From: Lynne

[FFmpeg-devel] [PATCH 5/6] mdct_fixed: remove 16-bit MDCT code

2021-01-09 Thread Lynne
No longer needed or used by anything. Patch attached. Read patch 1/6 to see the size savings. >From b0371af3c1bf6f20196abc4f6e1a4d4cb55f38bc Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 9 Jan 2021 16:23:20 +0100 Subject: [PATCH 5/6] mdct_fixed: remove 16-bit MDCT code No longer needed or used

[FFmpeg-devel] [PATCH 4/6] ac3enc_fixed: drop unnecessary fixed-point DSP code

2021-01-09 Thread Lynne
Patch attached. Read patch 1/6 to see the size savings. >From ea0c7840997f8ca6bfffdbd59387bc1340d87049 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 9 Jan 2021 03:19:18 +0100 Subject: [PATCH 4/6] ac3enc_fixed: drop unnecessary fixed-point DSP code --- libavcodec/ac3dsp.c | 60 --

[FFmpeg-devel] [PATCH 3/6] ac3enc: halve the MDCT window size by using vector_fmul_reverse

2021-01-09 Thread Lynne
This brings the encoder in-line with the rest of ours and saves on a bit of memory. Patch attached. >From 3cdf7075052a7a429cf63385c587df7f839182cd Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 9 Jan 2021 17:27:16 +0100 Subject: [PATCH 3/6] ac3enc: halve the MDCT window size by using vector_f

[FFmpeg-devel] [PATCH 2/6] ac3enc: do not clip coefficients after transforms

2021-01-09 Thread Lynne
In either encoder, its impossible for the coefficients to go past 25 bits right after the MDCT. Our MDCT is numerically stable. For the floating point encoder, in case a NaN is contained, lrintf() will raise a floating point exception during the conversion. Patch attached. >From a64b83f243fee2a5

[FFmpeg-devel] [PATCH 1/6] ac3enc_fixed: convert to 32-bit sample format

2021-01-09 Thread Lynne
The AC3 encoder used to be a separate library called "Aften", which got merged into libavcodec (literally, SVN commits and all). The merge preserved as much features from the library as possible. The code had two versions - a fixed point version and a floating point version. FFmpeg had floating po

Re: [FFmpeg-devel] [PATCH v2 01/11] avcodec/vvc: add shared header for vvc

2021-01-09 Thread Mark Thompson
On 09/01/2021 07:34, Nuo Mi wrote: --- libavcodec/vvc.h | 124 +++ 1 file changed, 124 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h new file mode 100644 index 00..0bd2acac1d --- /dev/nu

Re: [FFmpeg-devel] [PATCH] sbc: do not set sample format in parser

2021-01-09 Thread James Almer
On 1/9/2021 2:52 PM, Marc Gonzalez wrote: Hello ffmpeg devs, Any comments on the patch below? Regards. Applied, thanks. On 05/01/2021 16:57, Marc Gonzalez wrote: From: Arnaud Vrac Date: Tue, 5 Jan 2021 13:47:43 +0100 Commit bdd31feec934 changed the SBC decoder to only set the output sa

Re: [FFmpeg-devel] [PATCH] sbc: do not set sample format in parser

2021-01-09 Thread Marc Gonzalez
Hello ffmpeg devs, Any comments on the patch below? Regards. On 05/01/2021 16:57, Marc Gonzalez wrote: > From: Arnaud Vrac > Date: Tue, 5 Jan 2021 13:47:43 +0100 > > Commit bdd31feec934 changed the SBC decoder to only set the output > sample format on init, instead of setting it explicitly on

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread James Almer
On 1/9/2021 12:14 PM, Nuo Mi wrote: On Sat, Jan 9, 2021 at 11:11 PM Nuo Mi wrote: Hi James, On Sat, Jan 9, 2021 at 10:53 PM James Almer wrote: On 1/9/2021 4:34 AM, Nuo Mi wrote: use following command to test: ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin 79.11%(197/249) ca

[FFmpeg-devel] [PATCH] ffmpeg_opts: remove lowres check

2021-01-09 Thread James Almer
The st->codec values are updated based on the lowres factor by avformat_find_stream_info() when it runs an instance of the decoder internally, and the same thing happens in ffmpeg.c when we open ist->dec_ctx with avcodec_open2(), so these assignments are redundant. Signed-off-by: James Almer ---

Re: [FFmpeg-devel] [PATCH] libavdevice/decklink_dec: mark get_bmd_timecode static

2021-01-09 Thread Marton Balint
On Wed, 6 Jan 2021, Christopher Degawa wrote: I forgot to mark get_frame_timecode as static as well Thanks, applied with marking static that function as well. Regards, Marton ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avformat/mov: adjust skip_samples according to seek timestamp

2021-01-09 Thread Marton Balint
On Wed, 6 Jan 2021, Matthieu Bouron wrote: On Tue, Jan 05, 2021 at 09:56:39PM +0100, Marton Balint wrote: On Tue, 5 Jan 2021, Matthieu Bouron wrote: Could you factorize this to a function? It seems you are doing exactly the same thing here and below. New patch attached. [...] diff --

Re: [FFmpeg-devel] [PATCH] doc/tcp: update option listen description

2021-01-09 Thread Marton Balint
On Sat, 2 Jan 2021, Lingjiang Fang wrote: --- doc/protocols.texi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/protocols.texi b/doc/protocols.texi index de377a9546..e5a68dcbf4 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -1635,8 +1635,10 @@ tcp://@

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread Nuo Mi
On Sat, Jan 9, 2021 at 11:53 PM James Almer wrote: > On 1/9/2021 12:11 PM, Nuo Mi wrote: > > Hi James, > > On Sat, Jan 9, 2021 at 10:53 PM James Almer wrote: > > > >> On 1/9/2021 4:34 AM, Nuo Mi wrote: > >>> use following command to test: > >>> ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vv

[FFmpeg-devel] [PATCH v3] avcodec: add vvc parser

2021-01-09 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/parsers.c| 1 + libavcodec/vvc_parser.c | 297 4 files changed, 300 insertions(+) create mode 100644 libavcodec/vvc_parser.c diff --git a/configure b/configure index 49

Re: [FFmpeg-devel] [PATCH v4 1/3] avformat/udp: return the error code instead of generic EIO

2021-01-09 Thread Marton Balint
On Sat, 9 Jan 2021, lance.lmw...@gmail.com wrote: From: Limin Wang Signed-off-by: Limin Wang --- libavformat/udp.c | 61 --- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 13c346a

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread James Almer
On 1/9/2021 12:11 PM, Nuo Mi wrote: Hi James, On Sat, Jan 9, 2021 at 10:53 PM James Almer wrote: On 1/9/2021 4:34 AM, Nuo Mi wrote: use following command to test: ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin 79.11%(197/249) can bit match with original clips 6.83%(17/249) are

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread Nuo Mi
On Sat, Jan 9, 2021 at 11:11 PM Nuo Mi wrote: > > Hi James, > On Sat, Jan 9, 2021 at 10:53 PM James Almer wrote: > >> On 1/9/2021 4:34 AM, Nuo Mi wrote: >> > use following command to test: >> > ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin >> > >> > 79.11%(197/249) can bit match w

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread Nuo Mi
Hi James, On Sat, Jan 9, 2021 at 10:53 PM James Almer wrote: > On 1/9/2021 4:34 AM, Nuo Mi wrote: > > use following command to test: > > ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin > > > > 79.11%(197/249) can bit match with original clips > > 6.83%(17/249) are not bit match, the

Re: [FFmpeg-devel] [PATCH v2 10/11] avcodec: add vvc metadata bsf

2021-01-09 Thread James Almer
On 1/9/2021 4:34 AM, Nuo Mi wrote: use following command to test: ffmpeg -i in.bin -c:v copy -bsf vvc_metadata -f vvc out.bin 79.11%(197/249) can bit match with original clips 6.83%(17/249) are not bit match, the original clips has redundant emulation prevent bytes other all failed since vvdec

[FFmpeg-devel] [PATCH v2 04/11] avcodec: add SEI enum for vvc

2021-01-09 Thread Nuo Mi
--- libavcodec/vvc_sei.h | 47 1 file changed, 47 insertions(+) create mode 100644 libavcodec/vvc_sei.h diff --git a/libavcodec/vvc_sei.h b/libavcodec/vvc_sei.h new file mode 100644 index 00..90724669de --- /dev/null +++ b/libavcodec/vvc_sei.h

[FFmpeg-devel] [PATCH v2 01/11] avcodec/vvc: add shared header for vvc

2021-01-09 Thread Nuo Mi
--- libavcodec/vvc.h | 124 +++ 1 file changed, 124 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h new file mode 100644 index 00..0bd2acac1d --- /dev/null +++ b/libavcodec/vvc.h @@ -0,0 +1,124