[FFmpeg-devel] [PATCH V2 2/2] doc/muxers: fix docs format for DASH muxer

2019-06-28 Thread Jun Zhao
From: Jun Zhao fix docs format for DASH muxer Signed-off-by: Jun Zhao --- doc/muxers.texi | 62 -- 1 files changed, 32 insertions(+), 30 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index d179584..c220bd2 100644 --- a/doc

[FFmpeg-devel] [PATCH V2 0/2] Fix and update docs for HLS/DASH muxer

2019-06-28 Thread Jun Zhao
V2: - remove hyphen from option name in the docs Jun Zhao (2): doc/muxers: fix and update docs for HLS muxer doc/muxers: fix docs format for DASH muxer doc/muxers.texi | 86 ++ 1 files changed, 48 insertions(+), 38 deletions

[FFmpeg-devel] [PATCH V1 2/2] doc/muxers: fix docs format for DASH muxer

2019-06-28 Thread Jun Zhao
From: Jun Zhao fix docs format for DASH muxer Signed-off-by: Jun Zhao --- doc/muxers.texi |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index d93d1cf..044c838 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -256,7 +256,7

[FFmpeg-devel] [PATCH V1 1/2] doc/muxers: fix and update docs for HLS muxer

2019-06-28 Thread Jun Zhao
From: Jun Zhao fix and update docs for HLS muxer Signed-off-by: Jun Zhao --- doc/muxers.texi | 68 ++ 1 files changed, 38 insertions(+), 30 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index dd64672..d93d1cf 100644

[FFmpeg-devel] [PATCH V2 3/4] lavf/dump: More disposition flag dump

2019-06-28 Thread Jun Zhao
From: Jun Zhao More disposition flag dump Signed-off-by: Jun Zhao --- libavformat/dump.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index bb8c72f..1c44656 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c

[FFmpeg-devel] [PATCH V2 2/4] ffmpeg_opt: Respect default disposition when select audio/video

2019-06-28 Thread Jun Zhao
From: Jun Zhao Respect default disposition when select audio/video Signed-off-by: Jun Zhao --- fftools/ffmpeg_opt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 53d688b..f5ca18a 100644 --- a/fftools

[FFmpeg-devel] [PATCH V2 1/4] lavf/utils: Respect default disposition when select the AVStream

2019-06-28 Thread Jun Zhao
From: Jun Zhao Respect default disposition when select the AVStream 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 3d764c1..886cd6f 100644 --- a/libavformat/utils.c

[FFmpeg-devel] [PATCH V2 4/4] fate: add disposition default test case

2019-06-28 Thread Jun Zhao
From: Jun Zhao add disposition default test case Signed-off-by: Jun Zhao --- tests/fate/ffmpeg.mak |4 + tests/ref/fate/ffmpeg-disposition_default | 106 + 2 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 tests/ref

[FFmpeg-devel] [PATCH V2 0/4] Respect default disposition when select stream

2019-06-28 Thread Jun Zhao
V2: - Add FATE test case, the test clip will upload to FATE server Jun Zhao (4): lavf/utils: Respect default disposition when select the AVStream ffmpeg_opt: Respect default disposition when select audio/video lavf/dump: More disposition flag dump fate: add disposition default test case

[FFmpeg-devel] [PATCH V1] lavf/flvenc: add automatic bitstream filtering

2019-06-22 Thread Jun Zhao
From: Jun Zhao add automatic bitstream filtering when mux AAC Signed-off-by: Jun Zhao --- libavformat/flvenc.c | 27 --- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index e4863f1..fb1dede 100644

[FFmpeg-devel] [PATCH V1] lavfi/normalize: improve the performance

2019-06-20 Thread Jun Zhao
From: Jun Zhao Remove unnecessary max value found, it's will improve the performance about 10%. Used the test command like: ffmpeg -i 1080P.mp4 -an -vf normalize -f null /dev/null, the FPS change from 96fps to 107fps. Signed-off-by: Jun Zhao --- libavfilter/vf_normalize.c |7 +++ 1

[FFmpeg-devel] [PATCH V1 1/3] lavf/utils: Respect default disposition when select the AVStream

2019-06-19 Thread Jun Zhao
From: Jun Zhao Respect default disposition when select the AVStream 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 3d764c1..886cd6f 100644 --- a/libavformat/utils.c

[FFmpeg-devel] [PATCH V1 2/3] ffmpeg_opt: Respect default disposition when select audio/video

2019-06-19 Thread Jun Zhao
From: Jun Zhao Respect default disposition when select audio/video Signed-off-by: Jun Zhao --- fftools/ffmpeg_opt.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 53d688b..f5ca18a 100644 --- a/fftools

[FFmpeg-devel] [PATCH V1 3/3] lavf/dump: More disposition flag dump

