[FFmpeg-devel] [PATCH V4 2/2] lavfi/nlmeans: fix mixed declarations and code

2019-03-08 Thread Jun Zhao
From: Jun Zhao fix mixed declarations and code in C90 after last change Signed-off-by: Jun Zhao --- libavfilter/vf_nlmeans.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_nlmeans.c b/libavfilter/vf_nlmeans.c index 8d47f9d..7497df2 100644

[FFmpeg-devel] [PATCH V4 1/2] lavfi/nlmeans: Checking number precision when computing integral images

2019-03-08 Thread Jun Zhao
From: Jun Zhao accumulation of 8-bits uint_8 (uint8_t *src) into 32-bits (uint32_t *ii) data type, it will have a risk of an integral value becoming larger than the 32-bits integer capacity and resulting in an integer overflow. For this risk, add a checking with warning message. Signed-off

[FFmpeg-devel] [PATCH V3] lavfi/nlmeans: Checking number precision when computing integral images

2019-03-06 Thread Jun Zhao
From: Jun Zhao accumulation of 8-bits uint_8 (uint8_t *src) into 32-bits (uint32_t *ii) data type, it will have a risk of an integral value becoming larger than the 32-bits integer capacity and resulting in an integer overflow. For this risk, add a checking with warning message. Signed-off

[FFmpeg-devel] [PATCH V2] lavfi/nlmeans: Checking number precision when computing integral images

2019-03-06 Thread Jun Zhao
From: Jun Zhao accumulation of 8-bits uint_8 (uint8_t *src) into 32-bits (uint32_t *ii) data type, it will have a risk of an integral value becoming larger than the 32-bits integer capacity and resulting in an integer overflow. For this risk, add a checking with warning message. Signed-off

[FFmpeg-devel] [PATCH 3/4] lavfi/nlmeans: Checking number precision when computing integral images

2019-03-05 Thread Jun Zhao
From: Jun Zhao accumulation of 8-bits uint_8 (uint8_t *src) into 32-bits (uint32_t *ii) data type, it will have a risk of an integral value becoming larger than the 32-bits integer capacity and resulting in an integer overflow. For this risk, add a checking with warning message. Signed-off

[FFmpeg-devel] [PATCH 4/4] doc/bsfs: h264_metadata: Update docs about display orientation SEI

2019-03-05 Thread Jun Zhao
From: Jun Zhao Add docs about display orientation SEI. Signed-off-by: Jun Zhao --- doc/bitstream_filters.texi | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 076b910..83ef89c 100644

[FFmpeg-devel] [PATCH 2/4] lavfi/tonemap: make use of AVFILTER_DEFINE_CLASS

2019-03-05 Thread Jun Zhao
From: Jun Zhao use AVFILTER_DEFINE_CLASS for defining the filter classes Signed-off-by: Jun Zhao --- libavfilter/vf_tonemap.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c index 98a2c4b..efd4af5 100644

[FFmpeg-devel] [PATCH 1/4] lavfi/zscale: make use of AVFILTER_DEFINE_CLASS

2019-03-05 Thread Jun Zhao
From: Jun Zhao use AVFILTER_DEFINE_CLASS for defining the filter classes Signed-off-by: Jun Zhao --- libavfilter/vf_zscale.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 6e1d36c..f030927 100644

[FFmpeg-devel] [PATCH V3] tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/pts

2019-02-11 Thread Jun Zhao
Use av_ts2str() for AVFrame.pkt_dts/pts to avoid print the pkt_dts/pts as negative number like: "0,3616613, -9223372036854775808, 1001, 3110400, 0x75e37a65" Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao --- tests/api/api-h264-test.c |7 --- 1 files

[FFmpeg-devel] [PATCH V2] tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts

2019-02-10 Thread Jun Zhao
Add AV_NOPTS_VALUE check for AVFrame.pkt_dts to avoid print the pkt_dts as negative number like: "0,3616613, -9223372036854775808, 1001, 3110400, 0x75e37a65" Signed-off-by: Jun Zhao --- tests/api/api-h264-test.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletion

[FFmpeg-devel] [PATCH 2/2] tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts

2019-02-09 Thread Jun Zhao
Add AV_NOPTS_VALUE check for AVFrame.pkt_dts to avoid print the pkt_dts as negative number like: "0,3616613, -9223372036854775808, 1001, 3110400, 0x75e37a65" Signed-off-by: Jun Zhao --- tests/api/api-h264-test.c | 12 +--- 1 files changed, 9 insertions(+), 3

