Re: [FFmpeg-devel] [PATCH v2] fftools/ffplay: fix rotation incorrect when frame contains the displaymatrix

2022-08-31 Thread zhilizhao(赵志立)
> On Sep 1, 2022, at 12:53 PM, 1035567...@qq.com wrote: > > From: Wang Yaqiang > > For example, if the jpeg contains exif information > and the rotation direction is included in the exif, > the displaymatrix will be set on the side_data of the frame when decoding. > However, when ffplay is use

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: fix av_display_rotation_set() type cast

2022-08-31 Thread Steven Liu
Zhao Zhili 于2022年9月1日周四 10:59写道: > > From: Zhao Zhili > > Signed-off-by: Zhao Zhili > --- > fftools/ffmpeg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c > index fbabbe6ea2..ecaf3bd984 100644 > --- a/fftools/ffmpeg.c > +++ b/fftool

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix rotation incorrect when frame contains the side_data(type is AV_FRAME_DATA_DISPLAYMATRIX)

2022-08-31 Thread Steven Liu
wangyaqiang <1035567...@qq.com> 于2022年9月1日周四 12:05写道: > > > > > 2022年9月1日 上午9:24,Steven Liu 写道: > > > > Steven Liu 于2022年9月1日周四 09:17写道: > >> > >> Zhao Zhili 于2022年9月1日周四 00:34写道: > >>> > >>> > >>> > -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org > On Behalf

[FFmpeg-devel] [PATCH] fftools/ffmpeg: fix av_display_rotation_set() type cast

2022-08-31 Thread Zhao Zhili
From: Zhao Zhili Signed-off-by: Zhao Zhili --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index fbabbe6ea2..ecaf3bd984 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3263,7 +3263,7 @@ static int init_output_

[FFmpeg-devel] [PATCH] lavc/qsvenc: use VBR if maxrate is not specified on Windows

2022-08-31 Thread Xiang, Haihao
From: Haihao Xiang Currently AVBR is disabled and VBR is the default method if maxrate is not specified on Linux, but AVBR is the default one if maxrate is not specified on Windows. In order to make user experience better accross Linux and Windows, use VBR by default on Windows if maxrate is not

Re: [FFmpeg-devel] [PATCH]lavc/tiff: Support multi-component files without RowsPerStrip tag

2022-08-31 Thread Steven Liu
Carl Eugen Hoyos 于2022年9月1日周四 01:48写道: > > Hi! > > Attached patch fixes ticket #9514 for me. > > Please review, Carl Eugen > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe,

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix rotation incorrect when frame contains the side_data(type is AV_FRAME_DATA_DISPLAYMATRIX)

2022-08-31 Thread Steven Liu
Steven Liu 于2022年9月1日周四 09:17写道: > > Zhao Zhili 于2022年9月1日周四 00:34写道: > > > > > > > > > -Original Message- > > > From: ffmpeg-devel-boun...@ffmpeg.org > > > On Behalf Of 1035567...@qq.com > > > Sent: 2022年8月31日 18:45 > > > To: ffmpeg-devel@ffmpeg.org > > > Cc: Wang Yaqiang ; 1445440...@

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix rotation incorrect when frame contains the side_data(type is AV_FRAME_DATA_DISPLAYMATRIX)

2022-08-31 Thread Steven Liu
Zhao Zhili 于2022年9月1日周四 00:34写道: > > > > > -Original Message- > > From: ffmpeg-devel-boun...@ffmpeg.org On > > Behalf Of 1035567...@qq.com > > Sent: 2022年8月31日 18:45 > > To: ffmpeg-devel@ffmpeg.org > > Cc: Wang Yaqiang ; 1445440...@qq.com > > Subject: [FFmpeg-devel] [PATCH] fftools/ffpla

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 \ 2>&1 >/dev/null

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 0/1] add motion_vec (motion vector) debug mode

2022-08-31 Thread Chema Gonzalez
This is useful if you want to see the motion vectors (MV) generated by an encoder. I used ffmpeg debug mode, which is also used by similar functionality, like the QP value dumper. Chema Gonzalez (1): avcodec/mpegutils: add motion_vec debug mode libavcodec/avcodec.h | 1 + libavcodec/mp

Re: [FFmpeg-devel] [PATCH] lavu: header and documentation for AVWriter