2019-06-19 Thread Jun Zhao
From: Jun Zhao More disposition flag dump Signed-off-by: Jun Zhao --- libavformat/dump.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index bb8c72f..1c44656 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c

[FFmpeg-devel] [PATCH V1 2/2] doc/muxers: fix and update docs for hls_playlist_type

2019-06-16 Thread Jun Zhao
From: Jun Zhao fix and update docs for hls_playlist_type Signed-off-by: Jun Zhao --- doc/muxers.texi | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index 50147c4..b2fbe3f 100644 --- a/doc/muxers.texi +++ b/doc

[FFmpeg-devel] [PATCH V1 1/2] lavf/hlsenc: Update suboption for hls_playlist_type

2019-06-16 Thread Jun Zhao
From: Jun Zhao Update suboption for hls_playlist_type Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 9884f74..6c0d0a5 100644 --- a/libavformat/hlsenc.c +++ b

[FFmpeg-devel] [PATCH V1 3/3] lavfi/af_asetnsamples: Remove the redundant condition check

2019-06-15 Thread Jun Zhao
From: Jun Zhao Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but more clearly. Signed-off-by: Jun Zhao --- libavfilter/af_asetnsamples.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetns

[FFmpeg-devel] [PATCH V1 2/3] lavf/asfdec: Simplify the check conditions

2019-06-15 Thread Jun Zhao
From: Jun Zhao Simplify the check conditions Signed-off-by: Jun Zhao --- libavformat/asfdec_o.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c index 8e7f044..7891b23 100644 --- a/libavformat/asfdec_o.c +++ b

[FFmpeg-devel] [PATCH V1 1/3] lavf/mpegtsenc: fix logic check error

2019-06-15 Thread Jun Zhao
From: Jun Zhao fix the logic check error Signed-off-by: Jun Zhao --- libavformat/mpegtsenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index fc0ea22..5d679c9 100644 --- a/libavformat/mpegtsenc.c +++ b

[FFmpeg-devel] [PATCH V1 1/2] lavf/hls: More log message

2019-06-13 Thread Jun Zhao
From: Jun Zhao More log message, it's will help the debugging Signed-off-by: Jun Zhao --- libavformat/hls.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index b5df9ae..3b1d4fe 100644 --- a/libavformat/hls.c +++ b

[FFmpeg-devel] [PATCH V1 2/2] lavf/dashdec: Save and forward more avio options same as HLS demuxer

2019-06-13 Thread Jun Zhao
From: Jun Zhao Save and forward more avio options same as HLS demuxer Signed-off-by: Jun Zhao --- libavformat/dashdec.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 2c50f23..446825d 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V1 2/2] doc/fftools-common-opts: document ffmpeg -h bsf=bitstream_filter_name

2019-06-08 Thread Jun Zhao
From: Jun Zhao document ffmpeg -h bsf=bitstream_filter_name Signed-off-by: Jun Zhao --- doc/fftools-common-opts.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index 4c821ba..1234de8 100644 --- a/doc

[FFmpeg-devel] [PATCH V1 1/2] doc/formats: document f_strict/strict for AVFormatContext

2019-06-08 Thread Jun Zhao
From: Jun Zhao document f_strict/strict option for AVFormatContext Signed-off-by: Jun Zhao --- doc/formats.texi | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/doc/formats.texi b/doc/formats.texi index a992506..729c77b 100644 --- a/doc

[FFmpeg-devel] [PATCH V2 3/4] lavc/webvttdec: fix ffmpeg -h full can't display webvtt decoder

2019-06-05 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt decoder Signed-off-by: Jun Zhao --- libavcodec/webvttdec.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavcodec/webvttdec.c b/libavcodec/webvttdec.c index 7b2d175..28113f6 100644

[FFmpeg-devel] [PATCH V2 4/4] lavc/webvttenc: fix ffmpeg -h full can't display webvtt encoder

2019-06-05 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt encoder Signed-off-by: Jun Zhao --- libavcodec/webvttenc.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index c84bbf4..21e7d92 100644

[FFmpeg-devel] [PATCH V2 0/4] fix webvtt can't dump option issue

2019-06-05 Thread Jun Zhao
V2: - fix WebVTT encoder fail issue Jun Zhao (4): lavf/webvtt: fix ffmpeg -h demuxer=webvtt can't dump options lavf/webvttenc: fix ffmpeg -h full can't display webvtt muxer lavc/webvttdec: fix ffmpeg -h full can't display webvtt decoder lavc/webvttenc: fix ffmpeg -h full can't display

[FFmpeg-devel] [PATCH V2 1/4] lavf/webvtt: fix ffmpeg -h demuxer=webvtt can't dump options

2019-06-05 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h demuxer=webvtt can't dump options Signed-off-by: Jun Zhao --- libavformat/webvttdec.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index e435de3..52579c5 100644

