Re: [FFmpeg-devel] [PATCH 3/3] avformat/rtpenc_mpegts: allow options for rtp muxer

2021-03-26 Thread Gyan Doshi
Set pushed as affe911c65022c96bc8ade2ea5f2c09235974c30 325bb04188092f37aceee962f58a4816f0d8e79b 2c806aa2b4d61e87ee58df92153f87410c82cd09 Gyan On 2021-03-25 12:33, Gyan Doshi wrote: Plan to push set tomorrow. On 2021-03-23 11:07, Gyan Doshi wrote: ---   libavformat/rtpenc_mpegts.c | 7 ++-

[FFmpeg-devel] [PATCH V6 2/6] lavfi/dnn: refine code for frame pre/proc processing

2021-03-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 8 libavfilter/dnn/dnn_backend_openvino.c | 8 libavfilter/dnn/dnn_backend_tf.c | 8 libavfilter/dnn_filter_common.c| 7 +++ libavfilter/dnn_filter_common.h| 1 + libavfilte

[FFmpeg-devel] [PATCH V6 1/6] lavfi/dnn_backend_openvino.c: only allow DFT_PROCESS_FRAME to get output dim

2021-03-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index 9a47d74c15..66845fbd51 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/lib

[FFmpeg-devel] [PATCH V6 3/6] lavfi/dnn: add post process for detection

