Re: [FFmpeg-devel] [PATCH 1/3] avcodec/lagarith: Check dst/src in zero run code

2022-07-13 Thread Paul B Mahol
On Tue, Jul 12, 2022 at 8:43 PM Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 48799/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-4764457825337344 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > S

Re: [FFmpeg-devel] Request: make framepool visible externally

2022-07-13 Thread Marco Vianini
Actually I was speaking about framepool, and not bufferpool. framepool is intended to get an "AVFrame *" from a pool, by "ff_frame_pool_get". At the moment it is available only internally to "libavfilter". It permits an important improvement on performances, by using a pool. So it should be very

Re: [FFmpeg-devel] [PATCH v2 3/5] libswscale: Avx2 hscale can process inputs of any size.

2022-07-13 Thread Alan Kelly
Hi, Are there any further comments on this patch or can it be committed? Thanks, Alan On Tue, Apr 26, 2022 at 10:00 AM Alan Kelly wrote: > The main loop processes blocks of 16 pixels. The tail processes blocks > of size 4. > --- > libswscale/x86/scale_avx2.asm | 44 ++

Re: [FFmpeg-devel] [PATCH v2 4/5] libswscale: Enable hscale_avx2 for all input sizes.

2022-07-13 Thread Alan Kelly
Pushing this back up to the top. This is required to enable the previous patch in this chain. Thanks On Fri, Apr 22, 2022 at 10:04 AM Alan Kelly wrote: > Ping! > > On Thu, Feb 17, 2022 at 11:04 AM Alan Kelly wrote: > >> ff_shuffle_filter_coefficients shuffles the tail as required. >> --- >> li

Re: [FFmpeg-devel] Request: make framepool visible externally

2022-07-13 Thread Marco Vianini
Yes, I know the version 4.1.6 is very old. But I stuck in 4.1.x versions because I need NDI support. In the file "framepool.h" there are only some very high level functions to deal with AVFrame pool: "FFFramePool *ff_frame_pool_video_init(...);FFFramePool *ff_frame_pool_audio_init(...);void ff_f

[FFmpeg-devel] [PATCH 1/9] lavu/frame: add a duration field to AVFrame

2022-07-13 Thread Anton Khirnov
The only duration field currently present in AVFrame is pkt_duration, which is semantically restricted to those frames that are output by decoders. Add a new field that stores the frame's duration without regard for how that frame was produced. Deprecate pkt_duration. --- doc/APIchanges | 3