[FFmpeg-devel] [PATCH V2 2/4] lavf/webvttenc: fix ffmpeg -h full can't display webvtt muxer

2019-06-05 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt muxer Signed-off-by: Jun Zhao --- libavformat/webvttenc.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c index 61b7f54..b4e8a61 100644

[FFmpeg-devel] [PATCH V1 5/5] lavf/webvttenc: fix ffmpeg -h full can't display webvtt muxer

2019-06-04 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt muxer Signed-off-by: Jun Zhao --- libavformat/webvttenc.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavformat/webvttenc.c b/libavformat/webvttenc.c index 61b7f54..b4e8a61 100644

[FFmpeg-devel] [PATCH V1 3/5] lavc/webvttdec: fix ffmpeg -h full can't display webvtt decoder

2019-06-03 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt decoder Signed-off-by: Jun Zhao --- libavcodec/webvttdec.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavcodec/webvttdec.c b/libavcodec/webvttdec.c index 7b2d175..28113f6 100644

[FFmpeg-devel] [PATCH V1 1/5] lavf/hls: Update av_log() log message

2019-06-03 Thread Jun Zhao
From: Jun Zhao Pass correct pointer to av_log() and update some error/warning message, it's will help the debugging Signed-off-by: Jun Zhao --- libavformat/hls.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/libavformat/hls.c b/libavformat

[FFmpeg-devel] [PATCH V1 4/5] lavc/webvttenc: fix ffmpeg -h full can't display webvtt encoder

2019-06-03 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h full can't display webvtt encoder Signed-off-by: Jun Zhao --- libavcodec/webvttenc.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/libavcodec/webvttenc.c b/libavcodec/webvttenc.c index c84bbf4..c19040d 100644

[FFmpeg-devel] [PATCH V1 2/5] lavf/webvtt: fix ffmpeg -h demuxer=webvtt can't dump options

2019-06-03 Thread Jun Zhao
From: Jun Zhao fix ffmpeg -h demuxer=webvtt can't dump options Signed-off-by: Jun Zhao --- libavformat/webvttdec.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c index e435de3..52579c5 100644

[FFmpeg-devel] [PATCH V5 1/2] lavfi/colorlevels: Add slice threading support

2019-05-31 Thread Jun Zhao
From: Jun Zhao Add slice threading support, use the command like: ./ffmpeg -i input -vf colorlevels -f null /dev/null with 1080p h264 clip, the fps from 39 fps to 79 fps in the local(Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz) Signed-off-by: Jun Zhao --- libavfilter/vf_colorlevels.c | 110

[FFmpeg-devel] [PATCH V5 2/2] lavfi/lut: Add slice threading support

2019-05-31 Thread Jun Zhao
From: Jun Zhao Used the command for 1080p h264 clip as follow: a). ffmpeg -i input -vf lutyuv="u=128:v=128" -f null /dev/null b). ffmpeg -i input -vf lutrgb="g=0:b=0" -f null /dev/null after enabled the slice threading, the fps change from: a). 144fps to 258fps (lutyuv)

[FFmpeg-devel] [PATCH V5 0/2] Add slice threading support

2019-05-31 Thread Jun Zhao
V5: - Using Macros for redundant code, don't use the is_16bit check in the thread exec callback to avoid potential performance issues, Thanks Ruiling Song, ZhongLi and Paul B Mahol review/comments/suggestion. Jun Zhao (2): lavfi/colorlevels: Add slice threading support lavfi/lut

[FFmpeg-devel] [PATCH V1 2/3] lavf/sr: Don't need to check NULL before sws_freeContext

2019-05-31 Thread Jun Zhao
From: Jun Zhao sws_freeContext have check the NULL pointer, so don't need to check NULL before sws_freeContext. Signed-off-by: Jun Zhao --- libavfilter/vf_sr.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index a371e44

[FFmpeg-devel] [PATCH V1 3/3] lavf/sr: Refine the coding style for init

2019-05-31 Thread Jun Zhao
From: Jun Zhao We perfer the coding style like: /* some stuff */ if (error) { /* error handling */ return -(errorcode); } /* normal actions */ do_something() Signed-off-by: Jun Zhao --- libavfilter/vf_sr.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff

[FFmpeg-devel] [PATCH V1 0/3] Refine SR filter

2019-05-31 Thread Jun Zhao
V1: - Dump input pixel format in error message - Remove NULL check before call sws_freeContext - Refine the error handling coding logic for init Jun Zhao (3): lavf/sr: Dump input pixel format in error message lavf/sr: Don't need to check NULL before sws_freeContext lavf/sr: Refine

[FFmpeg-devel] [PATCH V1 1/3] lavf/sr: Dump input pixel format in error message

