[FFmpeg-devel] [PATCH V1 1/2] lavfi/scale: Add sub-options for in_color_matrix/out_color_matrix

2019-07-04 Thread Jun Zhao
From: Jun Zhao Add sub-options for in_color_matrix/out_color_matrix Signed-off-by: Jun Zhao --- libavfilter/vf_scale.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index f741419..7aebf56 100644 --- a

[FFmpeg-devel] [PATCH V1 2/2] doc/filters: Document missing options for scale in/out color matrix

2019-07-04 Thread Jun Zhao
From: Jun Zhao Document missing options for scale in/out color matrix Signed-off-by: Jun Zhao --- doc/filters.texi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 700a76f..b7dec47 100644 --- a/doc/filters.texi +++ b/doc

[FFmpeg-devel] [PATCH V1 1/2] lavf/avio: remove ffio_open2_wrapper function

2019-07-12 Thread Jun Zhao
From: Jun Zhao Remove the function ffio_open2_wrapper, it's not being used anymore. Signed-off-by: Jun Zhao --- libavformat/aviobuf.c |6 -- libavformat/internal.h |3 --- 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/avio

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

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

[FFmpeg-devel] [PATCH V1] lavf/hlsenc: fix hls muxer time drifts from the actual clock time

2019-07-13 Thread Jun Zhao
From: Jun Zhao fix hls muxer time drifts from the actual clock time, based on Pavel Pilar's fix. fix: Ticket7986 Signed-off-by: Pavel Pilar Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libavformat/hls

[FFmpeg-devel] [PATCH V1] doc/codecs: Add missing documentation for nointra

2019-07-14 Thread Jun Zhao
From: Jun Zhao Add missing documentation for nointra. Signed-off-by: Jun Zhao --- doc/codecs.texi |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/doc/codecs.texi b/doc/codecs.texi index 6b72760..0d0de94 100644 --- a/doc/codecs.texi +++ b/doc/codecs.texi @@ -963,6

[FFmpeg-devel] [PATCH V1 2/3] doc/ffmpeg: Document dts_error_threshold option

2019-07-21 Thread Jun Zhao
From: Jun Zhao Document dts_error_threshold option. Signed-off-by: Jun Zhao --- doc/ffmpeg.texi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb4..2152e62 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1515,6

[FFmpeg-devel] [PATCH V1 3/3] lavf/hls: replace the same code logic with ensure_playlist()

2019-07-21 Thread Jun Zhao
From: vacingfang Replace the same code logic with ensure_playlist(), it's will help reusable blocks of code. Reviewed-by: Jun Zhao Signed-off-by: vacingfang --- libavformat/hls.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libavformat/hls.c b/libavf

[FFmpeg-devel] [PATCH V1 1/3] lavf/hls: remove redundancy reset_packet() after av_packet_unref()

2019-07-21 Thread Jun Zhao
From: Jun Zhao av_packet_unref have reseted the AVPacket, so don't need to call reset_packet after that. Signed-off-by: Jun Zhao --- libavformat/hls.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 8c12fce..23

[FFmpeg-devel] [PATCH V2] doc/ffmpeg: Document dts_error_threshold option

2019-08-04 Thread Jun Zhao
From: Jun Zhao Document dts_error_threshold option. Signed-off-by: Jun Zhao --- doc/ffmpeg.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb4..1da18d9 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1515,6

[FFmpeg-devel] [PATCH V1] lavf/showinfo: support mastering display sidedata

2019-08-04 Thread Jun Zhao
From: Jun Zhao support mastering display sidedata. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index f6f8f49..8889c01 100644

[FFmpeg-devel] [PATCH V2 1/2] lavf/showinfo: support mastering display sidedata

2019-08-05 Thread Jun Zhao
From: Jun Zhao support mastering display sidedata. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index f6f8f49..d5c444e 100644

[FFmpeg-devel] [PATCH V2 2/2] lavf/showinfo: use error level when get invalid sidedata

2019-08-05 Thread Jun Zhao
From: Jun Zhao Use error level when get invalid sidedata, and remove a unnecessary newline in error message. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter

