Re: [FFmpeg-devel] [PATCH v2 3/9] avcodec/av1dec: support setup shear process

2021-07-04 Thread Wang, Fei W
On Mon, 2021-07-05 at 07:12 +0200, Jean-Baptiste Kempf wrote: > On Mon, 5 Jul 2021, at 04:29, Fei Wang wrote: > > Defined in spec 7.11.3.6/7.11.3.7. > > ... > > +static const uint16_t div_lut[AV1_DIV_LUT_NUM] = { > > + 16384, 16320, 16257, 16194, 16132, 16070, 16009, 15948, 15888, > > 15828,

Re: [FFmpeg-devel] [PATCH v2 3/9] avcodec/av1dec: support setup shear process

2021-07-04 Thread Jean-Baptiste Kempf
On Mon, 5 Jul 2021, at 04:29, Fei Wang wrote: > Defined in spec 7.11.3.6/7.11.3.7. ... > +static const uint16_t div_lut[AV1_DIV_LUT_NUM] = { > + 16384, 16320, 16257, 16194, 16132, 16070, 16009, 15948, 15888, > 15828, 15768, Where are those numbers coming from? From the spec? From an annex?

[FFmpeg-devel] [PATCH v2 9/9] avcodec/av1_vaapi: improve decode quality

2021-07-04 Thread Fei Wang
- quantizer delta and matrix level specific. - support loop filter delta. - support use superres. Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 67 ++ 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/libavcodec/vaapi_av1.c

[FFmpeg-devel] [PATCH v2 8/9] avcodec/av1_vaapi: enable segmentation features

2021-07-04 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index 81b13bb1aa..6aaabed2c1 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -63,6 +63,9 @@ static int

[FFmpeg-devel] [PATCH v2 7/9] avcodec/av1_vaapi: set display surface when apply film grain

2021-07-04 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index f577447be4..81b13bb1aa 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -76,7 +76,7 @@ static int

[FFmpeg-devel] [PATCH v2 6/9] avcodec/av1dec: add display frame for film grain usage

2021-07-04 Thread Fei Wang
Make it flexible if decode frame(without apply film grain) and display frame(applied film grain) both needed when decode film grain clips. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 43 ++- libavcodec/av1dec.h | 3 +++ 2 files changed, 45

[FFmpeg-devel] [PATCH v2 5/9] avcodec/vaapi: increase av1 decode pool size

2021-07-04 Thread Fei Wang
For film grain clip, vaapi_av1 decoder will cache additional 8 surfaces that will be used to store frames which apply film grain. So increase the pool size by plus 8 to avoid leak of surface. Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 2 +- 1 file changed, 1 insertion(+), 1

[FFmpeg-devel] [PATCH v2 4/9] avcodec/av1_vaapi: add gm params valid check

2021-07-04 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index 16b7e35747..f577447be4 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -213,7 +213,8 @@ static int

[FFmpeg-devel] [PATCH v2 3/9] avcodec/av1dec: support setup shear process

2021-07-04 Thread Fei Wang
Defined in spec 7.11.3.6/7.11.3.7. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 97 + libavcodec/av1dec.h | 1 + 2 files changed, 98 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 1dda0f9160..3fca17e84b 100644 ---

[FFmpeg-devel] [PATCH v2 1/9] cbs_av1: fix incorrect data type

2021-07-04 Thread Fei Wang
Since order_hint_bits_minus_1 range is 0~7, cur_frame_hint can be most 128. And similar return value for cbs_av1_get_relative_dist. So if plus them and use int8_t for the result may lose its precision. Signed-off-by: Fei Wang --- v2 update: 1. use int16_t instead of int. 2. updated commit

[FFmpeg-devel] [PATCH v2 2/9] avcodec/av1: extend some definitions in spec section 3

2021-07-04 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/av1.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/av1.h b/libavcodec/av1.h index 0f99ae4829..951a18ecb2 100644 --- a/libavcodec/av1.h +++ b/libavcodec/av1.h @@ -114,6 +114,13 @@ enum { AV1_WARP_MODEL_TRANSLATION = 1,

[FFmpeg-devel] [PATCH][libavcodec] Duckduckgo Truemotion 1 - some code cleanup and preparation for addition of sprite support

2021-07-04 Thread ffmpegandmahanstreamer
These are some cosmetic changes and also priming the decoder for sprite support (which i plan on adding). This patch was mainly for me to get used to the git email patch flow, if anything. Of course the decoder still works as it was before (i tested it). --- libavcodec/truemotion1.c | 41

Re: [FFmpeg-devel] [PATCH 1/9] cbs_av1: fix incorrect data type

2021-07-04 Thread Wang, Fei W
On Fri, 2021-07-02 at 08:29 -0300, James Almer wrote: > On 7/2/2021 2:55 AM, Wang, Fei W wrote: > > On Thu, 2021-07-01 at 09:41 -0300, James Almer wrote: > > > On 6/17/2021 3:10 AM, Fei Wang wrote: > > > > shifted_order_hints is computed by data with int plus data with > > > > int. > > > > Switch

Re: [FFmpeg-devel] [PATCH v2 3/3] avformat/rtsp: Include rtcp in port range check

2021-07-04 Thread Martin Storsjö
On Sun, 4 Jul 2021, Andriy Gelman wrote: From: Andriy Gelman Currently it is only checked that the rtp port does not exceed rtp_port_max. Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c

Re: [FFmpeg-devel] [PATCH] avcodec/mjpegdec: Try to continue decoding on zero quant matrix value

2021-07-04 Thread Michael Niedermayer
On Sat, Jul 03, 2021 at 12:25:28PM -0400, Andriy Gelman wrote: > From: Andriy Gelman > > A zero value in the quantization matrix is invalid but in practice will > just set the transform coefficient to zero after inverse quantization. > Try to continue decoding if the AV_EF_EXPLODE flag is not

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: Add new variant source_no_drop to the force_key_frames option

2021-07-04 Thread Michael Niedermayer
On Sun, Jun 20, 2021 at 09:48:29PM +0200, Thilo Borgmann wrote: > Hi, > > adds a new variant to the -force_key_frames option "source_no_drop" to make > sure whenever a key frame in the source is dropped, we choose the next frame > in the output stream as a key frame. > > -Thilo >

Re: [FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-04 Thread emcodem
Am 2021-07-04 20:28, schrieb emco...@ffastrans.com: Am 2021-07-04 17:28, schrieb Marton Balint: On Sat, 3 Jul 2021, Tomas Härdin wrote: lör 2021-07-03 klockan 15:13 +0200 skrev emco...@ffastrans.com: Unfortunately the wetransfer link for the fate samples expired, so i thought it might be a

Re: [FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-04 Thread emcodem
Am 2021-07-04 17:28, schrieb Marton Balint: On Sat, 3 Jul 2021, Tomas Härdin wrote: lör 2021-07-03 klockan 15:13 +0200 skrev emco...@ffastrans.com: Unfortunately the wetransfer link for the fate samples expired, so i thought it might be a good idea to resend it as link to gdrive:

Re: [FFmpeg-devel] [PATCH] avfilter/f_metadata: do not return the frame early if there is no metadata

2021-07-04 Thread Marton Balint
On Wed, 23 Jun 2021, Marton Balint wrote: On Wed, 23 Jun 2021, Gyan Doshi wrote: On 2021-06-23 06:11, Marton Balint wrote: The early return caused isses for the "add" mode (got fixed in c95dfe5cce98cde3e7fb14fbd04b3897f3927cec) and the "select" mode needs a similar fix. It is

[FFmpeg-devel] [PATCH v1 1/2] avfilter/vf_subtitles: Reorganized subtitles filter options.

2021-07-04 Thread Manolis Stamatogiannakis
Some options are common between subtitles/ass filters. Rather than mentioning for each option whether it is common or not, the options are now displayed in two separate tables. Signed-off-by: Manolis Stamatogiannakis --- doc/filters.texi | 12 1 file changed, 8 insertions(+), 4

[FFmpeg-devel] [PATCH v1 2/2] avfilter/vf_subtitles: Added shift option for subtitles/ass filters.

2021-07-04 Thread Manolis Stamatogiannakis
Allows shifting of subtitle display times to align them with the video. This avoids having to rewrite the subtitle file in order to display subtitles correctly when input is seeked (-ss). Also handy for minor subtitle timing corrections without rewriting the subtitles file. Signed-off-by: Manolis

[FFmpeg-devel] [PATCH v2 3/3] avformat/rtsp: Include rtcp in port range check

2021-07-04 Thread Andriy Gelman
From: Andriy Gelman Currently it is only checked that the rtp port does not exceed rtp_port_max. Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index bedb75c7bd..a3026f8b73 100644

[FFmpeg-devel] [PATCH v2 2/3] avformat/rtsp: Reindent after previous commit

2021-07-04 Thread Andriy Gelman
From: Andriy Gelman Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 0185baca8e..bedb75c7bd 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1458,9 +1458,9 @@

[FFmpeg-devel] [PATCH v2 1/3] avformat/rtsp: Set port_off to zero for low min/max port range

2021-07-04 Thread Andriy Gelman
From: Andriy Gelman Fixes: $ ffmpeg -min_port 32000 -max_port 32001 -i rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -f null - [1]303871 floating point exception (core dumped) Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 4 +++- 1 file changed, 3

Re: [FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-04 Thread Marton Balint
On Sat, 3 Jul 2021, Tomas Härdin wrote: lör 2021-07-03 klockan 15:13 +0200 skrev emco...@ffastrans.com: Unfortunately the wetransfer link for the fate samples expired, so i thought it might be a good idea to resend it as link to gdrive:

Re: [FFmpeg-devel] [PATCH 1/3] avformat/rtsp: Fix floating point exception for low min/max port range

2021-07-04 Thread Andriy Gelman
Hi Zhili, On Sun, 04. Jul 19:00, "zhilizhao(赵志立)" wrote: > > > > On Apr 4, 2021, at 11:36 PM, Andriy Gelman wrote: > > > > From: Andriy Gelman > > > > Fixed by setting port offset to zero when it cannot be computed. > > > > To reproduce: > > $ ffmpeg -min_port 32000 -max_port 32001 -i >

[FFmpeg-devel] [PATCH v2] fftools/ffmpeg: accelerate seeking while reading input at native frame rate

2021-07-04 Thread Linjie Fu
From: Linjie Fu Skip the logic of frame rate emulation until the input reaches the specified start time. Test CMD: $ffmpeg -re -ss 30 -i input.mp4 -pix_fmt yuv420p -f sdl2 - Before the patch: first time to got frame, it takes 257305 us After this patch: first time to got frame, it takes

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/setts_bsf: add a NOPTS constant

2021-07-04 Thread James Almer
On 7/4/2021 10:17 AM, Paul B Mahol wrote: LGTM, please update documentation. Done and pushed. Thanks. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/setts_bsf: add a NOPTS constant

2021-07-04 Thread Paul B Mahol
LGTM, please update documentation. ___ 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".

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/setts_bsf: actually store the current packet's timestamps to be usable by the next

2021-07-04 Thread Paul B Mahol
LGTM ___ 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".

Re: [FFmpeg-devel] [PATCH] fftools/cmdutils.c: Add cmd line option to override detection of cpu count

2021-07-04 Thread Thilo Borgmann
Hi, >>> add an option to override auto-detection of cpu count. Defaults to >>> auto-detection, of course. >>> >>> -Thilo >>> >> >>> >>> doc/fftools-common-opts.texi | 7 +++ >>> fftools/cmdutils.c | 27 +++ >>> fftools/cmdutils.h | 7 +++ >>>

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: Add new variant source_no_drop to the force_key_frames option

2021-07-04 Thread Thilo Borgmann
Hi, > adds a new variant to the -force_key_frames option "source_no_drop" to make > sure whenever a key frame in the source is dropped, we choose the next frame > in the output stream as a key frame. ping for review. -Thilo ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH] lavd/lavfi.c: Set time_base for 608 cc to container time_base.

2021-07-04 Thread Thilo Borgmann
Am 28.06.21 um 15:12 schrieb Thilo Borgmann: > Hi, > >> when transcoding 608 cc, the cc stream frame pts is set to the same value as >> its container frame's pts. However, the time_base is always set to 1/9 >> (default) in the initialization stage. Which causes timing issues when the >>

Re: [FFmpeg-devel] [PATCH 1/3] lavc/libsvtav1: Enable svtav1-params like x264-params in libx264

2021-07-04 Thread Lynne
4 Jul 2021, 03:40 by mypopy...@gmail.com: > From: Jun Zhao > > Enabled the svtav1-params, then we can set all the params > The whole purpose of the params field was to give it off to the encoder and have it do its own parsing, such that we wouldn't have to keep up adding more and more options.

Re: [FFmpeg-devel] [PATCH] lavfi/dnn_backend_openvino.c: Fix Memory Leak in execute_model_ov

2021-07-04 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of > Shubhanshu Saxena > Sent: 2021年6月19日 0:23 > To: ffmpeg-devel@ffmpeg.org > Cc: Shubhanshu Saxena > Subject: [FFmpeg-devel] [PATCH] lavfi/dnn_backend_openvino.c: Fix > Memory Leak in execute_model_ov > > In cases where the

Re: [FFmpeg-devel] [PATCH 1/3] avformat/rtsp: Fix floating point exception for low min/max port range

2021-07-04 Thread zhilizhao(赵志立)
> On Apr 4, 2021, at 11:36 PM, Andriy Gelman wrote: > > From: Andriy Gelman > > Fixed by setting port offset to zero when it cannot be computed. > > To reproduce: > $ ffmpeg -min_port 32000 -max_port 32001 -i > rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -f null - >