[FFmpeg-devel] [PATCH 1/2] avfilter/tests/integral: Fix build warning after adjust the location

2019-02-09 Thread Jun Zhao
Fix build warning like "warning: ISO C90 forbids mixed declarations and code" after adjust the location for malloc fail check. Signed-off-by: Jun Zhao --- libavfilter/tests/integral.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/tests/in

[FFmpeg-devel] [PATCH] avfilter/tests/integral: Check malloc fail before using it

2019-02-09 Thread Jun Zhao
Need to check malloc fail before using it, so adjust the location in the code. Signed-off-by: Jun Zhao --- libavfilter/tests/integral.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/tests/integral.c b/libavfilter/tests/integral.c index 2a8e8ff

[FFmpeg-devel] [PATCH] doc/filters: document ranges and defaults for nlmeans options

2019-01-31 Thread Jun Zhao
document ranges and defaults for nlmeans options Signed-off-by: Jun Zhao --- doc/filters.texi |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index fc98323..d588315 100644 --- a/doc/filters.texi +++ b/doc/filters.texi

[FFmpeg-devel] [PATCH V2] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread Jun Zhao
-by: Jun Zhao --- libavfilter/vf_nlmeans.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_nlmeans.c b/libavfilter/vf_nlmeans.c index 82e779c..72eb819 100644 --- a/libavfilter/vf_nlmeans.c +++ b/libavfilter/vf_nlmeans.c @@ -43,8 +43,7 @@ struct

[FFmpeg-devel] [PATCH] lavfi/vf_nlmeans: Improve the performance for nlmeans

2019-01-31 Thread Jun Zhao
-off-by: Jun Zhao --- libavfilter/vf_nlmeans.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_nlmeans.c b/libavfilter/vf_nlmeans.c index 82e779c..72eb819 100644 --- a/libavfilter/vf_nlmeans.c +++ b/libavfilter/vf_nlmeans.c @@ -43,8 +43,7 @@ struct

[FFmpeg-devel] [PATCH] lavfi/vf_nlmeans: Remove the pdiff_lut_scale to improve the performance

2019-01-30 Thread Jun Zhao
without this change: when s=1.0(default value) 63s s=30.0 72s after this change: s=1.0(default value) 56s s=30.0 63s Signed-off-by: Jun Zhao --- libavfilter/vf_nlmeans.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git

[FFmpeg-devel] [PATCH V2 2/2] lavc/hls: Cosmetics: Fix indentation for free_segment_list

2019-01-14 Thread Jun Zhao
Commit 673d8cfd518 missed the indent Signed-off-by: Jun Zhao --- libavformat/hls.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 63e1abe..8975a87 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -223,9 +223,9

[FFmpeg-devel] [PATCH V2 1/2] lavf/utils: fix error like "offset 0x1f85: partial file"

2019-01-14 Thread Jun Zhao
fix the issue like "offset 0x1f85: partial file" when demuxer mp4 from http/https/crypto Signed-off-by: Jun Zhao --- libavformat/utils.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7afef54..92a0

[FFmpeg-devel] [PATCH V1 2/2] lavc/hls: Cosmetics: Fix indentation for free_segment_list

2019-01-14 Thread Jun Zhao
Commit 673d8cfd518 missed the indent Signed-off-by: Jun Zhao --- libavformat/hls.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 63e1abe..2dd42ff 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -12,7 +12,7

[FFmpeg-devel] [PATCH V1 1/2] lavf/utils: fix error like "offset 0x1f85: partial file"

2019-01-14 Thread Jun Zhao
fix the issue like "offset 0x1f85: partial file" when demuxer mp4 from http/https/crypto Signed-off-by: Jun Zhao --- libavformat/utils.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7afef54..92a0

[FFmpeg-devel] [PATCH V2 3/3] doc/encoders: Update docs for libxavs2

2019-01-01 Thread Jun Zhao
Update standard libavcodec options for libxavs2 Signed-off-by: Jun Zhao --- doc/encoders.texi | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index c6fe923..0a85c19 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi

[FFmpeg-devel] [PATCH V2 1/3] lavc/libdavs2: Cosmetics: Fix indentation for switch statement

2019-01-01 Thread Jun Zhao
Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao --- libavcodec/libdavs2.c | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 2846ecf

[FFmpeg-devel] [PATCH V2 0/3] XAVS2 update