[FFmpeg-devel] [PATCH V2 0/2] Add Mastering Display support in showinfo

2019-08-05 Thread Jun Zhao
V2: - change the level from info to error when get invalid side data Jun Zhao (2): lavf/showinfo: support mastering display sidedata lavf/showinfo: use error level when get invalid sidedata libavfilter/vf_showinfo.c | 36 +--- 1 files changed, 33 insertions

[FFmpeg-devel] [PATCH V1] examples/encode_video: only add sequence end code for mpeg1/2 video

2019-08-05 Thread Jun Zhao
From: Jun Zhao Only add sequence end code for mpeg1/mpeg2 video, or else use the encoder libx264 or libx265 in this sample, decoding the output file will get unknow NALU type error. Signed-off-by: Jun Zhao --- doc/examples/encode_video.c |3 ++- 1 files changed, 2 insertions(+), 1

[FFmpeg-devel] [PATCH V1] lavf/hls: add http_seekable option for HTTP partial requests

2019-08-07 Thread Jun Zhao
From: Jun Zhao Add http_seekable option for HTTP partial requests, when The EXT-X-BYTERANGE tag indicates that a Media Segment is a sub-range of the resource identified by its URI, we can use HTTP partial requests to get the Media Segment. Signed-off-by: Jun Zhao --- doc/demuxers.texi |4

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

2019-08-08 Thread Jun Zhao
From: tomajsjiang fix error like "offset 0x1f85: partial file", the root cause is when read the mp4 file from http, and the moov in the end of the mp4 file, reconfig the buffer will drop some data. Signed-off-by: Jun Zhao Signed-off-by: Zhongxing Jiang --- libavformat/util

[FFmpeg-devel] [PATCH V1 1/2] lavf/avio: add a ffio_realloc_buf API for AVIO buffer realloc

2019-08-08 Thread Jun Zhao
From: tomajsjiang Add new API ffio_realloc_buf for AVIO buffer realloc. Signed-off-by: Zhongxing Jiang --- libavformat/avio_internal.h |9 + libavformat/aviobuf.c | 31 +++ 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/libavform

[FFmpeg-devel] [PATCH V1] lavf/mov: fix fMP4 tfdt box lead to dts reset issue

2019-08-13 Thread Jun Zhao
From: Jun Zhao In fMP4 format, traf maybe have zero or more trun box, in this case, we just used tfdt as dts once. The sample layout like this: [moof] size=8+1392 [mfhd] size=12+4 sequence number = 29 [traf] size=8+1368 [tfhd] size=12+16, flags=20038 track ID = 1 default

[FFmpeg-devel] [PATCH V1] libavdevice: Update the class name as uniform style

2019-08-13 Thread Jun Zhao
From: Jun Zhao Update the class name to uniform indev/outdev style. Signed-off-by: Jun Zhao --- libavdevice/alsa_dec.c|2 +- libavdevice/alsa_enc.c|2 +- libavdevice/avfoundation.m|2 +- libavdevice/bktr.c|2 +- libavdevice/caca.c

[FFmpeg-devel] [PATCH V1 5/5] lavf/hlsenc: free the old_filname to avoid memory leak

2019-08-19 Thread Jun Zhao
From: Jun Zhao free the old_filname to avoid memory leak in error handle path. 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 f6f9c81..9099c84 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V1 2/5] lavfi/avfiltergraph: add check before free the format

2019-08-19 Thread Jun Zhao
From: Jun Zhao ff_merge_samplerates will be deallocate a or b in some case, so add a check before free the format. Signed-off-by: Jun Zhao --- libavfilter/avfiltergraph.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter

[FFmpeg-devel] [PATCH V1 1/5] lavfi/af_adeclick: fix double free after ff_filter_frame fail

2019-08-19 Thread Jun Zhao
From: Jun Zhao ff_filter_frame fail will free the frame, so we just returen after this function fail. Signed-off-by: Jun Zhao --- libavfilter/af_adeclick.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/af_adeclick.c b/libavfilter/af_adeclick.c index