2019-05-31 Thread Jun Zhao
From: Jun Zhao Dump input pixel format in error message, it's will help to debugging Signed-off-by: Jun Zhao --- libavfilter/vf_sr.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index 86dc551..a371e44 100644

[FFmpeg-devel] [PATCH V1 1/2] lavfi/sr: Change the backend type from flags to int

2019-05-25 Thread Jun Zhao
From: Jun Zhao native and tensorflow is exclusive, so change the type from flags to int. Signed-off-by: Jun Zhao --- libavfilter/vf_sr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index 65baf5f..95bd3b7 100644

[FFmpeg-devel] [PATCH V1 2/2] lavfi/sr: Remove slice thread flag

2019-05-25 Thread Jun Zhao
From: Jun Zhao sr didn't enable the slice threading, so remove the flag Signed-off-by: Jun Zhao --- libavfilter/vf_sr.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c index 95bd3b7..86dc551 100644 --- a/libavfilter/vf_sr.c

[FFmpeg-devel] [PATCH V2 1/2] doc/build_system: Document checkheaders/alltools and consistency fixes

2019-05-24 Thread Jun Zhao
From: Jun Zhao Document checkheaders/alltools and consistency fixes Signed-off-by: Jun Zhao --- doc/build_system.txt |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/build_system.txt b/doc/build_system.txt index 325a9e8..3d6a21a 100644 --- a/doc

[FFmpeg-devel] [PATCH V4] lavfi/colorlevels: Add slice threading support

2019-05-24 Thread Jun Zhao
V4: - fix clip issue for 16bits case Jun Zhao (1): lavfi/colorlevels: Add slice threading support libavfilter/vf_colorlevels.c | 121 +++--- 1 files changed, 102 insertions(+), 19 deletions(-) ___ ffmpeg-devel

[FFmpeg-devel] [PATCH V4] lavfi/colorlevels: Add slice threading support

2019-05-24 Thread Jun Zhao
From: Jun Zhao Add slice threading support, use the command like: ./ffmpeg -i input -vf colorlevels -f null /dev/null with 1080p h264 clip, the fps from 39 fps to 79 fps in the local(Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz) Signed-off-by: Jun Zhao --- libavfilter/vf_colorlevels.c | 121

[FFmpeg-devel] [PATCH V2] lavfi/lut: Add slice threading support

2019-05-24 Thread Jun Zhao
V2: - update comments Jun Zhao (1): lavfi/lut: Add slice threading support libavfilter/vf_lut.c | 329 +- 1 files changed, 216 insertions(+), 113 deletions(-) ___ ffmpeg-devel mailing list ffmpeg

[FFmpeg-devel] [PATCH V2] lavfi/lut: Add slice threading support

2019-05-24 Thread Jun Zhao
From: Jun Zhao Used the command for 1080p h264 clip as follow: a). ffmpeg -i input -vf lutyuv="u=128:v=128" -f null /dev/null b). ffmpeg -i input -vf lutrgb="g=0:b=0" -f null /dev/null after enabled the slice threading, the fps change from: a). 144fps to 258fps (lutyuv)

[FFmpeg-devel] [PATCH V2 0/2] Update docs

2019-05-24 Thread Jun Zhao
V2: - Add version note for eld_v2 option - Update checkheaders docs Jun Zhao (2): doc/build_system: Document checkheaders/alltools and consistency fixes doc/encoders: Document eld_v2 option for libfdk_aac encoder. doc/build_system.txt |8 doc/encoders.texi|8

[FFmpeg-devel] [PATCH V2 2/2] doc/encoders: Document eld_v2 option for libfdk_aac encoder.

2019-05-24 Thread Jun Zhao
From: Jun Zhao Document eld_v2 option for libfdk_aac encoder. Signed-off-by: Jun Zhao --- doc/encoders.texi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index ef12c73..eefd124 100644 --- a/doc/encoders.texi +++ b/doc

[FFmpeg-devel] [PATCH V1] doc/encoders: Document eld_v2 option for libfdk_aac encoder.

2019-05-23 Thread Jun Zhao
From: Jun Zhao Document eld_v2 option for libfdk_aac encoder. Signed-off-by: Jun Zhao --- doc/encoders.texi |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index ef12c73..e0e 100644 --- a/doc/encoders.texi +++ b/doc

[FFmpeg-devel] [PATCH V1] doc/build_system: Document checkheaders/alltools and consistency fixes

2019-05-21 Thread Jun Zhao
From: Jun Zhao Document checkheaders/alltools and consistency fixes Signed-off-by: Jun Zhao --- doc/build_system.txt |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/build_system.txt b/doc/build_system.txt index 325a9e8..9a12b3a 100644 --- a/doc

[FFmpeg-devel] [PATCH V1 2/2] doc/writing_filters: Use ff_filter_get_nb_threads() get number of threads