2019-01-01 Thread Jun Zhao
V2: - Keep the speed_level option (Tks Mark's review) V1: - Cosmetics: Fix indentation for switch statement in davs2/xavs2 - Rename option speed_level to preset - Update standard libavcodec options in docs part for libxavs2 Jun Zhao (3): lavc/libdavs2: Cosmetics: Fix indentation

[FFmpeg-devel] [PATCH V2 2/3] lavc/libxavs2: Cosmetics: Fix indentation for switch statement

2019-01-01 Thread Jun Zhao
Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao --- libavcodec/libxavs2.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 1df4148

[FFmpeg-devel] [PATCH V1 3/4] lavc/libxavs2: Rename option speed_level to preset

2018-12-30 Thread Jun Zhao
preset used in more in line with similar encoders. Signed-off-by: Jun Zhao --- libavcodec/libxavs2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 41c0b63..2ade923 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec

[FFmpeg-devel] [PATCH V1 4/4] doc/encoders: Update docs for libxavs2

2018-12-30 Thread Jun Zhao
Update standard libavcodec options for libxavs2 Signed-off-by: Jun Zhao --- doc/encoders.texi | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index c6fe923..b6f477d 100644 --- a/doc/encoders.texi +++ b/doc

[FFmpeg-devel] [PATCH V1 0/4] XAVS2 update

2018-12-30 Thread Jun Zhao
V1: - Cosmetics: Fix indentation for switch statement in davs2/xavs2 - Rename option speed_level to preset - Update standard libavcodec options in docs part for libxavs2 Jun Zhao (4): lavc/libdavs2: Cosmetics: Fix indentation for switch statement lavc/libxavs2: Cosmetics: Fix

[FFmpeg-devel] [PATCH V1 1/4] lavc/libdavs2: Cosmetics: Fix indentation for switch statement

2018-12-30 Thread Jun Zhao
Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao --- libavcodec/libdavs2.c | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c index 2846ecf

[FFmpeg-devel] [PATCH V1 2/4] lavc/libxavs2: Cosmetics: Fix indentation for switch statement

2018-12-30 Thread Jun Zhao
Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao --- libavcodec/libxavs2.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 1df4148

[FFmpeg-devel] [PATCH V5 2/2] doc: Add libsvt_hevc encoder docs

2018-12-22 Thread Jun Zhao
Add docs for libsvt_hevc encoder in encoders.texi and general.texi Signed-off-by: Jun Zhao Signed-off-by: Huang, Zhengxu Signed-off-by: hassene --- doc/encoders.texi | 145 + doc/general.texi | 15 ++ 2 files changed, 160 insertions

[FFmpeg-devel] [PATCH V5 0/2] Add libsvt HEVC encoder wrapper

2018-12-22 Thread Jun Zhao
Steven/Moritz's review). - Use named parameters in options. - Follow FFmpeg coding style and Changelog. V1: - Add libsvt hevc encoder wrapper and a Changelog entry. Jun Zhao (2): lavc/svt_hevc: add libsvt hevc encoder wrapper. doc: Add libsvt_hevc encoder docs Changelog

[FFmpeg-devel] [PATCH V5 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper.

2018-12-22 Thread Jun Zhao
base on patch by Huang, Zhengxu from https://github.com/intel/SVT-HEVC Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- Changelog|1 + configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1

[FFmpeg-devel] [PATCH V2 0/3] Change options location and kvazaar

2018-12-15 Thread Jun Zhao
V2: - Fix the fate break issue after change options location (Tks Micheal's review) V1: - Change some options location in opt table - Use avctx->frame_rate first for framerate setting in kvazaar encoder - Indent the code in kvazaar wrapper to follow FFmpeg's coding style Jun Zhao

[FFmpeg-devel] [PATCH V2 3/3] lavc/libkvazaar: indent the code

2018-12-15 Thread Jun Zhao
indent the code to follow FFmpeg's coding style Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c index 50910b7..a89ca7f 100644 --- a/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH V2 2/3] lavc/libkvazaar: Use avctx->frame_rate first for framerate setting

2018-12-15 Thread Jun Zhao
perfer avctx->frame_rate first than use avctx->time_base when setting the frame rate to encoder. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkva

[FFmpeg-devel] [PATCH V2 1/3] lavc/options_table: Change some options location in opt table.

2018-12-15 Thread Jun Zhao
Change the some options location in avcodec_options to make code more readable. And update the fate test with this change. Signed-off-by: Jun Zhao --- libavcodec/options_table.h | 48 +- tests/ref/fate/api-mjpeg-codec-param | 24

[FFmpeg-devel] [PATCH 2/3] lavc/libkvazaar: Use avctx->frame_rate first for framerate setting

2018-12-15 Thread Jun Zhao
perfer avctx->frame_rate first than use avctx->time_base when setting the frame rate to encoder. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkva

[FFmpeg-devel] [PATCH 3/3] lavc/libkvazaar: indent the code

2018-12-15 Thread Jun Zhao
indent the code to follow FFmpeg's coding style Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c index 50910b7..a89ca7f 100644 --- a/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH 1/3] lavc/options_table: Change some options location in opt table.

2018-12-15 Thread Jun Zhao
Change the some options location in avcodec_options to make code more readable. Signed-off-by: Jun Zhao --- libavcodec/options_table.h | 48 ++-- 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/libavcodec/options_table.h b/libavcodec

[FFmpeg-devel] [PATCH] lavfi/buffersink: fix abuffersink flag setting issue

2018-12-09 Thread Jun Zhao
abuffersink need to setting AV_OPT_FLAG_AUDIO_PARAM flag. Signed-off-by: Jun Zhao --- libavfilter/buffersink.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 0f87b54..f9b0b5e 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V4 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper.

2018-12-09 Thread Jun Zhao
base on patch by Huang, Zhengxu from https://github.com/intel/SVT-HEVC Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- Changelog|1 + configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1

[FFmpeg-devel] [PATCH V4 0/2] Add libsvt HEVC encoder wrapper

2018-12-09 Thread Jun Zhao
er wrapper and a Changelog entry. Jun Zhao (2): lavc/svt_hevc: add libsvt hevc encoder wrapper. doc: Add libsvt_hevc encoder docs Changelog|1 + configure|4 + doc/encoders.texi| 157 ++ doc/general.texi | 14 ++

[FFmpeg-devel] [PATCH V4 2/2] doc: Add libsvt_hevc encoder docs

2018-12-09 Thread Jun Zhao
Add docs for libsvt_hevc encoder in encoders.texi and general.texi Signed-off-by: Jun Zhao Signed-off-by: Huang, Zhengxu Signed-off-by: hassene --- doc/encoders.texi | 157 + doc/general.texi | 14 + 2 files changed, 171 insertions

[FFmpeg-devel] [PATCH V3 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper.

2018-12-07 Thread Jun Zhao
base on patch by Huang, Zhengxu from https://github.com/intel/SVT-HEVC Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- Changelog|1 + configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1

[FFmpeg-devel] [PATCH V3 0/2] Add libsvt HEVC encoder wrapper

2018-12-07 Thread Jun Zhao
style and Changelog. V1: - Add libsvt hevc encoder wrapper and a Changelog entry. Jun Zhao (2): lavc/svt_hevc: add libsvt hevc encoder wrapper. doc: Add libsvt_hevc encoder docs Changelog|1 + configure|4 + doc/encoders.texi| 98 ++

[FFmpeg-devel] [PATCH V3 2/2] doc: Add libsvt_hevc encoder docs

2018-12-07 Thread Jun Zhao
Signed-off-by: Jun Zhao Signed-off-by: Huang, Zhengxu Signed-off-by: hassene --- doc/encoders.texi | 98 + doc/general.texi |8 2 files changed, 106 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi

[FFmpeg-devel] [PATCH V1 0/2] VA-API misc change

2018-12-06 Thread Jun Zhao
V1: - Fix slices number warning message dump when setting > driver constraints - Add mode option to scale_vaapi Jun Zhao (2): lavfi/vf_scale_vaapi: add scaling mode setting support. lavc/vaapi_encode: fix slices number check. libavcodec/vaapi_encode.c|2 +- libavfil

[FFmpeg-devel] [PATCH V1 1/2] lavfi/vf_scale_vaapi: add scaling mode setting support.

2018-12-06 Thread Jun Zhao
before this change, scale_vaapi hard coding the scaling mode, add a new option "mode" to setting the scaling mode, it can be use to change scaling algorithm for performance/quality trade off. Signed-off-by: Jun Zhao --- libavfilter/vf_scale_vaapi.c | 33 ++

[FFmpeg-devel] [PATCH V1 2/2] lavc/vaapi_encode: fix slices number check.

2018-12-06 Thread Jun Zhao
Fix slice number check logic. Only when the user setting slices number more than the driver constraints dump the rounded up warning message. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/vaapi_encode.c

[FFmpeg-devel] [PATCH V2 1/3] lavc/svt_hevc: add libsvt hevc encoder wrapper.

2018-12-04 Thread Jun Zhao
base on patch by Huang, Zhengxu from https://github.com/intel/SVT-HEVC Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/libsvt_hevc.c | 440

[FFmpeg-devel] [PATCH V2 0/3] Add libsvt HEVC encoder wrapper

2018-12-04 Thread Jun Zhao
Steven/James's review). - Add docs part (Tks Steven/Moritz's review). - Use named parameters in options. - Follow FFmpeg coding style and Changelog. V1: - Add libsvt hevc encoder wrapper and a Changelog entry. Jun Zhao (3): lavc/svt_hevc: add libsvt hevc encoder wrapper. doc: Add

[FFmpeg-devel] [PATCH V2 3/3] Changelog: Add new entry for svt-hevc encoder

2018-12-04 Thread Jun Zhao
Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- Changelog |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Changelog b/Changelog index 1f53ff4..cef444d 100644 --- a/Changelog +++ b/Changelog @@ -10,6 +10,7 @@ version : - truehd_core

[FFmpeg-devel] [PATCH V2 2/3] doc: Add libsvt_hevc encoder docs

2018-12-04 Thread Jun Zhao
Signed-off-by: Jun Zhao Signed-off-by: Huang, Zhengxu Signed-off-by: hassene --- doc/encoders.texi | 98 + doc/general.texi |8 2 files changed, 106 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi

[FFmpeg-devel] [PATCH V1 2/2] Changelog: Add new entry for svt-hevc encoder

2018-12-01 Thread Jun Zhao
Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- Changelog |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Changelog b/Changelog index 1f53ff4..eca6327 100644 --- a/Changelog +++ b/Changelog @@ -10,7 +10,7 @@ version : - truehd_core

[FFmpeg-devel] [PATCH V1 0/2] Add libsvt HEVC encoder wrapper.

2018-12-01 Thread Jun Zhao
wrapper and a Changelog entry. Jun Zhao (2): lavc/svt_hevc: add libsvt hevc encoder wrapper. Changelog: Add new entry for svt-hevc encoder Changelog|2 +- configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec

[FFmpeg-devel] [PATCH V1 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper.

2018-12-01 Thread Jun Zhao
base on patch by Huang, Zhengxu from https://github.com/intel/SVT-HEVC Signed-off-by: Huang, Zhengxu Signed-off-by: hassene Signed-off-by: Jun Zhao --- configure|4 + libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/libsvt_hevc.c | 370

[FFmpeg-devel] [PATCH] lavc/libaomenc: Add a maximum constraint of 64 encoder threads.

2018-11-27 Thread Jun Zhao
fixed the error in Intel(R) Xeon(R) Gold 6152 CPU like: [libaom-av1 @ 0x469f340] Failed to initialize encoder: Invalid parameter [libaom-av1 @ 0x469f340] Additional information: g_threads out of range [..MAX_NUM_THREADS] Signed-off-by: Jun Zhao --- libavcodec/libaomenc.c |3 ++- 1 files

[FFmpeg-devel] [PATCH V4 6/6] fftools/ffprobe: fix max_bit_rate dump.

2018-11-23 Thread Jun Zhao
‘codec’ is deprecated in AVStream, so used the side data to dump max_bit_rate in ffprobe. Clean the warning like: "warning: ‘codec’ is deprecated [-Wdeprecated-declarations]" Signed-off-by: Jun Zhao --- fftools/ffprobe.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletion

[FFmpeg-devel] [PATCH V4 2/6] fftools/ffprobe: Indent the code.

2018-11-23 Thread Jun Zhao
commit 196765a7cc4 missed the reindet. Signed-off-by: Jun Zhao --- fftools/ffprobe.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 544786e..dea489d 100644 --- a/fftools/ffprobe.c +++ b/fftools

[FFmpeg-devel] [PATCH V4 0/6] Misc change V4

2018-11-23 Thread Jun Zhao
dump warning for ffprobe Jun Zhao (6): lavfi/buffersrc: Indent the code. fftools/ffprobe: Indent the code. fftools/ffmpeg: delete the unused code. lavc/kvazaar: fix auto thread flag in kvazaar wrapper. lavf/isom: use side data to save max bit rate for esds box fftools/ffprobe: fix

[FFmpeg-devel] [PATCH V4 1/6] lavfi/buffersrc: Indent the code.

2018-11-23 Thread Jun Zhao
commit b0012de420f missed reindent. Signed-off-by: Jun Zhao --- libavfilter/buffersrc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index cd56f8c..0c12650 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V4 5/6] lavf/isom: use side data to save max bit rate for esds box

2018-11-23 Thread Jun Zhao
Use AV_PKT_DATA_CPB_PROPERTIES to save max bit rate for esds box, and update fate at the same time. Signed-off-by: Jun Zhao --- libavformat/isom.c | 19 --- tests/ref/fate/adtstoasc_ticket3715 |2 +- tests/ref/fate/copy-psp

[FFmpeg-devel] [PATCH V4 3/6] fftools/ffmpeg: delete the unused code.

2018-11-23 Thread Jun Zhao
There are come from 2012 ago and have never been used from this time. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a12208c..085d6d2 100644 --- a/fftools/ffmpeg.c +++ b

[FFmpeg-devel] [PATCH V4 4/6] lavc/kvazaar: fix auto thread flag in kvazaar wrapper.

2018-11-23 Thread Jun Zhao
Now the kvazaar warpper didn't setting the threads for kvazaar API, and kavzaar will auto selecte the thread number. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH V3 4/7] lavc/kvazaar: fix auto thread flag in kvazaar wrapper.

2018-11-22 Thread Jun Zhao
Now the kvazaar warpper didn't setting the threads for kvazaar API, and kavzaar will auto selecte the thread number. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH V3 5/7] avformat: add rc_max_rate to AVStream

2018-11-22 Thread Jun Zhao
This field will be used in demuxer to expose the max bit rate, e,g in MOV/MP4 esds box. Signed-off-by: Jun Zhao --- doc/APIchanges |3 +++ libavformat/avformat.h |6 ++ libavformat/version.h |2 +- 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/doc

[FFmpeg-devel] [PATCH V3 2/7] fftools/ffprobe: Indent the code.

2018-11-22 Thread Jun Zhao
commit 196765a7cc4 missed the reindet. Signed-off-by: Jun Zhao --- fftools/ffprobe.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 544786e..dea489d 100644 --- a/fftools/ffprobe.c +++ b/fftools

[FFmpeg-devel] [PATCH V3 6/7] lavf/isom: use AVStream.rc_max_rate to save max bit rate for esds box

2018-11-22 Thread Jun Zhao
Use AVStream.rc_max_rate to save max bit rate for esds box. Now we don't need to use the AVStream.codec for max bit rate. Signed-off-by: Jun Zhao --- libavformat/isom.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/libavformat/isom.c b/libavformat/isom.c index

[FFmpeg-devel] [PATCH V3 7/7] fftools/ffprobe: fix max_bit_rate dump.

2018-11-22 Thread Jun Zhao
‘codec’ is deprecated in AVStream, so used the dec_ctx to dump max_bit_rate in ffprobe. Clean the warning like: "warning: ‘codec’ is deprecated [-Wdeprecated-declarations]" Reviewed-by: Moritz Barsnick Signed-off-by: Jun Zhao --- fftools/ffprobe.c |7 +++ 1 files changed, 3

[FFmpeg-devel] [PATCH V3 0/7] Misc change V3

2018-11-22 Thread Jun Zhao
: - indet ffmpeg/buffersrc - add auto threads flag for kvazaar - delete the unused code from ffmpeg - fix max_bit_rate dump warning for ffprobe Jun Zhao (7): lavfi/buffersrc: Indent the code. fftools/ffprobe: Indent the code. fftools/ffmpeg: delete the unused code. lavc/kvazaar: fix

[FFmpeg-devel] [PATCH V3 1/7] lavfi/buffersrc: Indent the code.

2018-11-22 Thread Jun Zhao
commit b0012de420f missed reindent. Signed-off-by: Jun Zhao --- libavfilter/buffersrc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index cd56f8c..0c12650 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V3 3/7] fftools/ffmpeg: delete the unused code.

2018-11-22 Thread Jun Zhao
There are come from 2012 ago and have never been used from this time. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a12208c..085d6d2 100644 --- a/fftools/ffmpeg.c +++ b

[FFmpeg-devel] [PATCH V2 1/5] lavfi/buffersrc: Indent the code.

2018-11-20 Thread Jun Zhao
commit b0012de420f missed reindent. Signed-off-by: Jun Zhao --- libavfilter/buffersrc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index cd56f8c..0c12650 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V2 0/5] Misc change V2

2018-11-20 Thread Jun Zhao
V2: - fix max_bit_rate dump change break the fate test. (based on Micheal/Moritz's review) V1: - indet ffmpeg/buffersrc - add auto threads flag for kvazaar - delete the unused code from ffmpeg - fix max_bit_rate dump warning for ffprobe Jun Zhao (5): lavfi/buffersrc: Indent

[FFmpeg-devel] [PATCH V2 4/5] fftools/ffmpeg: delete the unused code.

2018-11-20 Thread Jun Zhao
There are come from 2012 ago and have never been used from this time. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a12208c..085d6d2 100644 --- a/fftools/ffmpeg.c +++ b

[FFmpeg-devel] [PATCH V2 5/5] lavc/kvazaar: fix auto thread flag in kvazaar wrapper.

2018-11-20 Thread Jun Zhao
Now the kvazaar warpper didn't setting the threads for kvazaar API, and kavzaar will auto selecte the thread number. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH V2 3/5] fftools/ffprobe: Indent the code.

2018-11-20 Thread Jun Zhao
commit 196765a7cc4 missed the reindet. Signed-off-by: Jun Zhao --- fftools/ffprobe.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index ab0dbff..f8c5f33 100644 --- a/fftools/ffprobe.c +++ b/fftools

[FFmpeg-devel] [PATCH V2 2/5] fftools/ffprobe: fix max_bit_rate dump.

2018-11-20 Thread Jun Zhao
‘codec’ is deprecated in AVStream, so used the dec_ctx to dump max_bit_rate in ffprobe. Clean the warning like: "warning: ‘codec’ is deprecated [-Wdeprecated-declarations]" Reviewed-by: Moritz Barsnick Signed-off-by: Jun Zhao --- fftools/ffprobe.c |6 ++ 1 files changed, 2

[FFmpeg-devel] [PATCH 4/5] fftools/ffmpeg: delete the unused code.

2018-11-18 Thread Jun Zhao
There are come from 2012 ago and have never been used from this time. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |9 + 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a12208c..085d6d2 100644 --- a/fftools/ffmpeg.c +++ b

[FFmpeg-devel] [PATCH 5/5] lavc/kvazaar: fix auto thread flag in kvazaar wrapper.

2018-11-18 Thread Jun Zhao
Now the kvazaar warpper didn't setting the threads for kvazaar API, and kavzaar will auto select the thread number. Signed-off-by: Jun Zhao --- libavcodec/libkvazaar.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c

[FFmpeg-devel] [PATCH 2/5] fftools/ffprobe: fix max_bit_rate dump.

2018-11-18 Thread Jun Zhao
‘codec’ is deprecated in AVStream, so used the dec_ctx to dump max_bit_rate in ffprobe. Clean the warning like: "warning: ‘codec’ is deprecated [-Wdeprecated-declarations]" Signed-off-by: Jun Zhao --- fftools/ffprobe.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-)

[FFmpeg-devel] [PATCH 1/5] lavfi/buffersrc: Indent the code.

2018-11-18 Thread Jun Zhao
commit b0012de420f missed reindent. Signed-off-by: Jun Zhao --- libavfilter/buffersrc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index cd56f8c..0c12650 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH 3/5] fftools/ffprobe: Indent the code.