[FFmpeg-devel] [PATCH V1 4/5] lavfi/dnn/dnn_backend_native: fix memory leak in error path

2019-08-19 Thread Jun Zhao
From: Jun Zhao fix memory leak in error path Signed-off-by: Jun Zhao --- libavfilter/dnn/dnn_backend_native.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_native.c b/libavfilter/dnn/dnn_backend_native.c index 7b489d0..2619463 100644

[FFmpeg-devel] [PATCH V1 3/5] lavfi/dnn/dnn_backend_native: Refine the coding style

2019-08-19 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/dnn/dnn_backend_native.c | 24

[FFmpeg-devel] [PATCH V1] avutil/file: always set *size to zero if *bufptr is NULL

2019-08-28 Thread Jun Zhao
From: Jun Zhao Always set *size to zero if *bufptr is NULL, it's more make sence. fix #8095 Signed-off-by: Jun Zhao --- libavutil/file.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libavutil/file.c b/libavutil/file.c index d946085..f228b72 100644

[FFmpeg-devel] [PATCH V2] examples/vaapi_dec_scaling: add a vaapi decoding/scaling sample

2018-08-23 Thread Jun Zhao
add a vaapi decoding/scaling sample. Signed-off-by: Jun Zhao --- configure|2 + doc/examples/Makefile|1 + doc/examples/vaapi_dec_scaling.c | 377 ++ 3 files changed, 380 insertions(+), 0 deletions(-) create mode

[FFmpeg-devel] [PATCH V7 1/3] lavc/vaapi_encode: Add max slices number query.

2018-08-29 Thread Jun Zhao
From: Jun Zhao Add max slices number query. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode.c |4 libavcodec/vaapi_encode.h |4 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 313f551..e4a104e

[FFmpeg-devel] [PATCH V7 2/3] lavc/vaapi_encode_h264: respect "slices" option in h264 vaapi encoder

2018-08-29 Thread Jun Zhao
Enable multi-slice support in AVC/H.264 vaapi encoder. Signed-off-by: Wang, Yi A Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h264.c | 39 ++- 1 files changed, 34 insertions(+), 5 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b

[FFmpeg-devel] [PATCH V7 3/3] lavc/vaapi_encode_h265: respect "slices" option in h265 vaapi encoder

2018-08-29 Thread Jun Zhao
Enable multi-slice support in HEVC/H.265 vaapi encoder. Signed-off-by: Wang, Yi A Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h265.c | 41 ++- 1 files changed, 35 insertions(+), 6 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b

[FFmpeg-devel] [PATCH V7 0/3] enable multi-slices in vaapi_h264/265 encoder

2018-08-29 Thread Jun Zhao
d when realloc pic->param_buffers fail. - Adjust max_slices location in VAAPIEncodeContext. - Re-work distributing the macro-blocks for multi-slices function. V2: - Change the slice/parameter buffers to dynamic alloc and split the mutil-slice support for AVC/HEVC. Jun Zhao (3): lavc/vaa

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

2018-09-12 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 tunning the VPP pipeline for performance. Signed-off-by: Jun Zhao --- libavfilter/vf_scale_vaapi.c | 36 +--- 1 files c

[FFmpeg-devel] [PATCH] lavc/mpeg2dec: fix MPEG2 VA-API interlace decoding issue.

2018-09-17 Thread Jun Zhao
From: Jun Zhao For interlaced frame, it has to call slice_end() for both fields. And VASliceParameterBufferMPEG2::slice_vertical_position is supposed to be the position in the picture but not field in this case. Signed-off-by: Dong, Jerry Signed-off-by: Jun Zhao --- libavcodec/mpeg12dec.c

[FFmpeg-devel] [PATCH 1/2] lavu/frame: Add missing conversions from side data enum to name

2018-09-17 Thread Jun Zhao
Add missing conversions from side data enum to name. Signed-off-by: Jun Zhao --- libavutil/frame.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 6c2c28f..4460325 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c

[FFmpeg-devel] [PATCH 2/2] lavc/avpacket: Add missing conversions from side data enum to name.