2019-05-21 Thread Jun Zhao
From: Jun Zhao ff_filter_get_nb_threads() respect AVFilterContext.nb_threads and graph->nb_threads both, in most case, we perfer this API than using ctx->graph->nb_threads directly. --- doc/writing_filters.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --

[FFmpeg-devel] [PATCH V1 1/2] lavfi/lensfun: Use ff_filter_get_nb_threads() get number of threads

2019-05-21 Thread Jun Zhao
From: Jun Zhao ff_filter_get_nb_threads() respect AVFilterContext.nb_threads and graph->nb_threads both, in most case, we perfer this API than using ctx->graph->nb_threads directly. Signed-off-by: Jun Zhao --- libavfilter/vf_lensfun.c |4 ++-- 1 files changed, 2 insertions(+), 2

[FFmpeg-devel] [PATCH V1] lavfi/lut: Add slice threading support

2019-05-21 Thread Jun Zhao
From: Jun Zhao Used the command for 1080p h264 clip as follow: a). ffmpeg -i input -vf lutyuv="u=128:v=128" -f null /dev/null b). ffmpeg -i input -vf lutrgb="g=0:b=0" -f null /dev/null after enabled the slice threading, the fps change from: a). 144fps to 258fps (lutyuv)

[FFmpeg-devel] [PATCH V2] lavfi/colorlevels: Add slice threading support

2019-05-21 Thread Jun Zhao
From: Jun Zhao Add slice threading support, use the command like: ./ffmpeg -i input -vf colorlevel with 1080p h264 clip, the fps from 39 fps to 79 fps in the local Signed-off-by: Jun Zhao --- libavfilter/vf_colorlevels.c | 125 +++-- 1 files changed, 106

[FFmpeg-devel] [PATCH V3] lavfi/colorlevels: Add slice threading support

2019-05-21 Thread Jun Zhao
From: Jun Zhao Add slice threading support, use the command like: ./ffmpeg -i input -vf colorlevels -f null /dev/null with 1080p h264 clip, the fps from 39 fps to 79 fps in the local(Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz) Signed-off-by: Jun Zhao --- libavfilter/vf_colorlevels.c | 121

[FFmpeg-devel] [PATCH] lavfi/colorlevels: Add slice threading support

2019-05-20 Thread Jun Zhao
From: Jun Zhao Add slice threading support, use the command like: ./ffmpeg -i input -vf colorlevel with 1080p h264 clip, the fps from 39 fps to 79 fps in the local Signed-off-by: Jun Zhao --- libavfilter/vf_colorlevels.c | 125 +++-- 1 files changed, 106

[FFmpeg-devel] [PATCH] libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab

2019-05-17 Thread Jun Zhao
From: Jun Zhao missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to ffmpeg -devices doesn't show gdigrab as a input device FIx #7848 Found-by: dangibson Signed-off-by: Jun Zhao --- libavdevice/gdigrab.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[FFmpeg-devel] [PATCH 1/2] lavf/dashdec: fix the coding logic after open_input fail

2019-05-11 Thread Jun Zhao
From: Jun Zhao setting return status following goto will never be executed, so adjust the location in the code. Signed-off-by: Jun Zhao --- libavformat/dashdec.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index

[FFmpeg-devel] [PATCH 2/2] lavf/dashdec: refactoring error handle logic for open_input

2019-05-11 Thread Jun Zhao
From: Jun Zhao refactoring error handle logic for open_input. Signed-off-by: Jun Zhao --- libavformat/dashdec.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index ce8bd4a..2c50f23 100644 --- a/libavformat/dashdec.c

[FFmpeg-devel] [PATCH 2/6] lavc/avpacket: check NULL before using the pointer

2019-05-10 Thread Jun Zhao
From: Jun Zhao Need to check NULL before using the pointer Signed-off-by: Jun Zhao --- libavcodec/avpacket.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 8f0603d..2b20067 100644 --- a/libavcodec/avpacket.c +++ b

[FFmpeg-devel] [PATCH 3/6] lavc/bink: Remove the dead code block

2019-05-10 Thread Jun Zhao
From: Jun Zhao Remove the dead code block Signed-off-by: Jun Zhao --- libavcodec/bink.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/libavcodec/bink.c b/libavcodec/bink.c index 6673afa..d0f1b39 100644 --- a/libavcodec/bink.c +++ b/libavcodec/bink.c @@ -1046,8

[FFmpeg-devel] [PATCH 6/6] lavc/pngenc: check malloc fail before using the pointer

2019-05-10 Thread Jun Zhao
From: Jun Zhao Need to check malloc fail before using the pointer Signed-off-by: Jun Zhao --- libavcodec/pngenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 69b4495..d4d8dc8 100644 --- a/libavcodec/pngenc.c +++ b

[FFmpeg-devel] [PATCH 5/6] lavc/mlpenc: remove the redundant condition check

