Re: [FFmpeg-devel] [PATCH] webp: fix transforms after a palette with pixel packing.

2021-09-25 Thread James Zern
On Mon, Sep 20, 2021 at 5:44 PM James Zern wrote: > > On Wed, Sep 8, 2021 at 6:46 PM James Zern wrote: > > > > On Mon, Aug 30, 2021 at 5:11 AM Maryla > > wrote: > > > > > > When a color indexing transform with 16 or fewer colors is used, > > &

Re: [FFmpeg-devel] [PATCH] libaom: Dont use aom_codec_av1_dx_algo.

2021-10-20 Thread James Zern
On Wed, Oct 20, 2021 at 9:59 AM Matt Oliver wrote: > > This fixes linking errors where variables cannot be correctly linked in > from an external shared library such as with msvc (requires dllimport which > is not used by libaom). Instead just call the function that returns the > same variable. >

Re: [FFmpeg-devel] [PATCH] libaom: Dont use aom_codec_av1_dx_algo.

2021-11-01 Thread James Zern
On Fri, Oct 29, 2021 at 8:13 PM Matt Oliver wrote: > > > > > Does this compile and link with libaom 1.0.0? We unfortunately still > > support that version (despite being unusable speed wise) because distros > > like Debian still ship it. > > > > Just looked it up and yes version 1.0.0 includes the

Re: [FFmpeg-devel] [PATCH] libaom: Dont use aom_codec_av1_dx_algo.

2021-11-01 Thread James Zern
On Fri, Oct 29, 2021 at 8:51 PM Matt Oliver wrote: > > On Sat, 30 Oct 2021 at 14:13, Matt Oliver wrote: > > > Does this compile and link with libaom 1.0.0? We unfortunately still > >> support that version (despite being unusable speed wise) because distros > >> like Debian still ship it. > >> > >

Re: [FFmpeg-devel] [PATCH] avcodec/libaomdec: use intermediate arrays for plane pointers and strides

2021-11-01 Thread James Zern
On Sat, Oct 30, 2021 at 6:59 AM James Almer wrote: > > Fixes -Wstringop-overflow warnings with libaom >= 2.0.0, where the unused > alpha > plane was removed from aom_image. > > Signed-off-by: James Almer > --- > libavcodec/libaomdec.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deleti

Re: [FFmpeg-devel] [PATCH] libaom: Dont use aom_codec_av1_dx_algo.

2021-11-02 Thread James Zern
On Mon, Nov 1, 2021 at 6:11 PM Matt Oliver wrote: > > On Tue, 2 Nov 2021 at 04:41, James Zern > wrote: > > > On Fri, Oct 29, 2021 at 8:51 PM Matt Oliver wrote: > > > > > > On Sat, 30 Oct 2021 at 14:13, Matt Oliver wrote: > > > > > &

Re: [FFmpeg-devel] [PATCH] libvpxdec: Correct linking against variables.

2021-11-22 Thread James Zern
On Mon, Nov 22, 2021 at 4:35 AM Matt Oliver wrote: > > On Thu, 4 Nov 2021 at 15:44, Matt Oliver wrote: > > > Instead link against the function that returns the correct variable. This > > fixes linking errors with dlls with msvc. > > --- > > libavcodec/libvpxdec.c | 10 +- > > 1 file chan

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaomenc: remove the redundant initialization

2021-11-22 Thread James Zern
On Mon, Nov 22, 2021 at 6:47 AM wrote: > > From: Limin Wang > > For dst->have_sse will be assigned by ctx->have_sse soon(code line 23). > > Signed-off-by: Limin Wang > --- > libavcodec/libaomenc.c | 1 - > 1 file changed, 1 deletion(-) > lgtm. ___ ff

[FFmpeg-devel] [PATCH] avcodec/utils, avcodec_open2: close codec on failure

2019-07-09 Thread James Zern
after a successful init if the function fails for another reason close the codec without requiring FF_CODEC_CAP_INIT_CLEANUP which is meant to cover init failures themselves. fixes a memory leak in those cases. BUG=oss-fuzz:15529 Signed-off-by: James Zern --- libavcodec/utils.c | 5 - 1

Re: [FFmpeg-devel] [PATCH, v2 3/3] lavc/libvpxenc: add dynamic resolution encode support for libvpx

2019-07-31 Thread James Zern
Hi, On Tue, Jul 30, 2019 at 10:06 PM Linjie Fu wrote: > [...] > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > index feb52ea..800ba18 100644 > --- a/libavcodec/libvpxenc.c > +++ b/libavcodec/libvpxenc.c > @@ -1067,6 +1067,15 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket

Re: [FFmpeg-devel] [PATCH V2] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-13 Thread James Zern
Hi, On Tue, Aug 13, 2019 at 1:18 AM Guo, Yejun wrote: > > example command line to verify it: > ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M > tmp.webm > > Signed-off-by: Guo, Yejun > --- > configure | 7 ++ > libavcodec/libvpxenc.c | 197 >