2021-03-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_openvino.c | 30 -- libavfilter/dnn_filter_common.c| 6 ++ libavfilter/dnn_filter_common.h| 1 + libavfilter/dnn_interface.h| 3 +++ 4 files changed, 33 insertions(+), 7 deletions(

[FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-03-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- doc/APIchanges | 2 ++ libavutil/Makefile | 1 + libavutil/boundingbox.h | 79 + libavutil/frame.c | 1 + libavutil/frame.h | 7 5 files changed, 90 insertions(+) create mode 100644 libavutil

[FFmpeg-devel] [PATCH V6 5/6] lavfi: show side data of bounding box

2021-03-26 Thread Guo, Yejun
Signed-off-by: Guo, Yejun --- libavfilter/f_sidedata.c | 2 ++ libavfilter/vf_showinfo.c | 37 + 2 files changed, 39 insertions(+) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 3757723375..912fb0d881 100644 --- a/libavfilter/f_sideda

[FFmpeg-devel] [PATCH V6 6/6] lavfi: add filter dnn_detect for object detection

2021-03-26 Thread Guo, Yejun
Below are the example steps to do object detection: 1. download and install l_openvino_toolkit_p_2021.1.110.tgz from https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit/download.html or, we can get source code (tag 2021.1), build and install. 2. export LD_LIBRARY_PATH wit

Re: [FFmpeg-devel] [PATCHv2] avformat/mov: Properly forward error codes from av_seek

2021-03-26 Thread Derek Buitenhuis
On 25/03/2021 16:35, Derek Buitenhuis wrote: > This is important, for example, for connection timed out events, > when used over a network, returning AVERROR(ETIMEDOUT). > > Signed-off-by: Derek Buitenhuis > --- Will push tonight if there are no objections. - Derek _

[FFmpeg-devel] [PATCH 1/2] avfilter/af_astats: Only print header lines when values are to be printed

2021-03-26 Thread Tobias Rapp
Avoids empty "Channel" or "Overall" header lines added to log output when measurement is restricted to one scope using "measure_perchannel=none" or "measure_overall=none". Signed-off-by: Tobias Rapp --- libavfilter/af_astats.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --g

[FFmpeg-devel] [PATCH 2/2] avfilter/af_astats: Remove fraction part of integer metadata entries

2021-03-26 Thread Tobias Rapp
Using integer format makes the metadata display similar to the log output. Fix missing "Overall" metadata key name prefix where necessary. Also replace whitespace in some metadata key names with underscore character for consistency. Signed-off-by: Tobias Rapp --- libavfilter/af_astats.c | 56 ++

[FFmpeg-devel] [PATCH 1/2] tls_openssl: Improve quality of printed error messages, pass IO error codes through

2021-03-26 Thread Martin Storsjö
Print every error in the stack, if more than one, and don't print bogus errors if there's none logged within OpenSSL. Retain the underlying IO error code, print an error message out of it, and pass the error code on to the caller. --- libavformat/tls_openssl.c | 41 +++

[FFmpeg-devel] [PATCH 2/2] tls_gnutls: Print the underlying IO error message and pass the error code through

2021-03-26 Thread Martin Storsjö
--- libavformat/tls_gnutls.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c index f9d5af7096..741578a596 100644 --- a/libavformat/tls_gnutls.c +++ b/libavformat/tls_gnutls.c @@ -51,6 +51,7 @@ t

Re: [FFmpeg-devel] [PATCH 2/4] avfilter/vf_paletteuse: Fix left shift outside of range of int

2021-03-26 Thread Andreas Rheinhardt
Andreas Rheinhardt: > by keeping the variable uint32_t which in this situation is the natural > type anyway. This affected the FATE-test filter-paletteuse-sierra2_4a. > > Signed-off-by: Andreas Rheinhardt > --- > libavfilter/vf_paletteuse.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletio

Re: [FFmpeg-devel] [PATCH 3/4] avfilter/asrc_sine: Fix invalid left shift of negative number

2021-03-26 Thread Andreas Rheinhardt
Andreas Rheinhardt: > by using a multiplication instead. The multiplication can never overflow > an int because the sin-factor is only an int16_t. > > Affected the FATE-tests filter-concat and filter-concat-vfr. > > Signed-off-by: Andreas Rheinhardt > --- > libavfilter/asrc_sine.c | 2 +- > 1 f

Re: [FFmpeg-devel] [PATCH 3/4] avfilter/asrc_sine: Fix invalid left shift of negative number

2021-03-26 Thread Nicolas George
Andreas Rheinhardt (12021-03-26): > Will apply. Sorry, missed it. How does it impact the performance? Or even better: code? This code is meant to be as fast as possible. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmp

Re: [FFmpeg-devel] [PATCH v2 08/15] avformat/webmdashenc: Don't pass NULL to memcmp

2021-03-26 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Affects the FATE-tests webm-dash-manifest-unaligned-video-streams, > webm-dash-manifest and webm-dash-manifest-representations. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/webmdashenc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

Re: [FFmpeg-devel] [PATCH 3/4] avfilter/asrc_sine: Fix invalid left shift of negative number

2021-03-26 Thread Andreas Rheinhardt
Nicolas George: > Andreas Rheinhardt (12021-03-26): >> Will apply. > > Sorry, missed it. > You have not missed anything. > How does it impact the performance? Or even better: code? This code is > meant to be as fast as possible. > No impact whatsoever. Disassembly of request_frame is unchange

Re: [FFmpeg-devel] [PATCH] avcodec/libxvid: remove unnecessary output packet data check

2021-03-26 Thread James Almer
On 3/18/2021 11:01 PM, James Almer wrote: The user buffers passed to avcodec_encode_video2() haven't been propagated to AVCodec.encode2 implementations since 93016f5d1d280f9cb7856883af287fa66affc04c. Also, the generic encode code already unrefs the packet if nothing was encoded. Signed-off-by: J

[FFmpeg-devel] [PATCH 00/17] Various undefined behaviour fixes

2021-03-26 Thread Andreas Rheinhardt
Hello, attached patches fix several instances of undefined behaviour encountered when running the FATE suite. - Andreas >From 95ab387c56fd9a2e4b2fb26d164fff93848d5947 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 26 Mar 2021 06:03:49 +0100 Subject: [PATCH 01/17] avcodec/dcaenc: F

[FFmpeg-devel] [PATCH] avformat/dashdec: Also fetch final partial segment

2021-03-26 Thread Matt Robinson
Currently, the DASH demuxer omits the final segment for a non-live stream (using SegmentTemplate) if it is shorter than the other segments. Correct calc_max_seg_no to round up when calulating the number of segments instead of rounding down to resolve this issue. Signed-off-by: Matt Robinson ---

[FFmpeg-devel] [PATCH v2] lavu: add BCMVK hwcontext implementation

2021-03-26 Thread suji . velupillai
From: Suji Velupillai Initial commit to add BCMVK hardware accelerator implementation. The depedency component vkil source code can be obtained from github https://github.com/Broadcom/vkil Signed-off-by: Suji Velupillai --- configure | 8 +- doc/APIchanges