2019-05-10 Thread Jun Zhao
From: Jun Zhao remove the redundant condition check for 'frame' Signed-off-by: Jun Zhao --- libavcodec/mlpenc.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index 7536d3b..deb1716 100644 --- a/libavcodec/mlpenc.c +++ b

[FFmpeg-devel] [PATCH 1/6] lavc/aacenc_ltp: remove unnecessary condition check.

2019-05-10 Thread Jun Zhao
From: Jun Zhao Condition 'sum==2' is always true, so remove the check logic to make the code clean. Signed-off-by: Jun Zhao --- libavcodec/aacenc_ltp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/aacenc_ltp.c b/libavcodec/aacenc_ltp.c index 674a2a0

[FFmpeg-devel] [PATCH 4/6] lavc/libvpxenc: remove redundant condition check

2019-05-10 Thread Jun Zhao
From: Jun Zhao Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but more clearly. Signed-off-by: Jun Zhao --- libavcodec/libvpxenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index c823b8a.

[FFmpeg-devel] [PATCH 2/3] tools/crypto_bench: check malloc fail before using it

2019-05-08 Thread Jun Zhao
From: Jun Zhao Need to check malloc fail before using it, so adjust the location in the code. Signed-off-by: Jun Zhao --- tools/crypto_bench.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c index aca8bbb..ac9fcc4

[FFmpeg-devel] [PATCH 3/3] tools/crypto_bench: update the comment about build command

2019-05-08 Thread Jun Zhao
From: Jun Zhao commit cd62f9d557f missing the comment about build Signed-off-by: Jun Zhao --- tools/crypto_bench.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c index ac9fcc4..0aff4ea 100644 --- a/tools/crypto_bench.c

[FFmpeg-devel] [PATCH 1/3] lavf/cover_rect: Fix logic check issue

2019-05-08 Thread Jun Zhao
From: Jun Zhao Fix logic check issue #6741 Signed-off-by: Jun Zhao --- libavfilter/vf_cover_rect.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_cover_rect.c b/libavfilter/vf_cover_rect.c index f7f6103..41cd1a1 100644 --- a/libavfilter

[FFmpeg-devel] [PATCH V1 0/2] Use avctx->framerate first for frame rate setting

2019-04-27 Thread Jun Zhao
perfer avctx->framerate first than use avctx->time_base when setting the frame rate to encoder. 1/time_base is not the average frame rate if the frame rate is not constant. So perfer avctx->framerate than 1/avctx->time_base if the avctx->framerate is not zero. Jun Zhao (2): la

[FFmpeg-devel] [PATCH V1 1/2] lavc/libx264: Use avctx->framerate first for frame rate setting

2019-04-27 Thread Jun Zhao
From: Jun Zhao perfer avctx->framerate first than use avctx->time_base when setting the frame rate to encoder. 1/time_base is not the average frame rate if the frame rate is not constant. In this case, we need to setting avctx->framerate and avctx->time_base both, but avctx->fram

[FFmpeg-devel] [PATCH V1 2/2] lavc/libx265: Use avctx->framerate first for frame rate setting

2019-04-27 Thread Jun Zhao
From: Jun Zhao perfer avctx->framerate first than use avctx->time_base when setting the frame rate to encoder. 1/time_base is not the average frame rate if the frame rate is not constant, so use avctx->framerate if the value is not zero. Signed-off-by: Jun Zhao --- libavcodec/libx265

[FFmpeg-devel] [PATCH V2] lavfi/frei0r: Fixes the compilation warnings

2019-04-21 Thread Jun Zhao
From: Jun Zhao Fixes the compilation warnings Signed-off-by: Jun Zhao --- libavfilter/vf_frei0r.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index c775ed1..165fbd7 100644 --- a/libavfilter/vf_frei0r.c +++ b

[FFmpeg-devel] [PATCH V1 1/2] examples/avio_reading: Use avio_context_free() to free AVIOContext

2019-04-21 Thread Jun Zhao
From: Jun Zhao Signed-off-by: Jun Zhao --- doc/examples/avio_reading.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/examples/avio_reading.c b/doc/examples/avio_reading.c index cbfeb17..36ee02a 100644 --- a/doc/examples/avio_reading.c +++ b/doc/examples

[FFmpeg-devel] [PATCH V1 2/2] lavf/frei0r: Fixes the compilation warnings

2019-04-21 Thread Jun Zhao
From: Jun Zhao Fixes the compilation warnings Signed-off-by: Jun Zhao --- libavfilter/vf_frei0r.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index c775ed1..165fbd7 100644 --- a/libavfilter/vf_frei0r.c +++ b

[FFmpeg-devel] [PATCH V2] lavf: bump version/add APIchanges entry when cleanup applehttp