2018-11-18 Thread Jun Zhao
commit 196765a7cc4 missed the reindet. Signed-off-by: Jun Zhao --- fftools/ffprobe.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 280db78..d589893 100644 --- a/fftools/ffprobe.c +++ b/fftools

[FFmpeg-devel] [PATCH 0/5] Misc change

2018-11-18 Thread Jun Zhao
V1: - indet ffmpeg/buffersrc - add auto threads flag for kvazaar - delete the unused code from ffmpeg - fix max_bit_rate dump warning for ffprobe Jun Zhao (5): lavfi/buffersrc: Indent the code. fftools/ffprobe: fix max_bit_rate dump. fftools/ffprobe: Indent the code. fftools

[FFmpeg-devel] [RFC] Try to improve 1:N transcode performance with thread.

2018-11-11 Thread Jun Zhao
Add a new option "abr_pipeline" with mutil-thread to improve the 1:N transcode performance, currently, the code just as a PoC(proof of concept) prototype, and post it to maillist for RFC(Requect for Comment). Jun Zhao (1): ffmpeg: Improved the performance of 1:N for adapti

[FFmpeg-devel] [RFC] ffmpeg: Improved the performance of 1:N for adaptive bitrate scenario.

2018-11-11 Thread Jun Zhao
+enc Improved ~6.1% Signed-off-by: Wang, Shaofei Signed-off-by: Jun Zhao --- fftools/ffmpeg.c| 236 --- fftools/ffmpeg.h| 12 +++ fftools/ffmpeg_filter.c |6 + fftools/ffmpeg_opt.c|6 +- 4 files changed, 246 insertions