Re: [FFmpeg-devel] [PATCH, RFC, v2 3/3] lavc/libvpxenc: add dynamic resolution encode support for libvpx

2019-08-13 Thread James Zern
Hi, On Tue, Aug 13, 2019 at 2:30 AM Linjie Fu wrote: > > According to spec, libvpx should support dynamic resolution changes. > > Add dynamic resolution encoding support in libvpx. > > Only single pass mode with no look ahead is supported for variable > resolution encoding without initialization.

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=28.

2019-08-14 Thread James Zern
Hi, On Tue, Aug 13, 2019 at 8:23 PM elliottk wrote: > > Current default is 256kbps, which produces inconsistent > results (too high for low-res, too low for hi-res). > Use CRF instead, which will adapt. > --- > libavcodec/libaomenc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=28.

2019-08-16 Thread James Zern
Hi, On Thu, Aug 15, 2019 at 1:22 PM elliottk wrote: > > Current default is 256kbps, which produces inconsistent > results (too high for low-res, too low for hi-res). > Use CRF instead, which will adapt. > --- > libavcodec/libaomenc.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(

Re: [FFmpeg-devel] [PATCH V3] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-20 Thread James Zern
Hi, On Tue, Aug 13, 2019 at 8:29 PM Guo, Yejun wrote: > example command line to verify it: > ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M > tmp.webm > > Signed-off-by: Guo, Yejun > --- > libavcodec/libvpxenc.c | 197 > +

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=28.

2019-08-21 Thread James Zern
On Tue, Aug 20, 2019 at 5:31 PM Elliott Karpilovsky wrote: > > I believe the documentation is out of date. I added some debug > statements and verified that variable was being used to pull CRF > values when AOM_Q mode is set. I have > https://aomedia-review.googlesource.com/c/aom/+/94104 out to up

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=32.

2019-08-21 Thread James Zern
On Wed, Aug 21, 2019 at 12:18 PM Elliott Karpilovsky wrote: > > From: elliottk > > Current default is 256kbps, which produces inconsistent > results (too high for low-res, too low for hi-res). > Use CRF instead, which will adapt. > --- > libavcodec/libaomenc.c | 9 + > 1 file changed, 5

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=32.

2019-08-22 Thread James Zern
Hi, On Thu, Aug 22, 2019 at 12:25 AM Moritz Barsnick wrote: > > On Wed, Aug 21, 2019 at 18:03:23 -0700, James Zern wrote: > > > From: elliottk > > > Current default is 256kbps, which produces inconsistent > > > results (too high for low-res, too low for hi-r

Re: [FFmpeg-devel] [PATCH] Change libaom default to crf=32.

2019-08-23 Thread James Zern
On Wed, Aug 21, 2019 at 6:03 PM James Zern wrote: > > On Wed, Aug 21, 2019 at 12:18 PM Elliott Karpilovsky > wrote: > > > > From: elliottk > > > > Current default is 256kbps, which produces inconsistent > > results (too high for low-res, too low for h

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-26 Thread James Zern
Hi, On Thu, Aug 22, 2019 at 5:56 PM Guo, Yejun wrote: > > example command line to verify it: > ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M > tmp.webm > > Signed-off-by: Guo, Yejun > --- > libavcodec/libvpxenc.c | 194 > +++

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-28 Thread James Zern
Hi, On Mon, Aug 26, 2019 at 11:30 PM Guo, Yejun wrote: > > > > > -Original Message- > > From: James Zern [mailto:jz...@google.com] > > Sent: Tuesday, August 27, 2019 12:03 PM > > To: FFmpeg development discussions and patches > > Cc: Guo, Yejun &g

Re: [FFmpeg-devel] [PATCH V5] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

2019-08-28 Thread James Zern
On Wed, Aug 28, 2019 at 10:20 PM Guo, Yejun wrote: > > > > > -Original Message- > > From: James Zern [mailto:jz...@google.com] > > Sent: Thursday, August 29, 2019 12:39 PM > > To: Guo, Yejun > > Cc: FFmpeg development discussions and patches &g

Re: [FFmpeg-devel] [PATCH] lavc/libaomenc: Add -tile-columns/-tile-rows

2018-08-31 Thread James Zern
On Fri, Aug 31, 2018 at 9:40 AM James Almer wrote: > > On 8/31/2018 1:00 PM, Kagami Hiiragi wrote: > > On 31/08/18 18:18, James Almer wrote: > >> On 8/31/2018 11:52 AM, Kagami Hiiragi wrote: > >>> On 31/08/18 02:58, James Almer wrote: > On 8/20/2018 2:56 PM, Kagami Hiiragi wrote: > > Thes

Re: [FFmpeg-devel] [PATCH] avformat/vpcc: fix values in VP9 level detection heuristics

2018-09-14 Thread James Zern
On Fri, Sep 14, 2018 at 6:39 PM James Almer wrote: > > On 8/27/2018 10:59 PM, James Almer wrote: > > The levels are stored as decimal values, not hexadecimal. > > > > Signed-off-by: James Almer > > --- > > libavformat/vpcc.c | 28 ++-- > > 1 file changed, 14 insertions(+)

[FFmpeg-devel] [PATCH] avcodec/libvpxdec: fix setting auto threads

2018-10-27 Thread James Zern
a thread count of 0 is treated the same as 1, use av_cpu_count() to get the correct thread count when auto threads is requested. this matches the fix in libvpxenc: 27df34bf1f avcodec/libvpxenc: fix setting amount of threads used for encoding Signed-off-by: James Zern --- libavcodec/libvpxdec.c

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxdec: fix setting auto threads

2018-10-29 Thread James Zern
On Sat, Oct 27, 2018 at 1:54 PM James Almer wrote: > > On 10/27/2018 5:52 PM, James Zern wrote: > > a thread count of 0 is treated the same as 1, use av_cpu_count() to get > > the correct thread count when auto threads is requested. > > > > this matches the fi

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxdec: fix setting auto threads

2018-10-29 Thread James Zern
On Mon, Oct 29, 2018 at 10:58 PM James Zern wrote: > > On Sat, Oct 27, 2018 at 1:54 PM James Almer wrote: > > > > On 10/27/2018 5:52 PM, James Zern wrote: > > > a thread count of 0 is treated the same as 1, use av_cpu_count() to get > > > the correct thread

[FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-03 Thread James Zern
vp9 now supports [0, 6] Signed-off-by: James Zern --- doc/encoders.texi | 1 + libavcodec/libvpxenc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac49b..3c6f5cd70b 100644 --- a/doc/encoders.texi +++ b/doc

[FFmpeg-devel] [PATCH] libvpxenc,vp9: add enable-tpl option

2018-11-03 Thread James Zern
enables temporal dependency model Signed-off-by: James Zern --- doc/encoders.texi | 2 ++ libavcodec/libvpxenc.c | 11 +++ 2 files changed, 13 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac49b..fced8d7369 100644 --- a/doc/encoders.texi +++ b/doc

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-03 Thread James Zern
On Sat, Nov 3, 2018 at 2:02 PM James Zern wrote: > [...] > #define COMMON_OPTIONS \ > { "auto-alt-ref","Enable use of alternate reference " \ > - "frames (2-pass only)", > OFFSET(auto_alt_ref),

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-05 Thread James Zern
On Sat, Nov 3, 2018 at 2:31 PM James Almer wrote: > > On 11/3/2018 6:04 PM, James Zern wrote: > > On Sat, Nov 3, 2018 at 2:02 PM James Zern wrote: > >> [...] > >> #define COMMON_OPTIONS \ > >> { "auto-alt

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-05 Thread James Zern
On Mon, Nov 5, 2018 at 4:45 PM James Zern wrote: > > On Sat, Nov 3, 2018 at 2:31 PM James Almer wrote: > > > > On 11/3/2018 6:04 PM, James Zern wrote: > > > On Sat, Nov 3, 2018 at 2:02 PM James Zern wrote: > > >> [...] > > >> #define COMMON

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-05 Thread James Zern
On Mon, Nov 5, 2018 at 5:02 PM James Zern wrote: > > vp9 now supports [0, 6] > > Signed-off-by: James Zern > --- > doc/encoders.texi | 1 + > libavcodec/libvpxenc.c | 6 -- > 2 files changed, 5 insertions(+), 2 deletions(-) > This version moves the opt

[FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-05 Thread James Zern
vp9 now supports [0, 6] Signed-off-by: James Zern --- doc/encoders.texi | 1 + libavcodec/libvpxenc.c | 6 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac49b..3c6f5cd70b 100644 --- a/doc/encoders.texi +++ b/doc

Re: [FFmpeg-devel] [PATCH] libvpxenc,vp9: add enable-tpl option

2018-11-08 Thread James Zern
On Sat, Nov 3, 2018 at 2:01 PM James Zern wrote: > > enables temporal dependency model > > Signed-off-by: James Zern > --- > doc/encoders.texi | 2 ++ > libavcodec/libvpxenc.c | 11 +++ > 2 files changed, 13 insertions(+) > If there aren't any co

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-08 Thread James Zern
On Mon, Nov 5, 2018 at 5:03 PM James Zern wrote: > > On Mon, Nov 5, 2018 at 5:02 PM James Zern wrote: > > > > vp9 now supports [0, 6] > > > > Signed-off-by: James Zern > > --- > > doc/encoders.texi | 1 + > > libavcodec/libvpxenc.c | 6

Re: [FFmpeg-devel] [PATCH] libvpxenc,vp9: add enable-tpl option

2018-11-09 Thread James Zern
On Thu, Nov 8, 2018 at 2:46 PM James Zern wrote: > > On Sat, Nov 3, 2018 at 2:01 PM James Zern wrote: > > > > enables temporal dependency model > > > > Signed-off-by: James Zern > > --- > > doc/encoders.texi | 2 ++ > > libavcodec/libvp

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8 temporal scalability configuration options

2018-11-13 Thread James Zern
On Mon, Nov 12, 2018 at 10:37 AM Ard Oerlemans wrote: > > Thanks for the suggestion. I have updated the patch. > Try to keep the original patch message so it's easier to apply. > Ard > > --- > doc/encoders.texi | 28 +++ > libavcodec/libvpxenc.c | 79 +++

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8 temporal scalability configuration options

2018-11-16 Thread James Zern
On Wed, Nov 14, 2018 at 12:56 PM Ard Oerlemans wrote: > > This commit adds configuration options to libvpxenc.c that can be used to > enable VP8 temporal scalability. It also adds a way to programmatically set > the > per-frame encoding flags which can be used to control usage and updates of > re

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8 temporal scalability configuration options

2018-11-19 Thread James Zern
On Fri, Nov 16, 2018 at 8:59 PM James Zern wrote: > > On Wed, Nov 14, 2018 at 12:56 PM Ard Oerlemans > wrote: > > > > This commit adds configuration options to libvpxenc.c that can be used to > > enable VP8 temporal scalability. It also adds a way to programmatically

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-03-17 Thread James Zern
Hi, On Thu, Mar 5, 2020 at 6:20 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > The changes are made according to the code review > - Bump the MICRO version > - Use enum for Super resolution mode consts. The original enum in libaom > is not public so a enum is defined and matched the or

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-03-17 Thread James Zern
Hi, On Thu, Mar 5, 2020 at 6:38 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > Made changes according to the review. > - Bump the MICRO version of libavcodec. > - Use enum for 'tune' option consts for better consistency > > doc/encoders.texi | 11 +++ > libavcodec/libaomenc

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-04-10 Thread James Zern
On Fri, Apr 3, 2020 at 2:10 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 39 +++ > libavcodec/libaomenc.c | 47 ++ > libavcodec/version.h | 2 +- > 3 files changed, 87 insertions(+), 1 d

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-04-10 Thread James Zern
On Fri, Apr 10, 2020 at 10:50 PM James Zern wrote: > > On Fri, Apr 3, 2020 at 2:07 PM Wang Cao wrote: > > > > Signed-off-by: Wang Cao > > --- > > doc/encoders.texi | 9 + > > libavcodec/libaomenc.c | 7 +++ > > libavcodec/version.h

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-04-10 Thread James Zern
On Fri, Apr 3, 2020 at 2:07 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 9 + > libavcodec/libaomenc.c | 7 +++ > libavcodec/version.h | 2 +- > 3 files changed, 17 insertions(+), 1 deletion(-) > lgtm. I'll apply this soon. __

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/libaomenc.c: Add a libaom command-line option 'tune'

2020-04-11 Thread James Zern
On Fri, Apr 10, 2020 at 11:18 PM James Zern wrote: > > On Fri, Apr 10, 2020 at 10:50 PM James Zern wrote: > > > > On Fri, Apr 3, 2020 at 2:07 PM Wang Cao wrote: > > > > > > Signed-off-by: Wang Cao > > > --- > > > doc/encoders.tex

Re: [FFmpeg-devel] [PATCH v4 1/2] libavcodec/libaomenc.c: Support gray input

2020-04-13 Thread James Zern
Hi, On Tue, Apr 7, 2020 at 5:14 PM Ryo Hirafuji wrote: > > From: Ryo Hirafuji > > AV1 decoders, libaomdec and libdav1d, both support grayscale image. > However, libaomenc does not support it yet. > In this patch, I add a grayscale image support also to libaomenc. > > Fixes ticket #7599 > --- >

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-04-13 Thread James Zern
On Tue, Mar 17, 2020 at 7:38 PM James Zern wrote: > > Hi, > > On Thu, Mar 5, 2020 at 6:20 PM Wang Cao wrote: > > > > Signed-off-by: Wang Cao > > --- > > The changes are made according to the code review > > - Bump the MICRO version > > - Use enu

Re: [FFmpeg-devel] [PATCH v4 1/2] libavcodec/libaomenc.c: Support gray input

2020-04-14 Thread James Zern
On Tue, Apr 14, 2020 at 3:57 AM Ryo Hirafuji wrote: > > Thanks for the review! > > This should bump the micro version number in libavcodec/version.h. > > > OK, I will bump up the version when the problem below is solved. > If we want to go for compatibility with different versions of the library

Re: [FFmpeg-devel] [PATCH v4 2/2] libavcodec/libaomenc.c: Support lossless encoding

2020-04-14 Thread James Zern
On Tue, Apr 7, 2020 at 5:14 PM Ryo Hirafuji wrote: > > From: Ryo Hirafuji > > AV1 support lossless encoding. > In this patch, I added a command line flag to enable it. > > Fixes ticket #7600 > --- > libavcodec/libaomenc.c | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) >

Re: [FFmpeg-devel] [PATCH v4 1/2] libavcodec/libaomenc.c: Support gray input

2020-04-15 Thread James Zern
On Wed, Apr 15, 2020 at 8:14 AM James Almer wrote: > > On 4/14/2020 9:26 PM, James Zern wrote: > > On Tue, Apr 14, 2020 at 3:57 AM Ryo Hirafuji > > wrote: > >> > >> Thanks for the review! > >> > >> This should bump the micro version number i

Re: [FFmpeg-devel] [PATCH] avcodec: add a WebP parser

2020-04-16 Thread James Zern
On Mon, Apr 13, 2020 at 5:58 PM James Almer wrote: > > Based on code from the BMP parser. > > Addresses ticket #8574 > > Signed-off-by: James Almer > --- > libavcodec/Makefile | 1 + > libavcodec/parsers.c | 1 + > libavcodec/webp_parser.c | 112 +

Re: [FFmpeg-devel] [PATCH v4 2/2] libavcodec/libaomenc.c: Support lossless encoding

2020-04-21 Thread James Zern
ibaom, because I also use my software) > Sorry, I missed this comment. I don't have any results that would be visible publicly. > 2020年4月15日(水) 10:00 James Zern : > > > On Tue, Apr 7, 2020 at 5:14 PM Ryo Hirafuji > > wrote: > > > > > > From: Ryo Hirafuji &

Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread James Zern
Hi, On Mon, Feb 15, 2021 at 10:37 PM Wonkap Jang wrote: > > While parsing ref_frame_config, AVdictionary needs to be manually > deallocated. > --- > libavcodec/libvpxenc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c > index 284cb9a1

Re: [FFmpeg-devel] [PATCH v1] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread James Zern
On Tue, Feb 16, 2021 at 4:17 PM Wonkap Jang wrote: > > On Tue, Feb 16, 2021 at 1:02 PM James Zern > wrote: > [...] > > > > > > > > while ((en2 = > > av_dict_get(ctx->vpx_ref_frame_config, "", en2, AV_DICT_IGNORE_SUFFIX

Re: [FFmpeg-devel] [PATCH v2] avcodec/libvpxenc: fix potential memory leak.

2021-02-16 Thread James Zern
On Tue, Feb 16, 2021 at 2:29 PM Wonkap Jang wrote: > > While parsing ref_frame_config, AVdictionary needs to be manually > deallocated. > --- > libavcodec/libvpxenc.c | 20 +--- > 1 file changed, 13 insertions(+), 7 deletions(-) > > diff --git a/libavcodec/libvpxenc.c b/libavcodec

Re: [FFmpeg-devel] [PATCH v5] avcodec/libvpxenc: optimize parsing vpx_svc_ref_frame_config

2021-02-18 Thread James Zern
On Thu, Feb 18, 2021 at 11:01 AM Wonkap Jang wrote: > > Getting rid of unnecessary use of AVDictionary object in parsing > vpx_svc_ref_frame_config. > --- > libavcodec/libvpxenc.c | 73 +++--- > 1 file changed, 55 insertions(+), 18 deletions(-) > lgtm, just a

Re: [FFmpeg-devel] [PATCH v5] avcodec/libvpxenc: optimize parsing vpx_svc_ref_frame_config

2021-02-19 Thread James Zern
On Thu, Feb 18, 2021 at 1:17 PM James Zern wrote: > > On Thu, Feb 18, 2021 at 11:01 AM Wonkap Jang > wrote: > > > > Getting rid of unnecessary use of AVDictionary object in parsing > > vpx_svc_ref_frame_config. > > ---

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: remove the experimental flag when using libaom 2.0.0 or newer

2020-05-27 Thread James Zern
On Tue, May 26, 2020 at 6:40 PM James Almer wrote: > > Signed-off-by: James Almer > --- > Alternatively, we could remove support for libaom 1.0.0, since it's pretty > much > unusable. But unfortunately both current Debian Stable and latest Ubuntu LTS > ship it, so i'm not sure if it would be wis

Re: [FFmpeg-devel] [PATCH v4 1/2] libavcodec/libaomenc.c: Support gray input

2020-06-08 Thread James Zern
On Mon, Jun 8, 2020 at 2:56 AM Moritz Barsnick wrote: > > On Sun, May 10, 2020 at 00:59:25 +0900, Ryo Hirafuji wrote: > > I can create and send a new patch without these workaround lines, but of > > course, it will crash if the ffmpeg will be built with older versions of > > libaom. > > Actually,

Re: [FFmpeg-devel] [PATCH 2/5] libavcodec/libaomenc: Add command-line options to control the use of partition tools.

2020-06-29 Thread James Zern
On Thu, Jun 25, 2020 at 6:02 PM Wang Cao wrote: > > This patch adds the control for enabling rectangular partitions, 1:4/4:1 > partitions and AB shape partitions. > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 10 ++ > libavcodec/libaomenc.c | 15 +++ > libavcod

Re: [FFmpeg-devel] [PATCH 3/5] libavcodec/libaomenc.c: Add command-line options for intra-coding tools

2020-06-29 Thread James Zern
On Thu, Jun 25, 2020 at 5:55 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 21 +++ > libavcodec/libaomenc.c | 47 -- > libavcodec/version.h | 2 +- > 3 files changed, 63 insertions(+), 7 deletions(-) >

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-29 Thread James Zern
On Mon, Jun 29, 2020 at 11:05 AM James Zern wrote: > > On Thu, Jun 25, 2020 at 5:55 PM Wang Cao wrote: > > > > From: Wang Cao > > > > Signed-off-by: Wang Cao > > --- > > doc/encoders.texi | 39 ++

Re: [FFmpeg-devel] [PATCH 4/5] libavcodec/libaomenc.c: Add command-line options for tx tools.

2020-06-29 Thread James Zern
On Thu, Jun 25, 2020 at 5:56 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 21 + > libavcodec/libaomenc.c | 31 +++ > libavcodec/version.h | 2 +- > 3 files changed, 53 insertions(+), 1 deletion(-) > > [...] > +

Re: [FFmpeg-devel] [PATCH 5/5] libavcodec/libaomenc.c: Add command-line options for inter-coding tools

2020-06-29 Thread James Zern
On Thu, Jun 25, 2020 at 5:56 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 36 + > libavcodec/libaomenc.c | 61 ++ > libavcodec/version.h | 2 +- > 3 files changed, 98 insertions(+), 1 deletion(-

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/libaomenc.c: Add super-resolution options to libaom wrapper

2020-06-29 Thread James Zern
On Thu, Jun 25, 2020 at 5:55 PM Wang Cao wrote: > > From: Wang Cao > > Signed-off-by: Wang Cao > --- > doc/encoders.texi | 39 +++ > libavcodec/libaomenc.c | 38 ++ > libavcodec/version.h | 2 +- > 3 files changed,

Re: [FFmpeg-devel] [PATCH] Change libvpx-vpx default to crf=32.

2019-09-04 Thread James Zern
Hi, On Wed, Aug 28, 2019 at 2:26 PM Elliott Karpilovsky wrote: > > Current default is 200kbps, which produces inconsistent > results (too high for low-res, too low for hi-res). Use > CRF instead, which will adapt. Affects vp8/vp9. Also > have VP8 use a default bitrate of 256kbps. > --- > libavco

Re: [FFmpeg-devel] [PATCH V8] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-11 Thread James Zern
Hi, On Tue, Sep 10, 2019 at 6:13 PM Guo, Yejun wrote: > > example command line to verify it: > ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M > tmp.webm > > Signed-off-by: Guo, Yejun > --- > libavcodec/libvpxenc.c | 188 > +++

Re: [FFmpeg-devel] [PATCH] Delete unused branch in libaomenc

2019-09-18 Thread James Zern
On Sun, Sep 15, 2019 at 2:03 PM Elliott Karpilovsky wrote: > > --- > libavcodec/libaomenc.c | 14 +- > 1 file changed, 5 insertions(+), 9 deletions(-) > lgtm. This is leftover from libvpxenc, only vp8 can hit the path there. > diff --git a/libavcodec/libaomenc.c b/libavcodec/libaome

Re: [FFmpeg-devel] [PATCH] Delete unused branch in libaomenc

2019-09-18 Thread James Zern
On Wed, Sep 18, 2019 at 11:42 AM James Zern wrote: > > On Sun, Sep 15, 2019 at 2:03 PM Elliott Karpilovsky > wrote: > > > > --- > > libavcodec/libaomenc.c | 14 +- > > 1 file changed, 5 insertions(+), 9 deletions(-) > > > > lgtm. This is

Re: [FFmpeg-devel] [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-18 Thread James Zern
On Wed, Sep 18, 2019 at 7:54 AM Guo, Yejun wrote: > > > > > -Original Message- > > From: Guo, Yejun > > Sent: Thursday, September 12, 2019 6:25 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Guo, Yejun > > Subject: [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for > > VP8/VP9 >

Re: [FFmpeg-devel] [PATCH V9] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9

2019-09-20 Thread James Zern
On Wed, Sep 18, 2019 at 12:03 PM James Zern wrote: > > On Wed, Sep 18, 2019 at 7:54 AM Guo, Yejun wrote: > > > > > > > > > -Original Message- > > > From: Guo, Yejun > > > Sent: Thursday, September 12, 2019 6:25 PM > > > To:

Re: [FFmpeg-devel] [PATCH] Delete unused branch in libaomenc

2019-09-20 Thread James Zern
On Wed, Sep 18, 2019 at 11:42 AM James Zern wrote: > > On Sun, Sep 15, 2019 at 2:03 PM Elliott Karpilovsky > wrote: > > > > --- > > libavcodec/libaomenc.c | 14 +- > > 1 file changed, 5 insertions(+), 9 deletions(-) > > > > lgtm. This is

[FFmpeg-devel] [PATCH] tools/patcheck: remove gcc-2.95 compat check

2019-09-20 Thread James Zern
this conflicts with the current contributing guidance: http://ffmpeg.org/developer.html#Contributing FFmpeg is programmed in the ISO C90 language with a few additional features from ISO C99, namely: ... for loops with variable definition (‘for (int i = 0; i < 8; i++)’); Signed-off-by: James Z

Re: [FFmpeg-devel] [PATCH] tools/patcheck: remove gcc-2.95 compat check

2019-09-21 Thread James Zern
On Fri, Sep 20, 2019 at 12:38 AM Paul B Mahol wrote: > > LGTM > > On 9/20/19, James Zern wrote: > > this conflicts with the current contributing guidance: > > http://ffmpeg.org/developer.html#Contributing > > FFmpeg is programmed in the ISO C90 language with a fe

Re: [FFmpeg-devel] [PATCH] Change libvpxenc default to crf=32.

2019-10-05 Thread James Zern
On Tue, Sep 24, 2019 at 4:31 PM Elliott Karpilovsky wrote: > > Current default is 200kbps, which produces inconsistent > results (too high for low-res, too low for hi-res). Use > CRF instead, which will adapt. Affects VP9. Also have > VP8 use a default bitrate of 256kbps. > --- > libavcodec/libvp

Re: [FFmpeg-devel] [PATCH] Change libvpxenc default to crf=32.

2019-10-07 Thread James Zern
On Sat, Oct 5, 2019 at 1:23 PM James Zern wrote: > > On Tue, Sep 24, 2019 at 4:31 PM Elliott Karpilovsky > wrote: > > > > Current default is 200kbps, which produces inconsistent > > results (too high for low-res, too low for hi-res). Use > > CRF instead, which w

Re: [FFmpeg-devel] [PATCH 2/6] avcodec/libvpxenc: only allocate U/V planes once for the alpha encoder instance

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxenc.c | 44 +++- > 1 file changed, 23 insertions(+), 21 deletions(-) > The encoder can handle frame size changes. This seems to assume the size

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/libvpxenc: fix alpha stride

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:10 AM Marton Balint wrote: > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > lgtm. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.

Re: [FFmpeg-devel] [PATCH 4/6] avcodec/libvpxdec: pass decoder instances to vpx_init directly

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > If the alpha decoder init failed we presented the error message from the > normal > decoder. This change should prevent such mistakes. > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxdec.c | 26 +- > 1 f

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/libvpxdec: make sure BlockAdditional side data size >= 8

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > lgtm. good catch. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org htt

Re: [FFmpeg-devel] [PATCH 5/6] avcodec/libvpxdec: decode to custom framebuffers for vp9

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > This avoids copying the full frame after decoding. > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxdec.c | 73 > ++ > 1 file changed, 68 insertions(+), 5 deletions(-) > lgtm. >

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/libvpxdec: reject video and alpha dimension mismatches

2019-11-01 Thread James Zern
On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxdec.c | 11 +++ > 1 file changed, 11 insertions(+) > lgtm. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org

Re: [FFmpeg-devel] [PATCHv2 2/6] avcodec/libvpxenc: only allocate alpha U/V planes on size changes

2019-11-04 Thread James Zern
On Sat, Nov 2, 2019 at 9:20 AM Marton Balint wrote: > > Signed-off-by: Marton Balint > --- > libavcodec/libvpxenc.c | 60 > ++ > 1 file changed, 36 insertions(+), 24 deletions(-) > lgtm. I'll apply this set of patches soon if there aren't any fur

Re: [FFmpeg-devel] [PATCHv2 2/6] avcodec/libvpxenc: only allocate alpha U/V planes on size changes

2019-11-05 Thread James Zern
On Mon, Nov 4, 2019 at 4:55 PM James Zern wrote: > > On Sat, Nov 2, 2019 at 9:20 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxenc.c | 60 > > ++ > > 1 fi

Re: [FFmpeg-devel] [PATCH 5/6] avcodec/libvpxdec: decode to custom framebuffers for vp9

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 1:01 PM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > This avoids copying the full frame after decoding. > > > > Signed-off-by: Marton Balint > >

Re: [FFmpeg-devel] [PATCH 4/6] avcodec/libvpxdec: pass decoder instances to vpx_init directly

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:55 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > If the alpha decoder init failed we presented the error message from the > > normal > > decoder. This change should prevent such mistakes. > &

Re: [FFmpeg-devel] [PATCH 6/6] avcodec/libvpxdec: reject video and alpha dimension mismatches

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 1:01 PM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxdec.c | 11 +++ > > 1 file changed, 11 insertio

Re: [FFmpeg-devel] [PATCH 1/6] avcodec/libvpxenc: fix alpha stride

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:47 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:10 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxenc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deleti

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/libvpxdec: make sure BlockAdditional side data size >= 8

2019-11-05 Thread James Zern
On Fri, Nov 1, 2019 at 11:52 AM James Zern wrote: > > On Sun, Oct 27, 2019 at 10:11 AM Marton Balint wrote: > > > > Signed-off-by: Marton Balint > > --- > > libavcodec/libvpxdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > &

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/libvpxdec: reject video and alpha dimension mismatches

2019-11-06 Thread James Zern
On Wed, Nov 6, 2019 at 2:21 AM Carl Eugen Hoyos wrote: > > Am Mi., 6. Nov. 2019 um 08:28 Uhr schrieb Marton Balint : > > [...] > > +if (ctx->has_alpha_channel && > > +(img->d_w != img_alpha->d_w || > > + img->d_h != img_alpha->d_h || > > + img->bit_depth

[FFmpeg-devel] [PATCH] avcodec/libvpxdec.c,cosmetics: bpp -> bpc

2019-11-06 Thread James Zern
Signed-off-by: James Zern --- libavcodec/libvpxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvpxdec.c b/libavcodec/libvpxdec.c index 1ae2361167..1063c546b0 100644 --- a/libavcodec/libvpxdec.c +++ b/libavcodec/libvpxdec.c @@ -288,7 +288,7 @@ static int

Re: [FFmpeg-devel] [PATCH] doc/encoders: add VP9 temporal scalability encoding option

2019-12-17 Thread James Zern
Hi, On Mon, Dec 16, 2019 at 2:21 PM Wonkap Jang wrote: > > Documentation change for adding support for encoding > with temporal scalability in VP9. > --- This part sounds related to the other patches you're sending. The documentation can be added with the code change for vp9. > doc/encoders.te

Re: [FFmpeg-devel] [PATCH] doc/encoders: add VP9 temporal scalability encoding option

2019-12-18 Thread James Zern
the code already has > two commits... so overall 4 commits in succession. > The doc fix should land quickly, so the other could be rebased after that. > Would this work? > > Thank you, > > Wonkap > > > On Tue, Dec 17, 2019 at 5:59 PM James Zern > wrote: > &g

Re: [FFmpeg-devel] [PATCH] doc/encoders: correct the description for ts_target_bitrate

2019-12-18 Thread James Zern
Hi, On Wed, Dec 18, 2019 at 1:17 PM Wonkap Jang wrote: > > ts_target_bitrate is in kbps, not bps. This commit clarifies the unit > and modifies the example to match the description. > --- > doc/encoders.texi | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > lgtm if you can verify t

Re: [FFmpeg-devel] [PATCH] doc/encoders: correct the description for ts_target_bitrate

2019-12-19 Thread James Zern
[1] http://ffmpeg.org/contact.html#MailingLists > Thank you, > > Wonkap > > On Wed, Dec 18, 2019 at 1:39 PM James Zern > wrote: > > > Hi, > > > > On Wed, Dec 18, 2019 at 1:17 PM Wonkap Jang > > wrote: > > > > > > ts_target_bitrate is in kbp

Re: [FFmpeg-devel] [PATCH] Add a commandline option to control loop restoration for libaom

2019-12-20 Thread James Zern
On Wed, Dec 18, 2019 at 7:25 PM Wang Cao wrote: > > Signed-off-by: Wang Cao > --- > libavcodec/libaomenc.c | 6 ++ Can you update doc/encoders.texi with this detail please? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/ma

Re: [FFmpeg-devel] [PATCH] doc/encoders: correct the description for ts_target_bitrate

2019-12-20 Thread James Zern
On Wed, Dec 18, 2019 at 4:17 PM Wonkap Jang wrote: > > ts_target_bitrate is in kbps, not bps. This commit clarifies the unit > and modifies the example to match the description. > --- > doc/encoders.texi | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > applied, thanks.

Re: [FFmpeg-devel] [PATCH V1 04/12] lavc/libvpxenc: fix memory leak after av_dict_parse_string fail

2020-01-03 Thread James Zern
Hi, On Tue, Dec 31, 2019 at 9:21 PM Jun Zhao wrote: > > From: Jun Zhao > > In case of failure, all the successfully set entries are stored in > *pm. We need to manually free the created dictionary to avoid > memory leak. > > Signed-off-by: Jun Zhao > --- > libavcodec/libvpxenc.c |3 +-- >

[FFmpeg-devel] [PATCH] avcodec/libvpxenc, cosmetics: prefer sizeof(var)

2020-01-03 Thread James Zern
Signed-off-by: James Zern --- libavcodec/libvpxenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 3f659b4b67..0b8a070304 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -1041,8 +1041,7 @@ static

  1   2   3   4   5   >