2019-04-16 Thread Jun Zhao
From: Jun Zhao commit abfeba9 "lavf/hls: Cleanup the applehttp" missed the version bump and APIchanges entry. Signed-off-by: Jun Zhao --- doc/APIchanges|3 +++ libavformat/version.h |2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/doc/APIcha

[FFmpeg-devel] [PATCH V2] *** SUBJECT HERE ***

2019-04-16 Thread Jun Zhao
V2: -Fix logic error and use av_strncasecmp, Tks Michael's comments Jun Zhao (1): lavf/oggparsevorbis: Fix change the case of metadata keys issue libavformat/oggparsevorbis.c |9 - tests/ref/fate/limited_input_seek|2 +- tests/ref/fate/limited_input_seek

[FFmpeg-devel] [PATCH V2] lavf/oggparsevorbis: Fix change the case of metadata keys issue

2019-04-16 Thread Jun Zhao
From: Jun Zhao The spec in https://xiph.org/vorbis/doc/v-comment.html states that the metadata keys are case-insensitive, so don't change the case and update the fate test case. Fix #7784 Signed-off-by: Jun Zhao --- libavformat/oggparsevorbis.c |9 - tests/ref/fate

[FFmpeg-devel] [PATCH V1 1/2] lavf/hls: Remove HLSContext.strict_std_compliance field

2019-04-16 Thread Jun Zhao
From: Jun Zhao After the commit 9f61abc8111, we can use AVFormatContext.strict_std_compliance instead of HLSContext.strict_std_compliance to avoid the code redundancy. Signed-off-by: Jun Zhao --- libavformat/hls.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git

[FFmpeg-devel] [PATCH V1 2/2] lavf: bump version/add Changelog entry when cleanup applehttp

2019-04-15 Thread Jun Zhao
From: Jun Zhao commit abfeba9 "lavf/hls: Cleanup the applehttp" missed the version bump and Changelog entry. Signed-off-by: Jun Zhao --- Changelog |1 + libavformat/version.h |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Changelog b/Chang

[FFmpeg-devel] [PATCH V1] lavf/oggparsevorbis: Fix change the case of metadata keys issue

2019-04-14 Thread Jun Zhao
From: Jun Zhao The spec in https://xiph.org/vorbis/doc/v-comment.html states that the metadata keys are case-insensitive, so don't change the case and update the fate test case. Fix #7784 Signed-off-by: Jun Zhao --- libavformat/oggparsevorbis.c |9 - tests/ref/fate

[FFmpeg-devel] [PATCH V1] avformat/avformat.h: correct the comment for AVInputFormat.extensions

2019-04-12 Thread Jun Zhao
From: Jun Zhao Now the probe logic is: Only read_probe is NULL and extensions are defined, then no probe is done. Correct the comment to follow the coding logic. Signed-off-by: Jun Zhao --- libavformat/avformat.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[FFmpeg-devel] [PATCH V1 2/2] lavf/vc1test: Remove the extensions field.

2019-04-12 Thread Jun Zhao
From: Jun Zhao Now if extensions are defined, then no probe is done, so remove the extensions in vc1test demuxer. Signed-off-by: Jun Zhao --- libavformat/vc1test.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index

[FFmpeg-devel] [PATCH V1 1/2] lavf/hls: Cleanup the applehttp

2019-04-12 Thread Jun Zhao
From: Jun Zhao Cleanup the applehttp as demuxer name, when use the command : ffmpeg -formats, get the confused information like: " E hls Apple HTTP Live Streaming D hls,applehttp Apple HTTP Live Streaming " we don't use applehttp as the demuxer/muxer name usually,

[FFmpeg-devel] [PATCH V2] lavf/matroskaenc: Fix memory leak after write trailer

2019-04-04 Thread Jun Zhao
From: Jun Zhao Fix memory leak after write trailer for #7827, only store a audio packet whose buffer has size greater than zero in cur_audio_pkt. Thanks to Andreas Rheinhardt for the suggestions. Signed-off-by: Jun Zhao --- libavformat/matroskaenc.c |3 ++- 1 files changed, 2 insertions

[FFmpeg-devel] [PATCH V1] lavf/matroskaenc: Fix memory leak after write trailer

2019-04-04 Thread Jun Zhao
From: Jun Zhao Fix memory leak after write trailer for #7827 Signed-off-by: Jun Zhao --- libavformat/matroskaenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index b9f99c4..22ba93a 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V1] doc/examples/metadata: fix the example can't dump FLV metadata

2019-04-03 Thread Jun Zhao
From: Jun Zhao fix the example can't dump FLV metadata. Signed-off-by: Jun Zhao --- doc/examples/metadata.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c index e330d07..b6cfa6b 100644 --- a/doc/examples

[FFmpeg-devel] [PATCH V1] lavf/hashenc: Correct the hash/MD5 muxer class name