[FFmpeg-devel] [PATCH V2 2/3] fftools/ffmpeg: Put the variable declaration at uppper for block.

2018-11-09 Thread Jun Zhao
move the variable declaration at start of upper for block and remove the redundant brace. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9dc42f5..68b8e05 100644 --- a/fftools

[FFmpeg-devel] [PATCH V2 1/3] fftools/ffmpeg: Remove the micor like "#if 1"

2018-11-09 Thread Jun Zhao
They are come from 2003 and delete them. Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index da4259a..9dc42f5 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1210,11 +1210,7

[FFmpeg-devel] [PATCH V2 3/3] fftools/ffmpeg: Indent the code

2018-11-09 Thread Jun Zhao
Signed-off-by: Jun Zhao --- fftools/ffmpeg.c | 128 +++--- 1 files changed, 64 insertions(+), 64 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 68b8e05..38c21e9 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1193,27

[FFmpeg-devel] [PATCH V2 0/3] Misc change in ffmpeg.c

2018-11-09 Thread Jun Zhao
V2: - split the patch as Carl's comment. - more details in commit message as Micheal's comment. Jun Zhao (3): fftools/ffmpeg: Remove the micor like "#if 1" fftools/ffmpeg: Put the variable declaration at uppper for block. fftools/ffmpeg: Indent the code fftools/ffmpe