2018-09-17 Thread Jun Zhao
Add missing conversions from side data enum to name. Signed-off-by: Jun Zhao --- libavcodec/avpacket.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 99a0c13..002fa0f 100644 --- a/libavcodec/avpacket.c +++ b

[FFmpeg-devel] [PATCH] lavfi/deshake: fix deshake crash issue.

2018-09-18 Thread Jun Zhao
Fixes ticket #7441. Signed-off-by: Jun Zhao --- libavfilter/vf_deshake.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index 55ce5e1..5d2c7fa 100644 --- a/libavfilter/vf_deshake.c +++ b/libavfilter

[FFmpeg-devel] [PATCH V2] lavfi/deshake: fix deshake crash issue.

2018-09-21 Thread Jun Zhao
cksize| | | | | | +--+ V Y so we calc the block contrast use: (cy + y) * stride + (cx + x) Signed-off-by: Jun Zhao --- libavfilter/vf_deshake.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index 55ce5e1..c8480e7 100644

[FFmpeg-devel] [PATCH V1 2/3] configure: Add pixelutils dependency for minterpolate filter

2018-09-25 Thread Jun Zhao
Signed-off-by: Jun Zhao --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 1946bcb..b074336 100755 --- a/configure +++ b/configure @@ -3400,6 +3400,7 @@ ladspa_filter_deps="ladspa libdl" lensfun_filter_deps="libl

[FFmpeg-devel] [PATCH V1 3/3] lavf/minterpolate: use av_global_blend_row for blend performance.

2018-09-25 Thread Jun Zhao
Use the av_global_blend_row for blend mode performance. About 9x (43fps -> 415fps) in 1080P, use the command like: ffmpeg -i skyfall2-trailer.mp4 -vf minterpolate=mi_mode=blend \ -an -f null /dev/nul Signed-off-by: Jun Zhao --- libavfilter/vf_minterpolate.c | 16 +++- 1 fi

[FFmpeg-devel] [PATCH V1 1/3] lavu: Add alpha blending API based on row.

2018-09-25 Thread Jun Zhao
Add alpha blending API based on row, support global alpha blending/ per-pixel blending, and add SSSE3/AVX2 optimizations of the functions. Signed-off-by: Jun Zhao --- libavutil/Makefile |2 + libavutil/blend.c | 101 libavutil/blend.h | 47

[FFmpeg-devel] [PATCH V1] ffmpeg: fix video_delay warning for HEVC/MPEG4 decoding

2018-09-26 Thread Jun Zhao
For HEVC/MPEG4, we also need video_delay from the decoder, when decoding some HEVC/MPEG4 clips, got numerous log like: "video_delay is larger in decoder than demuxer", similar ticket: #3711 fix ticket: #6109 Signed-off-by: Lin Xie Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |

[FFmpeg-devel] [PATCH V2] ffmpeg: fix video_delay warning for HEVC/MPEG4 decoding

2018-09-26 Thread Jun Zhao
For HEVC/MPEG4, we also need video_delay from the decoder, when decoding some HEVC/MPEG4 clips, got numerous log like: "video_delay is larger in decoder than demuxer", similar ticket: #3711 fix ticket: #6019 Signed-off-by: Lin Xie Signed-off-by: Jun Zhao --- fftools/ffmpeg.c |

[FFmpeg-devel] [PATCH] lavf/vc1test: fix vc1test can't probe some RCV file.

2018-10-11 Thread Jun Zhao
Practice - VC-1 Decoder and Bitstream Conformance). Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX --- libavformat/vc1test.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index a801f4b..38eb1a4 100644 --- a

[FFmpeg-devel] [PATCH V2 1/2] lavf/vc1test: fix vc1test can't probe some RCV file.

2018-10-12 Thread Jun Zhao
Practice - VC-1 Decoder and Bitstream Conformance). Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX --- libavformat/vc1test.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index a801f4b..82e155a 100644 --- a

[FFmpeg-devel] [PATCH V2 2/2] lavf/vc1test: add rcv to vc1test demuxer extensions