[FFmpeg-devel] [PATCH 4/9] lavf: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- libavformat/mux.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 31361f9b46..a3b50dadb6 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -1417,7 +1417,14 @@ static int write_uncoded_frame_internal(AVFormatContext

[FFmpeg-devel] [PATCH 3/9] lavfi: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- doc/filters.texi| 2 +- libavfilter/buffersrc.c | 7 +++ libavfilter/f_loop.c| 14 ++ libavfilter/vf_deshake_opencl.c | 7 +++ libavfilter/vf_drawtext.c | 16 5 files changed, 45 insertions(+), 1 deletion(-) dif

[FFmpeg-devel] [PATCH 6/9] ffprobe: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- fftools/ffprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f156663019..a041241e1e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2570,8 +2570,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AV

[FFmpeg-devel] [PATCH 8/9] tests/api: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- tests/api/api-h264-test.c | 2 +- tests/api/api-seek-test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c index b9230c65cb..c89f1ba41a 100644 --- a/tests/api/api-h264-test.c +++ b/tests/api/api-h264-test.c @@ -154,7

[FFmpeg-devel] [PATCH 5/9] lavd: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- libavdevice/alsa_enc.c| 9 - libavdevice/pulse_audio_enc.c | 9 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/libavdevice/alsa_enc.c b/libavdevice/alsa_enc.c index ac09e33c49..e461829d03 100644 --- a/libavdevice/alsa_enc.c +++ b/libavdevice/alsa_enc.

[FFmpeg-devel] [PATCH 2/9] lavc: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- libavcodec/crystalhd.c | 2 +- libavcodec/cuviddec.c | 2 +- libavcodec/decode.c| 14 ++ libavcodec/encode.c| 11 ++- libavcodec/gifdec.c| 2 +- libavcodec/libdav1d.c | 2 +- libavcodec/mfenc.c | 2 +- libavcodec/rawdec.c| 2 +- 8 files changed,

[FFmpeg-devel] [PATCH 9/9] lavfi/vf_showinfo: print frame durations

2022-07-13 Thread Anton Khirnov
--- libavfilter/vf_showinfo.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 6efcafce28..2c8514fc80 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -709,10 +709,13 @@ static int filter

[FFmpeg-devel] [PATCH 7/9] ffmpeg: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Anton Khirnov
--- fftools/ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e7384f052a..effcfa1b91 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1107,8 +1107,8 @@ static void do_video_out(OutputFile *of, (nb_filtergra

[FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Marco Vianini
You can get a very big improvement of performances in the special (but very likely) case of: "(dst_linesize == bytewidth && src_linesize == bytewidth)" In this case in fact We can "Coalesce rows", that is using ONLY ONE MEMCPY, instead of a smaller memcpy for every row (that is looping for heig

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Paul B Mahol
On Wed, Jul 13, 2022 at 11:38 AM Marco Vianini < marco_vianini-at-yahoo...@ffmpeg.org> wrote: > You can get a very big improvement of performances in the special (but > very likely) case of: "(dst_linesize == bytewidth && src_linesize == > bytewidth)" > > In this case in fact We can "Coalesce row

[FFmpeg-devel] [PATCH] fftools/ffmpeg: rework -shortest implementation

2022-07-13 Thread Anton Khirnov
The -shortest option (which finishes the output file at the time the shortest stream ends) is currently implemented by faking the -t option when an output stream ends. This approach is fragile, since it depends on the frames/packets being processed in a specific order. E.g. there are currently some

Re: [FFmpeg-devel] [PATCH 01/35] fftools/ffmpeg_mux: add private muxer context

2022-07-13 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-07-08 18:58:11) > On Fri, Jun 17, 2022 at 12:27:18PM +0200, Anton Khirnov wrote: > > The current version of this set can also be found in my tree > > git://git.khirnov.net/libav > > branch ffmpeg_mt/mux > > There are really many files changing, its hard to say for

Re: [FFmpeg-devel] [EXTERNAL] [PATCH] [PATCH] libavformat/mov: Expose Quicktime poster_time value as metadata TAG.

2022-07-13 Thread Anton Khirnov
Quoting Bryce Newman (2022-07-12 19:20:17) > Hello, > Can someone please have a look at this patch request? > Thank you in advance. Metadata is intended for user-presentable strings, not structured values. The least bad way of exporting this I can think of is adding a demuxer-private AV_OPT_FLAG_

Re: [FFmpeg-devel] [PATCH 1/2] libavutil: Add av_visibility_hidden for setting hidden symbol visibility

2022-07-13 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-07-11 12:57:32) > > > > Good point - attribute.h would otherwise have been the natural spot, but > > I agree that it'd be better to not make it public at all. In what header > > would you prefer to have it? > > > > The typical place we put such things is libavuti

Re: [FFmpeg-devel] [PATCH 3/3] avcodec: Make init-threadsafety the default

2022-07-13 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2022-07-10 01:10:21) > and remove FF_CODEC_CAP_INIT_THREADSAFE > All our native codecs are already init-threadsafe > (only wrappers for external libraries and hwaccels > are typically not marked as init-threadsafe yet), > so it is only natural for this to also be the def

Re: [FFmpeg-devel] Request: make framepool visible externally

2022-07-13 Thread James Almer
On 7/13/2022 5:03 AM, Marco Vianini wrote: Actually I was speaking about framepool, and not bufferpool. framepool is intended to get an "AVFrame *" from a pool, by "ff_frame_pool_get". At the moment it is available only internally to "libavfilter". It permits an important improvement on perform

Re: [FFmpeg-devel] [PATCH v3] ffmpeg: add option -isync

2022-07-13 Thread Anton Khirnov
Quoting Gyan Doshi (2022-07-11 08:46:48) > > > On 2022-07-11 12:21 am, Anton Khirnov wrote: > > Quoting Gyan Doshi (2022-07-10 20:02:38) > >> > >> On 2022-07-10 10:46 pm, Anton Khirnov wrote: > >>> Quoting Gyan Doshi (2022-07-08 05:56:21) > On 2022-07-07 03:11 pm, Anton Khirnov wrote: >

Re: [FFmpeg-devel] [PATCH 6/9] ffprobe: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread James Almer
You should probably add new entries to the schema file instead. https://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/ffprobe.xsd;h=3af621a17ae884adfeacb7cd50c60e1553808188;hb=HEAD#l93 Once frame->pkt_duration is gone, ffprobe shouldn't keep printing a frame->duration value as "pkt_duration" and

Re: [FFmpeg-devel] [PATCH v3] ffmpeg: add option -isync

2022-07-13 Thread Gyan Doshi
On 2022-07-13 06:00 pm, Anton Khirnov wrote: Quoting Gyan Doshi (2022-07-11 08:46:48) On 2022-07-11 12:21 am, Anton Khirnov wrote: Quoting Gyan Doshi (2022-07-10 20:02:38) On 2022-07-10 10:46 pm, Anton Khirnov wrote: Quoting Gyan Doshi (2022-07-08 05:56:21) On 2022-07-07 03:11 pm, Anton K

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mxfdec: SMPTE RDD 48:2018 support

2022-07-13 Thread Dave Rice
> On Jul 11, 2022, at 5:44 PM, Michael Niedermayer > wrote: > > Signed-off-by: Michael Niedermayer > --- > libavformat/mxf.c| 3 +++ > libavformat/mxf.h| 1 + > libavformat/mxfdec.c | 48 > 3 files changed, 52 insertions(+) > > diff --git a

Re: [FFmpeg-devel] [PATCH 3/9] lavfi: use AVFrame.duration instead of AVFrame.pkt_duration

2022-07-13 Thread Nicolas George
Anton Khirnov (12022-07-13): > --- > doc/filters.texi| 2 +- > libavfilter/buffersrc.c | 7 +++ > libavfilter/f_loop.c| 14 ++ > libavfilter/vf_deshake_opencl.c | 7 +++ > libavfilter/vf_drawtext.c | 16 > 5 files ch

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Marco Vianini
I did following tests on Windows 10 64bit.I compiled code in Release. I copied my pc camera frames 1000 times (resolution 1920x1080): With Coalesce (MY PATCH):copy_cnt=100  size=1920x1080 tot_time_copy(us)=36574 (average=365.74)copy_cnt=200  size=1920x1080 tot_time_copy(us)=78207 (average=391.03

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Paul B Mahol
On Wed, Jul 13, 2022 at 5:02 PM Marco Vianini < marco_vianini-at-yahoo...@ffmpeg.org> wrote: > I did following tests on Windows 10 64bit.I compiled code in Release. > I copied my pc camera frames 1000 times (resolution 1920x1080): > With Coalesce (MY PATCH):copy_cnt=100 size=1920x1080 > tot_time

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Timo Rothenpieler
On 13.07.2022 11:38, Marco Vianini wrote: You can get a very big improvement of performances in the special (but very likely) case of: "(dst_linesize == bytewidth && src_linesize == bytewidth)" Isn't all that matters dst_linesize == src_linesize, and then you can memcpy() the whole plane?

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread Marco Vianini
On Wednesday, July 13, 2022 at 05:08:27 PM GMT+2, Paul B Mahol wrote: On Wed, Jul 13, 2022 at 5:02 PM Marco Vianini < marco_vianini-at-yahoo...@ffmpeg.org> wrote: >  I did following tests on Windows 10 64bit.I compiled code in Release. > I copied my pc camera frames 1000 times (reso

Re: [FFmpeg-devel] Request: make framepool visible externally

2022-07-13 Thread Marco Vianini
On Wednesday, July 13, 2022 at 02:02:18 PM GMT+2, James Almer wrote: On 7/13/2022 5:03 AM, Marco Vianini wrote: >  Actually I was speaking about framepool, and not bufferpool. > framepool is intended to get an "AVFrame *" from a pool, by > "ff_frame_pool_get". > At the moment it is

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-07-13 Thread Vignesh Venkatasubramanian
On Wed, Jun 29, 2022 at 10:15 AM Vignesh Venkatasubramanian wrote: > > On Wed, Jun 29, 2022 at 12:24 AM Paul B Mahol wrote: > > > > > > > > On Wed, Jun 29, 2022 at 9:21 AM Paul B Mahol wrote: > >> > >> > >> > >> On Tue, Jun 28, 2022 at 9:01 PM Vignesh Venkatasubramanian > >> wrote: > >>> > >>>

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-07-13 Thread Paul B Mahol
It is merged already. ___ 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 1/2] avformat/mov: Rework the AVIF parser to handle multiple items

2022-07-13 Thread Vignesh Venkatasubramanian
Stores the item ids of all the items found in the file and processes the primary item at the end of the meta box. This patch does not change any behavior. It sets up the code for parsing alpha channel (and possibly images with 'grid') in follow up patches. Signed-off-by: Vignesh Venkatasubramanian

Re: [FFmpeg-devel] [PATCH 1/2] avformat/mov: Rework the AVIF parser to handle multiple items

2022-07-13 Thread Vignesh Venkatasubramanian
On Mon, Jul 11, 2022 at 3:25 PM James Zern wrote: > > On Thu, Jun 30, 2022 at 2:04 PM Vignesh Venkatasubramanian > wrote: > > > > Stores the item ids of all the items found in the file and > > processes the primary item at the end of the meta box. This patch > > does not change any behavior. It s

Re: [FFmpeg-devel] [PATCH] avfilter/xstack: Add support for fixed size grid

2022-07-13 Thread Vignesh Venkatasubramanian
On Wed, Jul 13, 2022 at 9:08 AM Paul B Mahol wrote: > > > It is merged already. Oops, sorry about that. Thanks for merging! -- Vignesh ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscri

Re: [FFmpeg-devel] Performances improvement in "image_copy_plane"

2022-07-13 Thread James Almer
On 7/13/2022 12:54 PM, Marco Vianini wrote: Sorry, my mail client was using html format. I hope now the mail will be sent correctly. You can get a very big improvement of performances in the special (but very likely) case of: "(dst_linesize == bytewidth && src_linesize == bytewidth)" In this

[FFmpeg-devel] [PATCH] avcodec/aacdec: don't force HE-AACv2 profile if no PS info is present

2022-07-13 Thread James Almer
Should fix ticket #3361 Signed-off-by: James Almer --- This also needs an update to some fate ref samples i'll upload before pushing (fate-aac-al_sbr_ps_04_ur and fate-aac-al_sbr_ps_06_ur which are now decoded properly as he_aac mono, so the .s16 files need to be replaced). libavcodec/aacdec_te

Re: [FFmpeg-devel] [PATCH] lavc/aarch64: Add pix_abs16_x2 neon implementation

2022-07-13 Thread Martin Storsjö
On Tue, 12 Jul 2022, Hubert Mazur wrote: Provide neon implementation for pix_abs16_x2 function. Performance tests of implementation are below. - pix_abs_0_1_c: 283.5 - pix_abs_0_1_neon: 39.0 Benchmarks and tests run with checkasm tool on AWS Graviton 3. Signed-off-by: Hubert Mazur --- libavc

[FFmpeg-devel] [PATCH 1/2] x86: Don't hardcode the height to 8 in sad8_xy2_mmx

2022-07-13 Thread Martin Storsjö
The height is hardcoded in some of the me_cmp functions, but not in all of them. But in the case of all other functions, it's hardcoded in the same place in SIMD functions as in the C reference functions, while this one function differs from the behaviour of the C code. (Before 542765ce3eccbca587d

[FFmpeg-devel] [PATCH 2/2] RFC: checkasm: motion: Test different h parameters

2022-07-13 Thread Martin Storsjö
Previously, the checkasm test always passed h=8, so no other cases were tested. Out of the me_cmp functions, in practice, some functions are hardcoded to always assume a 8x8 block (ignoring the h parameter), while others do use the parameter. For those with hardcoded height, both the reference C f

[FFmpeg-devel] [PATCH 1/5] libavcodec: aarch64: Don't clobber v8 in the h%4 case in ff_pix_abs16_xy2_neon

2022-07-13 Thread Martin Storsjö
Checkasm doesn't currently test this codepath. --- libavcodec/aarch64/me_cmp_neon.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/aarch64/me_cmp_neon.S b/libavcodec/aarch64/me_cmp_neon.S index e49d049fc2..31db3793d9 100644 --- a/libavcodec/aarch64/me_cmp_neon.S

[FFmpeg-devel] [PATCH 2/5] checkasm: motion: Make the benchmarks more stable

2022-07-13 Thread Martin Storsjö
Don't use the last random offset, but a static one. --- tests/checkasm/motion.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/checkasm/motion.c b/tests/checkasm/motion.c index 79e4358941..87b20d1c10 100644 --- a/tests/checkasm/motion.c +++ b/tests/checkasm/motion.c @@

[FFmpeg-devel] [PATCH 3/5] aarch64: me_cmp: Interleave some of the loads in ff_pix_abs16_xy2_neon

2022-07-13 Thread Martin Storsjö
Before: Cortex A53A72A73 Graviton 3 pix_abs_0_3_neon: 183.7 112.7 97.5 41.2 After: pix_abs_0_3_neon: 175.7 109.2 92.0 41.2 --- libavcodec/aarch64/me_cmp_neon.S | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/libavcodec/aarch64

[FFmpeg-devel] [PATCH 4/5] aarch64: me_cmp: Switch from uabd to uabal in ff_pix_abs16_xy2_neon

2022-07-13 Thread Martin Storsjö
Using absolute-difference-accumulate does use twice the amount of absolute-difference instructions, but avoids the need for the uaddl and add instructions, reducing the total number of instructions by 3. These can be interleaved in the rest of the calculation, to avoid tight dependencies at the en

[FFmpeg-devel] [PATCH 5/5] aarch64: me_cmp: Don't do uaddlv once per iteration

2022-07-13 Thread Martin Storsjö
The max height is 16; the max difference per pixel is 255, and a .8h element can easily contain 16*255, thus keep accumulating in two .8h vectors, and just do the final accumulation at the end. This requires a minor register renumbering in ff_pix_abs16_xy2_neon. Before: Cortex A53A72

[FFmpeg-devel] [PATCH v2] libavcodec: Set hidden visibility on global symbols accessed from AArch64 assembly

2022-07-13 Thread Martin Storsjö
The AArch64 assembly accesses those symbols directly, without indirection via e.g. the GOT on ELF. In order for this not to require text relocations, those symbols need to be resolved fully at link time, i.e. those symbols can't be interposable. Normally, so far, this is achieved when linking shar

Re: [FFmpeg-devel] [PATCH 01/35] fftools/ffmpeg_mux: add private muxer context

2022-07-13 Thread Michael Niedermayer
On Wed, Jul 13, 2022 at 12:58:54PM +0200, Anton Khirnov wrote: > Quoting Michael Niedermayer (2022-07-08 18:58:11) > > On Fri, Jun 17, 2022 at 12:27:18PM +0200, Anton Khirnov wrote: > > > The current version of this set can also be found in my tree > > > git://git.khirnov.net/libav > > > branch ffm

Re: [FFmpeg-devel] [PATCH v2 2/4] lavc/hevcdec: do not let missing ref frames invovled in dpb process

2022-07-13 Thread Xiang, Haihao
On Tue, 2022-06-14 at 09:23 +0800, Fei Wang wrote: > From: Xu Guangxin > > We will generate a new frame for a missed reference. The frame can only > be used for reference. We assign an invalid decode sequence to it, so > it will not be involved in any dpb process. > > Tested-by: Fei Wang > Sign

Re: [FFmpeg-devel] [PATCH] libavcodec/qsvenc: Use parameter from AVCodecContext to reset qsv codec

2022-07-13 Thread Chen, Wenbin
> Using parameter from AVCodecContext to reset qsv codec is more suitable > for MFXVideoENCODE_Reset()'s usage. Per-frame metadata is more suitable > for the usage of mfxEncodeCtrl being passed to > MFXVideoENCODE_EncodeFrameAsync(). Now change it to use the value > from AVCodecContext. > > Signed

[FFmpeg-devel] [PATCH 2/2] avformat/flvdec: make key frame timestamps more accurate

2022-07-13 Thread Zhao Zhili
From: Zhao Zhili There is an implicit cast from double to int64_t in time unit of second. --- libavformat/flvdec.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index c5d3c63bd0..a78d720295 100644 --- a/libavform

[FFmpeg-devel] [PATCH 1/2] avformat/flvenc: fix timestamp of key frame index

2022-07-13 Thread Zhao Zhili
From: Zhao Zhili Firstly, the timestamps generated from framerate are inaccurate for variable framerate mode. Secondly, the timestamps always start from zero, while pts/dts can start from nonzero. FLV demuxer rejects such index with message: "Found invalid index entries, clearing the index". ---

Re: [FFmpeg-devel] [PATCH v2 3/4] lavc/hevc_refs: exclude current frame from long term refs

2022-07-13 Thread Xiang, Haihao
On Tue, 2022-06-14 at 09:23 +0800, Fei Wang wrote: > From: Xu Guangxin > > suppose > a. You have 3 frames, 0, 1, 4096. > b. The ltMask is 0xfff and use_msb is 0. > c. The 0, 1 are lt refs for 4096. > d. you are decoding frame 4096, and get the 0 frame. > Since 4096 & ltMask is 0 too, even you wan

Re: [FFmpeg-devel] [PATCH 01/35] fftools/ffmpeg_mux: add private muxer context

2022-07-13 Thread Anton Khirnov
Quoting Michael Niedermayer (2022-07-14 00:12:59) > On Wed, Jul 13, 2022 at 12:58:54PM +0200, Anton Khirnov wrote: > > Quoting Michael Niedermayer (2022-07-08 18:58:11) > > > On Fri, Jun 17, 2022 at 12:27:18PM +0200, Anton Khirnov wrote: > > > > The current version of this set can also be found in

Re: [FFmpeg-devel] [PATCH v2 4/4] lavc/hevcdec: respect the value of no_output_of_prior_pics_flag

2022-07-13 Thread Xiang, Haihao
On Tue, 2022-06-14 at 09:23 +0800, Fei Wang wrote: > From: Xu Guangxin > > Even resolution or number of picture stores changes, we still need > follow no_output_of_prior_pics_flag in next IDR. > > Tested-by: Fei Wang > Signed-off-by: Xu Guangxin > --- > libavcodec/hevcdec.c | 7 --- > 1 f

Re: [FFmpeg-devel] [PATCH v3] ffmpeg: add option -isync

2022-07-13 Thread Anton Khirnov
Quoting Gyan Doshi (2022-07-10 20:02:38) > > > On 2022-07-10 10:46 pm, Anton Khirnov wrote: > > Quoting Gyan Doshi (2022-07-08 05:56:21) > >> > >> On 2022-07-07 03:11 pm, Anton Khirnov wrote: > >>> Quoting Gyan Doshi (2022-07-04 18:29:12) > This is a per-file input option that adjusts an inp