[FFmpeg-devel] [PATCH 2/2] fftools/ffmpeg: indent the code

2018-11-08 Thread Jun Zhao
Signed-off-by: Jun Zhao --- fftools/ffmpeg.c | 69 ++--- 1 files changed, 34 insertions(+), 35 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index e989e7a..dbcc9cf 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1488,7

[FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg: Refine the do_video_out.

2018-11-08 Thread Jun Zhao
Signed-off-by: Jun Zhao --- fftools/ffmpeg.c | 62 - 1 files changed, 28 insertions(+), 34 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index da4259a..e989e7a 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1193,33

[FFmpeg-devel] [PATCH 1/7] lavc/vaapi_encode: Add codec-specific bit rate control callback.

2018-11-02 Thread Jun Zhao
Add extra codec-specific bit rate control configuration callback interface. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode.c |9 + libavcodec/vaapi_encode.h |3 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec

[FFmpeg-devel] [PATCH 3/7] doc/encoders: Add docs for mb_rate_control option

2018-11-02 Thread Jun Zhao
Add mb_rate_control option docs for h264_vaapi encoder. Signed-off-by: Jun Zhao --- doc/encoders.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac..6851e75 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi

[FFmpeg-devel] [PATCH 7/7] doc/encoders: Add sliding_window docs for hevc_vaapi.

2018-11-02 Thread Jun Zhao
Add sliding_window docs for hevc_vaapi encoder. Signed-off-by: Jun Zhao --- doc/encoders.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index c558b76..1987686 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi

[FFmpeg-devel] [PATCH 4/7] lavc/vaapi_encode_h264: Enable sliding window control.

2018-11-02 Thread Jun Zhao
Sliding window control is a feature to reduce the instant bitrate fluctuation, and occasional big frame size for intra and scene change frames are allowed. And the fluctuation level can be controlled by max bit rate. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h264.c | 13

[FFmpeg-devel] [PATCH 5/7] doc/encoders: Add sliding_window docs for h264_vaapi.

2018-11-02 Thread Jun Zhao
Add sliding_window docs for h264_vaapi encoder. Signed-off-by: Jun Zhao --- doc/encoders.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 6851e75..c558b76 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi

[FFmpeg-devel] [PATCH 6/7] lavc/vaapi_encode_h265: Enable sliding window control.

2018-11-02 Thread Jun Zhao
Sliding window control is a feature to reduce the instant bitrate fluctuation, and occasional big frame size for intra and scene change frames are allowed. And the fluctuation level can be controlled by max bit rate. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h265.c | 24

[FFmpeg-devel] [PATCH 0/7] Enhancement VA-API encoder bitrate control

2018-11-02 Thread Jun Zhao
V1: - add codec-specific bit rate control callback. - enable macro block level bit rate control in h264_vaapi encoder and update the docs. - enable sliding windows in [h264|hevc]_vaapi encoder and update the docs. Jun Zhao (7): lavc/vaapi_encode: Add codec-specific bit rate control callback

<    1   2   3   4   5   6   7   8   9   10   >