2018-10-12 Thread Jun Zhao
rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao --- libavformat/vc1test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 82e155a..a252bf0 100644 --- a/libavformat/vc1test.c +++ b

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

2018-10-13 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 V3 2/2] lavf/vc1test: add rcv to vc1test demuxer extensions

2018-10-13 Thread Jun Zhao
rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao --- libavformat/vc1test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index e029ff4..39b7716 100644 --- a/libavformat/vc1test.c +++ b

[FFmpeg-devel] [PATCH V3 1/2] lavf/vc1test: fix vc1test can't probe some RCV file.

2018-10-13 Thread Jun Zhao
-1 Decoder and Bitstream Conformance). And I think I got a older VC-1 test clip in the case 1. Reviewed-by: Carl Eugen Hoyos Reviewed-by: Jerome Borsboom Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX --- libavformat/vc1test.c | 11 +-- 1 files

[FFmpeg-devel] [PATCH V3 0/2] *** SUBJECT HERE ***

2018-10-13 Thread Jun Zhao
v3: - add size check when probe as Michael's comments. - update commit msg - for Jerome's comments, I don't find a way to adjusted the handle for "0x000c" v2: - split the patch (Carl Eugen Hoyos's comments). Jun Zhao (2): lavf/vc1test: fix vc1test can

[FFmpeg-devel] [PATCH V4 1/2] lavf/vc1test: fix vc1test can't probe some RCV file.

2018-10-15 Thread Jun Zhao
-1 Decoder and Bitstream Conformance). And I think I got a older VC-1 test clip in the case 1. Reviewed-by: Carl Eugen Hoyos Reviewed-by: Jerome Borsboom Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX --- libavformat/vc1test.c | 12 ++-- 1 files

[FFmpeg-devel] [PATCH V4 0/2] fix vc1test can't probe some RCV file

2018-10-15 Thread Jun Zhao
v4: - add size check to avoid overread v3: - add size check when probe as Michael's comments. - update commit msg - for Jerome's comments, I don't find a way to adjusted the handle for "0x000c" v2: - split the patch (Carl Eugen Hoyos's comments). Jun

[FFmpeg-devel] [PATCH V4 2/2] lavf/vc1test: add rcv to vc1test demuxer extensions

2018-10-15 Thread Jun Zhao
rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao --- libavformat/vc1test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 2427660..8aaad93 100644 --- a/libavformat/vc1test.c +++ b

[FFmpeg-devel] [PATCH V5 2/2] lavf/vc1test: add rcv to vc1test demuxer extensions

2018-10-16 Thread Jun Zhao
rcv is commonly used as extension for vc1 test stream files. Signed-off-by: Jun Zhao --- libavformat/vc1test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/vc1test.c b/libavformat/vc1test.c index 64a45cd..d445709 100644 --- a/libavformat/vc1test.c +++ b

[FFmpeg-devel] [PATCH V5 0/2] fix vc1test can't probe some RCV file

2018-10-16 Thread Jun Zhao
00c" v2: - split the patch (Carl Eugen Hoyos's comments). Jun Zhao (2): lavf/vc1test: fix vc1test can't probe some RCV file. lavf/vc1test: add rcv to vc1test demuxer extensions libavformat/vc1test.c | 13 +++-- 1 files cha

[FFmpeg-devel] [PATCH V5 1/2] lavf/vc1test: fix vc1test can't probe some RCV file.

2018-10-16 Thread Jun Zhao
-1 Decoder and Bitstream Conformance). And I think I got a older VC-1 test clip in the case 1. Reviewed-by: Carl Eugen Hoyos Reviewed-by: Jerome Borsboom Reviewed-by: Michael Niedermayer Signed-off-by: Jun Zhao Signed-off-by: Yan, FengX --- libavformat/vc1test.c | 12 ++-- 1 files

[FFmpeg-devel] [PATCH V2] libavcodec/vp8dec: fix the multi-thread HWAccel decode error