2022-08-31 Thread Stefano Sabatini
On date Wednesday 2022-08-24 17:18:28 +0200, Nicolas George wrote: > The actual implementation, tests and uses in the rest of > FFmpeg code will be committed separately once the API is > settled. > > Signed-off-by: Nicolas George > --- > doc/avwriter_intro.md | 109 ++ > libavutil/writer

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Paul B Mahol
On Wed, Aug 31, 2022 at 9:15 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Paul B Mahol: > > diff --git a/libavcodec/ftr.c b/libavcodec/ftr.c > > new file mode 100644 > > index 00..03d490a0c9 > > --- /dev/null > > +++ b/libavcodec/ftr.c > > @@ -0,0 +1,217 @@ > > +/* > >

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Paul B Mahol
New patch updated from feedback received. From c605f6799daeff65d7379c3d10ea7542d9b0ab39 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 30 Aug 2022 17:14:46 +0200 Subject: [PATCH] avcodec: add FTR audio decoder Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 2 + libavcodec/a

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Jean-Baptiste Kempf
On Wed, 31 Aug 2022, at 18:42, Paul B Mahol wrote: > Patch attached. gg -- Jean-Baptiste Kempf - President +33 672 704 734 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit li

Re: [FFmpeg-devel] [PATCH] lavu: header and documentation for AVWriter

2022-08-31 Thread Nicolas George
Andreas Rheinhardt (12022-08-31): > He is not only stack-allocating AVWriter, he also intends to > stack-allocate the actual writers like AVDynbufWriter, AVBufWriter > (AVWriter is just a wrapper around the underlying writers). This means > that no allocations need to be performed for AVBufWriter a

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Andreas Rheinhardt
Paul B Mahol: > diff --git a/libavcodec/ftr.c b/libavcodec/ftr.c > new file mode 100644 > index 00..03d490a0c9 > --- /dev/null > +++ b/libavcodec/ftr.c > @@ -0,0 +1,217 @@ > +/* > + * This file is part of FFmpeg. > + * > + * FFmpeg is free software; you can redistribute it and/or > + * modi

Re: [FFmpeg-devel] [PATCH 1/2] MAINTAINERS: Add ED25519 key for tag/commit signing experiment

2022-08-31 Thread Michael Niedermayer
On Mon, Aug 08, 2022 at 05:43:15PM +0200, Michael Niedermayer wrote: > On Mon, Aug 08, 2022 at 12:16:36PM -0300, James Almer wrote: > > On 8/8/2022 11:50 AM, Michael Niedermayer wrote: > > > From: Michael Niedermayer > > > > > > Signed-off-by: Michael Niedermayer > > > --- > > > MAINTAINERS |

[FFmpeg-devel] [PATCH 1/1] opus_silk: reset midonly flag after skipping LBRR

2022-08-31 Thread Tristan Matthews
Fix suggested by Mark Harris. Fixes ticket #9890 --- libavcodec/opus_silk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/opus_silk.c b/libavcodec/opus_silk.c index 8523b55ada..0b4438388e 100644 --- a/libavcodec/opus_silk.c +++ b/libavcodec/opus_silk.c @@ -828,11 +828,16 @@ i

Re: [FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Andreas Rheinhardt
Paul B Mahol: > Patch attached. > +union { > +uint64_t u64; > +uint8_t u8[8 + AV_INPUT_BUFFER_PADDING_SIZE]; > +} tmp; > + > +*poutbuf_size = 0; > +*poutbuf = NULL; > + > +if (s->flags & PARSER_FLAG_COMPLETE_FRAMES) { > +next = buf_size; > +} else {

[FFmpeg-devel] [PATCH]lavc/tiff: Support multi-component files without RowsPerStrip tag

2022-08-31 Thread Carl Eugen Hoyos
Hi! Attached patch fixes ticket #9514 for me. Please review, Carl Eugen From 98df40635315363bfc248f5c5e94d89bdb261b5b Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 31 Aug 2022 19:37:19 +0200 Subject: [PATCH] lavc/tiff: Support multi-component files without RowsPerStrip tag. Fixes

[FFmpeg-devel] [PATCH] FTR decoder

2022-08-31 Thread Paul B Mahol
Patch attached. From d56c7b938f5a1a291f7a46b0d06ed45f6e723b82 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 30 Aug 2022 17:14:46 +0200 Subject: [PATCH] avcodec: add FTR audio decoder Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 2 + libavcodec/allcodecs.c | 1 + libav

[FFmpeg-devel] [PATCH] avcodec/amr*bdec: return only number of consumed bytes

2022-08-31 Thread Paul B Mahol
Patch attached. From c539fcd63ca339c0299029f9de1b2aff613e3da8 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 31 Aug 2022 18:36:04 +0200 Subject: [PATCH] avcodec/amr*bdec: return only number of consumed bytes Signed-off-by: Paul B Mahol --- libavcodec/amrnbdec.c | 2 +- libavcodec/amrwbd

Re: [FFmpeg-devel] [PATCH] fftools/ffplay: fix rotation incorrect when frame contains the side_data(type is AV_FRAME_DATA_DISPLAYMATRIX)

2022-08-31 Thread Zhao Zhili
> -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org On > Behalf Of 1035567...@qq.com > Sent: 2022年8月31日 18:45 > To: ffmpeg-devel@ffmpeg.org > Cc: Wang Yaqiang ; 1445440...@qq.com > Subject: [FFmpeg-devel] [PATCH] fftools/ffplay: fix rotation incorrect when > frame contains the

Re: [FFmpeg-devel] [PATCH] avfilter/af_alimiter: fix misbehavior when nb_channels != 2

2022-08-31 Thread Paul B Mahol
Already applied long ago. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH v1 2/2] lavf/hls: add option for hls segment request append http get request parameters

2022-08-31 Thread mirsfang
From: mirs Signed-off-by: mirs add option for hls segment request append, default is disable --- libavformat/hls.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 3dc7bd3930..b069cde144 100644 ---

[FFmpeg-devel] [PATCH v1] lavf/hls: add option for hls segment request append http get request parameters

2022-08-31 Thread mirsfang
From: mirs Signed-off-by: mirs --- libavformat/hls.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 3dc7bd3930..3a1cc855c4 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -220,6 +220,7 @@

[FFmpeg-devel] [PATCH v1] avfilter/af_loudnorm: fix incorrect gain when audio is shorter than 3s

2022-08-31 Thread real . zhurui
From: Rui Zhu The input data is multiplied by `s->offset` to get normalized output. `s->target_tp` and `true_peak` is not in dB, so `s->offset` should be calculated by division instead of subtraction. Signed-off-by: Rui Zhu --- libavfilter/af_loudnorm.c | 2 +- 1 file changed, 1 insertion(+),

Re: [FFmpeg-devel] [PATCH v3 2/3] lavf/dashdec: Multithreaded DASH initialization

2022-08-31 Thread Andreas Rheinhardt
Steven Liu: > Andreas Rheinhardt 于2022年8月31日周三 10:54写道: >> 1. We actually have an API to process multiple tasks by different >> threads: Look at libavutil/slicethread.h. Why can't you reuse that? > I saw that usually be used in avfilters for slice multi-thread, or i > misunderstand something? >

Re: [FFmpeg-devel] [PATCH v1 2/3] swscale/la: Add yuv2rgb_lasx.c and rgb2rgb_lasx.c files

2022-08-31 Thread Shiyou Yin
> --- /dev/null > +++ b/libswscale/loongarch/rgb2rgb_lasx.c > @@ -0,0 +1,52 @@ > +/* > + * Copyright (c) 2022 Loongson Technology Corporation Limited > + * Contributed by Hao Chen(chen...@loongson.cn) > + * > + * This file is part of FFmpeg. > + * > + * FFmpeg is free software; you can redistribu

Re: [FFmpeg-devel] [PATCH] avformat/asfdec_o: limit recursion depth in asf_read_unknown()

2022-08-31 Thread Michael Niedermayer
On Wed, Aug 31, 2022 at 01:31:12AM +0200, Michael Niedermayer wrote: > The threshold of 5 is arbitrary, both smaller and larger should work fine > > Fixes: Stack overflow > Fixes: > 50603/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-6049302564175872 > > Found-by: continuous fuzzing pro

Re: [FFmpeg-devel] [PATCH v1 1/3] swscale/la: Optimize hscale functions with lasx.

2022-08-31 Thread Shiyou Yin
> + > +void planar_rgb_to_uv_lasx(uint8_t *_dstU, uint8_t *_dstV, const uint8_t > *src[4], > + int width, int32_t *rgb2yuv) > +{ > +int i; > +uint16_t *dstU = (uint16_t *)_dstU; > +uint16_t *dstV = (uint16_t *)_dstV; > +int set = 0x4001 << (R

Re: [FFmpeg-devel] [PATCH v3 2/3] lavf/dashdec: Multithreaded DASH initialization

2022-08-31 Thread Steven Liu
Andreas Rheinhardt 于2022年8月31日周三 10:54写道: > > Lukas Fellechner: > > This patch adds an "init-threads" option, specifying the max > > number of threads to use. Multiple worker threads are spun up > > to massively bring down init times. > > --- > > libavformat/dashdec.c | 351 ++

Re: [FFmpeg-devel] [PATCH v1] lavf/hls: add option for hls segment request append http get request parameters

2022-08-31 Thread Steven Liu
于2022年8月31日周三 15:16写道: > > From: mirs > > Signed-off-by: mirs > > add option for hls when client reqeust segment url maybe use get parameters > for user authenticatio > > --- > libavformat/hls.c | 36 +--- > 1 file changed, 29 insertions(+), 7 deletions(-) > > d

[FFmpeg-devel] [PATCH v1] lavf/hls: add option for hls segment request append http get request parameters

2022-08-31 Thread mirsfang
From: mirs Signed-off-by: mirs add option for hls when client reqeust segment url maybe use get parameters for user authenticatio --- libavformat/hls.c | 36 +--- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hl