Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-03 Thread Tomas Härdin
tor 2022-06-02 klockan 21:19 +0200 skrev Michael Niedermayer: > On Thu, Jun 02, 2022 at 11:54:39AM +0200, Tomas Härdin wrote: > > ons 2022-06-01 klockan 18:23 +0200 skrev Michael Niedermayer: > > > On Wed, Jun 01, 2022 at 06:21:19PM +0200, Michael Niedermayer > > > wrote: > > > > On Tue, May 31, 20

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

2022-06-03 Thread Tomas Härdin
> +bytestream_put_buffer(&buf, "qoif", 4); > +bytestream_put_be32(&buf, avctx->width); > +bytestream_put_be32(&buf, avctx->height); > +bytestream_put_byte(&buf, channels); > +bytestream_put_byte(&buf, 0); bytestream_put_byte(&buf, avctx->color_trc == AVCOL_TRC_LINEAR); Looks g

[FFmpeg-devel] [PATCH 0/6] avformat/movenc: normalize on AC-3 parser usage

2022-06-03 Thread Jan Ekström
The simplified parsing currently in `mov_write_ac3_tag` trusts the content of the packets a bit too much (the AC-3 parser returns all data fed to it, including any possible data before the start code), while the existing E-AC-3 logic does proper header validation by utilizing the (E-)AC-3 parser.

[FFmpeg-devel] [PATCH 1/6] avcodec/ac3_parser{, _internal}: expose AC-3 bit_rate_code

2022-06-03 Thread Jan Ekström
From: Jan Ekström Required by MP4's AC3SpecificBox and MPEG-TS AC-3 audio_descriptor, of which the former is implemented in our MP4 writer. Signed-off-by: Jan Ekström --- libavcodec/ac3_parser.c | 3 +++ libavcodec/ac3_parser_internal.h | 1 + 2 files changed, 4 insertions(+) diff --

[FFmpeg-devel] [PATCH 2/6] {configure, avformat/movenc}: enable AC-3 parser for movenc

2022-06-03 Thread Jan Ekström
From: Jan Ekström This simplifies the code to no longer have #ifs in a manner which does not require handling avpriv_ac3_parse_header returning ENOSYS. As an existing example, the MPEG-TS muxer already requires the AC-3 parser, and in order to fix existing issues with the current AC-3 movenc cod

[FFmpeg-devel] [PATCH 3/6] avformat/movenc: enable handle_eac3 to handle AC-3 tracks

2022-06-03 Thread Jan Ekström
From: Jan Ekström Add the AC-3 frame type, as well as early exit from additional packet parsing in case of AC-3, as only a single packet is required to get the required information. Additionally, expose ac3_bit_rate_code via the eac3_info struct as it is required for AC3SpecificBox. Signed-off-

[FFmpeg-devel] [PATCH 4/6] avformat/movenc: move eac3_info definition so that it can be used for AC-3

2022-06-03 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 66 ++-- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 2589f2f4bb..5bc1f4c7a4 100644 --- a/libavformat/movenc.c +++

[FFmpeg-devel] [PATCH 5/6] avformat/movenc: utilize existing AC-3 parsing workflow for AC-3

2022-06-03 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 46 +--- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 5bc1f4c7a4..a1daf3598b 100644 --- a/libavformat/movenc.c +++

[FFmpeg-devel] [PATCH 6/6] avformat/movenc: handle OOM situations when parsing AC-3 headers

2022-06-03 Thread Jan Ekström
From: Jan Ekström Signed-off-by: Jan Ekström --- libavformat/movenc.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index a1daf3598b..0f92f0e04e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -415,7 +415,10 @

[FFmpeg-devel] [PATCH] avformat/cafdec: Implement FLAC-in-CAF parsing

2022-06-03 Thread Martijn van Beurden
The afconvert utility shipped with MacOS supports muxing of FLAC in CAF, see afconvert help output on a recent Mac here: https://hydrogenaud.io/index.php?topic=122509.0 A file created with afconvert free of copyright (licensed CC0) can be found here: http://www.audiograaf.nl/misc_stuff/afconvert-FL

Re: [FFmpeg-devel] [PATCH] avformat/cafdec: Implement FLAC-in-CAF parsing