2018-10-17 Thread Jun Zhao
call update_dimensions as need. Signed-off-by: Wang, Shaofei Reviewed-by: Jun, Zhao Reviewed-by: Haihao Xiang --- libavcodec/vp8.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index a06692c..c205868 100644 --- a/libavcodec/vp8.c

[FFmpeg-devel] [PATCH] Add vc1test fate test case

2018-10-24 Thread Jun Zhao
Add vc1test fate test case, and need to apply after upload the samples. Jun Zhao (1): fate: Add test for vc1test demuxer tests/fate/microsoft.mak |6 ++ tests/ref/fate/vc1test_smm0005 | 29 + tests/ref/fate/vc1test_smm0015 | 30

[FFmpeg-devel] [PATCH] lavc/hevcdec: HEVC decoder getting format clean up

2018-10-24 Thread Jun Zhao
From: Jun Zhao Add checking to avoid calling ff_thread_get_format repeatedly whenever new slice header decoded. Signed-off-by: Lin Xie Signed-off-by: Jun Zhao --- libavcodec/hevcdec.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec

[FFmpeg-devel] [PATCH] fate: Add test for vc1test demuxer

2018-10-24 Thread Jun Zhao
Signed-off-by: Jun Zhao --- tests/fate/microsoft.mak |6 ++ tests/ref/fate/vc1test_smm0005 | 29 + tests/ref/fate/vc1test_smm0015 | 30 ++ 3 files changed, 65 insertions(+), 0 deletions(-) create mode 100644 tests/ref

[FFmpeg-devel] [PATCH 2/2] lavu/frame: Add error report if av_image_fill_pointers fail.

2018-10-27 Thread Jun Zhao
Add error handle if av_image_fill_pointers fail. Signed-off-by: Jun Zhao --- libavutil/frame.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 92626dc..9b3fb13 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c

[FFmpeg-devel] [PATCH 1/2] lavc/decode: Fix the error number report if av_image_fill_pointers fail.

2018-10-27 Thread Jun Zhao
_fill_pointers in case of av_image_fill_pointers failure. Signed-off-by: Jun Zhao --- libavcodec/decode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 2e82f6b..c89c77c 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -149

[FFmpeg-devel] [PATCH 0/2] Fix error handle if av_image_fill_pointers fail

2018-10-27 Thread Jun Zhao
av_image_fill_pointers will return a negative error code in case of failure, so we use the error code in the caller. Jun Zhao (2): lavc/decode: Fix the error number report if av_image_fill_pointers fail. lavu/frame: Add error report if av_image_fill_pointers fail. libavcodec/decode.c

[FFmpeg-devel] [PATCH] lavc/mjpegdec: fix VA-API MJPEG decoding uninitialized huffman table

2018-10-29 Thread Jun Zhao
From: Jun Zhao Now VA-API HWAccel MJPEG decoding uninitialized huffman table, it's will lead to the decoding error like"Failed to sync surface 0x5: 23 (internal decoding error)." in iHD open source driver. Signed-off-by: dlin2 Signed-off-by: Jun Zhao --- libavcodec/mj

[FFmpeg-devel] [PATCH] vaapi_encode: fix slices number check.

2018-10-29 Thread Jun Zhao
fix slice number check logic. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 2fe8501..bf8f37b 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 2/7] lavc/vaapi_encode_h264: Enable macro block level bit rate control.

2018-11-02 Thread Jun Zhao
Enables macro block level bit rate control, that generally improves subjective visual quality. It may have a negative impact on performance and objective visual quality metrics. Default is off and can't compatible with Constant QP. Signed-off-by: Jun Zhao --- libavcodec/vaapi_encode_h

[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

[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 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 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 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 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 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 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 fft

[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 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 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] [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
c 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 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] [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 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/libkvaz

[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 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/libkvaz

[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 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 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: I

[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 V3 0/7] Misc change V3

2018-11-22 Thread Jun Zhao
view) 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 (7): lavfi/buffersrc: Indent the code. fftools/ffprobe: Indent the code. fftools/ffmpeg: delete the unused code. lavc/kv

[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 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 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

[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 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 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/libkvaz

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