2019-03-29 Thread Jun Zhao
From: Jun Zhao Follow the name style to correct the hash/md5 muxer class name Signed-off-by: Jun Zhao --- libavformat/hashenc.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/hashenc.c b/libavformat/hashenc.c index a66db4a..06fc085 100644

[FFmpeg-devel] [PATCH V2] lavf/flvdec: Fix AMF NUMBER type to metadata lost precision

2019-03-28 Thread Jun Zhao
From: Jun Zhao Use %.12g replace %.f when save AMF NUMBER(double) type to metadata. And update fate ref. before this fix, we get FLV metadata like: Metadata: lasttimestamp : 113 lastkeyframetimestamp: 112 after this fix: Metadata: lasttimestamp : 113.005

[FFmpeg-devel] [PATCH V1 2/2] fate/flv-add_keyframe_index: Update fate after last commit

2019-03-28 Thread Jun Zhao
From: Jun Zhao Update fate ref after last commit Signed-off-by: Jun Zhao --- tests/ref/fate/flv-add_keyframe_index |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/ref/fate/flv-add_keyframe_index b/tests/ref/fate/flv-add_keyframe_index index 1c4da65..ce3809e

[FFmpeg-devel] [PATCH V1 1/2] lavf/flvdec: Fix AMF NUMBER type to metadata lost precision

2019-03-28 Thread Jun Zhao
From: Jun Zhao use %.12g replace %.f when save AMF NUMBER(double) type to metadata. before this fix, we get FLV metadata like: Metadata: lasttimestamp : 113 lastkeyframetimestamp: 112 after this fix: Metadata: lasttimestamp : 113.005 lastkeyframetimestamp: 111.678

[FFmpeg-devel] [PATCH V1 1/2] lavf/flvdec: add AMF date type support

2019-03-26 Thread Jun Zhao
From: Jun Zhao Support AMF date type when parse the FLV metadata. Signed-off-by: Jun Zhao --- libavformat/flvdec.c | 24 ++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index c4d5278..b1e13da 100644

[FFmpeg-devel] [PATCH V1 2/2] lavf/flvdec: Cosmetics: Fix indentation for flv_read_packet

2019-03-26 Thread Jun Zhao
From: Jun Zhao Commit e34ba5ec53b missed the indent Signed-off-by: Jun Zhao --- libavformat/flvdec.c | 244 +- 1 files changed, 122 insertions(+), 122 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index b1e13da..445d58d

[FFmpeg-devel] [PATCH] avformat/avformat.h: Update the comment for AVInputFormat.flags

2019-03-25 Thread Jun Zhao
From: Jun Zhao AVFMT_NOTIMESTAMPS may be using AVInputFormat.flags for demuxing Signed-off-by: Jun Zhao --- libavformat/avformat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 2907be5..a65c262 100644

[FFmpeg-devel] [PATCH V1 2/3] avformat/avformat.h: Update the comment for format_probesize

2019-03-25 Thread Jun Zhao
From: Jun Zhao Update the comment for format_probesize. Signed-off-by: Jun Zhao --- libavformat/avformat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index e1b9b11..2907be5 100644 --- a/libavformat/avformat.h +++ b

[FFmpeg-devel] [PATCH V1 3/3] avformat/avformat.h: Update the Update the comment for AVInputFormat.flags

2019-03-25 Thread Jun Zhao
From: Jun Zhao AVFMT_NOTIMESTAMPS may be using AVInputFormat.flags for demuxing Signed-off-by: Jun Zhao --- libavformat/avformat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 2907be5..a65c262 100644

[FFmpeg-devel] [PATCH V1 1/3] lavf/utils: Remove redundancy AVFMT_FLAG_CUSTOM_IO setting

2019-03-25 Thread Jun Zhao
From: Jun Zhao After commit ba631b79, we don't need to re-setting AVFMT_FLAG_CUSTOM_IO in init_input(). Signed-off-by: Jun Zhao --- libavformat/utils.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 9b3f0d2..fe67c8f

[FFmpeg-devel] [PATCH V2] lavfi/showinfo: support regions of interest sidedata

2019-03-10 Thread Jun Zhao
From: Jun Zhao support regions of interest sidedata Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index e41c330..d0e140f

[FFmpeg-devel] [PATCH 2/2] lavfi/showinfo: support regions of interest sidedata

2019-03-09 Thread Jun Zhao
From: Jun Zhao support regions of interest sidedata Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 9e84197..b51c1ae 100644

[FFmpeg-devel] [PATCH 1/2] lavfi/sidedata: add missed frame side data type

2019-03-09 Thread Jun Zhao
From: Jun Zhao add missed frame side data type Signed-off-by: Jun Zhao --- libavfilter/f_sidedata.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c index 45d246b..381da5a 100644

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