2022-06-03 Thread Paul B Mahol
On Fri, Jun 3, 2022 at 3:12 PM Martijn van Beurden wrote: > The afconvert utility shipped with MacOS supports muxing of FLAC > in CAF, see afconvert help output on a recent Mac here: > https://hydrogenaud.io/index.php?topic=122509.0 A file created > with afconvert free of copyright (licensed CC0)

Re: [FFmpeg-devel] [PATCH 1/8] libavcodec/jpeg2000_parser: Speed up long skips

2022-06-03 Thread Michael Niedermayer
On Fri, Jun 03, 2022 at 11:17:54AM +0200, Tomas Härdin wrote: > tor 2022-06-02 klockan 21:19 +0200 skrev Michael Niedermayer: > > On Thu, Jun 02, 2022 at 11:54:39AM +0200, Tomas Härdin wrote: > > > ons 2022-06-01 klockan 18:23 +0200 skrev Michael Niedermayer: > > > > On Wed, Jun 01, 2022 at 06:21:1

[FFmpeg-devel] Consulting Request

2022-06-03 Thread Samuel Raposo Vieira Mira
Hi all, We are Qt (www.qt.io), a global software company with a strong presence in more than 70 industries and is the leading independent technology behind 1+ billion devices and applications. Now we are working on integrating the FFmpeg library into our Multimedia module as one of the possibl

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

2022-06-03 Thread Andreas Rheinhardt
Paul B Mahol: > > + > +packet_size = avctx->width * avctx->height * 16LL; > +if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0) > +return ret; > + Where does 16 come from? Looking at the code, the factor should be channels + 1 per pixel (and 14 + 8 byte for header + footer)

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

2022-06-03 Thread Paul B Mahol
On Fri, Jun 3, 2022 at 6:17 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Paul B Mahol: > > > > + > > +packet_size = avctx->width * avctx->height * 16LL; > > +if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0) > > +return ret; > > + > > Where does 16 come

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

2022-06-03 Thread Andreas Rheinhardt
Paul B Mahol: > On Fri, Jun 3, 2022 at 6:17 PM Andreas Rheinhardt < > andreas.rheinha...@outlook.com> wrote: > >> Paul B Mahol: >>> >>> + >>> +packet_size = avctx->width * avctx->height * 16LL; >>> +if ((ret = ff_alloc_packet(avctx, pkt, packet_size)) < 0) >>> +return ret; >>> + >>

Re: [FFmpeg-devel] [PATCH] avcodec: add QOI decoder and demuxer and parser and encoder and muxer

2022-06-03 Thread Paul B Mahol
On Fri, Jun 3, 2022 at 6:21 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Paul B Mahol: > > On Fri, Jun 3, 2022 at 6:17 PM Andreas Rheinhardt < > > andreas.rheinha...@outlook.com> wrote: > > > >> Paul B Mahol: > >>> > >>> + > >>> +packet_size = avctx->width * avctx->height *

Re: [FFmpeg-devel] [PATCH] avformat/cafdec: Implement FLAC-in-CAF parsing

2022-06-03 Thread Andreas Rheinhardt
Martijn van Beurden: > The afconvert utility shipped with MacOS supports muxing of FLAC > in CAF, see afconvert help output on a recent Mac here: > https://hydrogenaud.io/index.php?topic=122509.0 A file created > with afconvert free of copyright (licensed CC0) can be found here: > http://www.audiog

Re: [FFmpeg-devel] [PATCH] avformat/cafdec: Implement FLAC-in-CAF parsing

2022-06-03 Thread Jan Ekström
On Fri, Jun 3, 2022 at 8:11 PM Andreas Rheinhardt wrote: > > Martijn van Beurden: > > The afconvert utility shipped with MacOS supports muxing of FLAC > > in CAF, see afconvert help output on a recent Mac here: > > https://hydrogenaud.io/index.php?topic=122509.0 A file created > > with afconvert f

Re: [FFmpeg-devel] [PATCH] avformat/cafdec: Implement FLAC-in-CAF parsing

2022-06-03 Thread Martijn van Beurden
Op vr 3 jun. 2022 om 19:11 schreef Andreas Rheinhardt : > > You are not checking this; this could lead to uninitialized values being > used in flac_parse_block_header() below. > Yes, indeed, thank you. Interestingly enough, I copied this bit directly from mov_read_dfla in mov.c, so I'll send a pat