1. write vps_num_hrd_parameters element
2. flush left bits
Signed-off-by: Zhong Li
---
libavcodec/hevc_ps_enc.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc_ps_enc.c b/libavcodec/hevc_ps_enc.c
index 4c71cf41ca..78a73a5c0a 100644
--- a/libavcodec
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 17 -
libavcodec/qsvenc.h | 2 ++
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index afeb0f7b10..7903235db9 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
commit).
Reproduce: ffmpeg -hwaccel qsv -v verbose -c:v h264_qsv -i
bbb_sunflower_1080p_30fps_normal.mp4 -vframes 1
-c:v hevc_qsv -bsf:v trace_headers -f null -
Signed-off-by: Zhong Li
---
libavcodec/qsvenc_hevc.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 48 +---
libavcodec/qsvenc.h | 3 +++
libavcodec/qsvenc_hevc.c | 10 +
3 files changed, 49 insertions(+), 12 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index
Signed-off-by: Zhong Li
---
libavcodec/qsv_internal.h | 8
libavfilter/qsvvpp.h | 8
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 394c558883..86a5dbad98 100644
--- a/libavcodec/qsv_internal.h
Signed-off-by: Zhong Li
---
V2: Fix the regression of qsv h264 encoding since no VPS for h264
libavcodec/qsvenc.c | 53 ++--
libavcodec/qsvenc.h | 3 +++
libavcodec/qsvenc_hevc.c | 10 +---
3 files changed, 54 insertions(+), 12 deletions
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 2f128597db..1d9893efbf 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -625,9 +625,10 @@ static int
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 5 -
libavcodec/qsvenc_h264.c | 2 +-
libavcodec/qsvenc_hevc.c | 2 +-
libavcodec/qsvenc_mpeg2.c | 2 +-
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 2e98de93f1
GPB is the default type, just contains forward references but the
slice_type is B slice.
Add this option to allow user to set regular P slice.
Fix ticket#6870
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 4
libavcodec/qsvenc_hevc.c | 2 ++
3
the option name is same as AVCodecContext.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.h | 1 -
libavcodec/qsvenc_h264.c | 6 --
2 files changed, 7 deletions(-)
diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h
index 3030e4413f..6e50baa783 100644
--- a/libavcodec/qsvenc.h
+
Currectly just standard header path can be found,
check_type/struct will fail if vaapi is installed somewhere else.
Move them followed "check_pkg_config"
Reviewed-by: Mark Thompson
Reviewed-by: Timo Rothenpieler
Signed-off-by: Zhong Li
---
configure | 16
1 file
Signed-off-by: Zhong Li
---
libavcodec/qsv_internal.h | 6 +++---
libavfilter/qsvvpp.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 394c558883..f9bfc07c36 100644
--- a/libavcodec/qsv_internal.h
+++ b
Signed-off-by: Zhong Li
Reviewed-by: Carl Eugen Hoyos
---
libavcodec/qsv_internal.h | 4 ++--
libavfilter/qsvvpp.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 394c558883..57d861d2be 100644
--- a
Signed-off-by: Zhong Li
Reviewed-by: Mark Thompson
---
libavcodec/qsvenc.c | 66 +---
libavcodec/qsvenc.h | 3 ++
libavcodec/qsvenc_hevc.c | 10 +++---
3 files changed, 58 insertions(+), 21 deletions(-)
diff --git a/libavcodec/qsvenc.c b
Signed-off-by: Zhong Li
---
libavcodec/qsvenc_jpeg.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index 1e7785a826..1619a335c7 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec/qsvenc_jpeg.c
@@ -29,7 +29,6 @@
#include "avco
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index e76c580b4a..55f1223f02 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -629,9 +629,10 @@ static int
improvment.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 9 +
libavcodec/qsvenc.h | 3 +++
libavcodec/qsvenc_hevc.c | 2 ++
3 files changed, 14 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 55f1223f02..e59fd96870 100644
--- a/libavcodec/qsvenc.c
+++ b
improvment.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 9 +
libavcodec/qsvenc.h | 3 +++
libavcodec/qsvenc_hevc.c | 2 ++
3 files changed, 14 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 55f1223f02..e59fd96870 100644
--- a/libavcodec/qsvenc.c
+++ b
Currenntly there is no any function of CO3 appled to mpeg2,
and enabling for mpeg2 it will cause regression with some old
libmfx libaries (see tiket #7839), so disable CO3 for mpeg2.
Also add runtime version check for CO3.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 13 -
1
It is helpful to know why some clips decoding failed.
Ticket#7330 is a good example, with this patch it is easily to
know bitstream codec level is out of support range.
Signed-off-by: Zhong Li
---
libavcodec/qsvdec.c | 33 +
1 file changed, 33 insertions(+)
diff
Currently profile mapping is hard-coded, and not flexible to do extactly
map (E.g: libmfx treats H264 constrained baseline to be baseline profile).
vaapi profile mapping funtion provides a better soultion than current
qsv mapping.
Signed-off-by: Zhong Li
---
libavcodec/qsv.c | 52
libmfx hevc level defination is same as h264, not level_idc of SPEC.
Signed-off-by: Zhong Li
---
libavcodec/qsv.c | 13 +
libavcodec/qsv_internal.h | 1 +
libavcodec/qsvdec.c | 2 +-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/libavcodec/qsv.c b
1. Currently output format is hard-coded as NV12, thus means
CSC is always done for not NV12 input such as P010.
Follow original input format as default output.
2. Add an option to specify output format.
Signed-off-by: Zhong Li
---
libavfilter/vf_vpp_qsv.c | 37
Signed-off-by: Zhong Li
---
libavfilter/qsvvpp.c | 1 +
libavfilter/vf_vpp_qsv.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index 5cd1d5d345..fc24426b75 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
@@ -153,6 +153,7
Signed-off-by: Zhong Li
---
libavfilter/vf_deinterlace_qsv.c | 2 +-
libavfilter/vf_overlay_qsv.c | 2 +-
libavfilter/vf_scale_qsv.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c
index
-c:v h264_qsv \
-look_ahead 1 -look_ahead_depth 100 out1.mp4
)
Signed-off-by: Zhong Li
---
libavfilter/qsvvpp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c
index 62b91d6..49cb1ed 100644
--- a/libavfilter/qsvvpp.c
+++ b/libavfilter/qsvvpp.c
null -
fps=343
RENDER usage: 0.00
Low power mode (SFC) may be disabled if not supported by
MSDK/Driver/HW, and replaced by AVS mode interanlly.
Signed-off-by: Zhong Li
---
libavfilter/vf_scale_qsv.c | 40 +++-
1 file changed, 35 insertions(+), 5 deletions
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 8dbad71..9bf8574 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -577,7 +577,7 @@ static int init_video_param
Make it easier to read.
Signed-off-by: Zhong Li
---
libavcodec/mjpegdec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 20eeb96..1030861 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -2115,7
Signed-off-by: Zhong Li
---
libavcodec/mjpegdec.c | 450 +-
1 file changed, 225 insertions(+), 225 deletions(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 1030861..a65bc8d 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec
It will be reused in the following mjpeg_parser patch
Signed-off-by: Zhong Li
---
Mark Thompson: This seems suspicious - MJPEG is generally 4:2:2 (e.g. UVC
requires it), so I would expect a 4:2:2 format to be the default here? (Or
maybe a longer list - VAAPI certainly supports 4:2:2, 4:2:0
Signed-off-by: Zhong Li
---
libavcodec/mjpeg_parser.c | 158 +-
1 file changed, 157 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mjpeg_parser.c b/libavcodec/mjpeg_parser.c
index 07a6b2b..f59aa3e 100644
--- a/libavcodec/mjpeg_parser.c
+++ b
Only baseline profile and NV12 output format supported right now.
---
Changelog | 1 +
configure | 2 ++
libavcodec/Makefile | 1 +
libavcodec/allcodecs.c| 1 +
libavcodec/qsv.c | 2 ++
libavcodec/qsvdec.c | 2 ++
libavcodec/qsvdec.h
Reported-by:Maggie Sun
Signed-off-by: Zhong Li
---
V2: bump an new micro version since it changes the API usage.
libavcodec/qsvenc.c | 2 +-
libavcodec/version.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 8dbad71
From: Daryl Seah
Signed-off-by: Daryl Seah
Signed-off-by: Jing SUN
Signed-off-by: ZhiZhen Tang
Signed-off-by: Zhong Li
---
It is part of requirement from ticket #7914.
Since SVT-AV1 library is not stable, this patch is not ready to be merged but
just call for comments of this wrapper and SVT
Signed-off-by: Zhong Li
---
https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found
by fate, so add it.
Test clip produced by:
ffmpeg -i tickets/3229/bad.avi -vframes 20 -c:v copy
/fate-suite/mjpeg/mjpeg_field_order.avi
tests/fate/video.mak| 3 +++
tests
Signed-off-by: Zhong Li
---
https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found
by fate, so add it.
Test clip produced by:
ffmpeg -i tickets/3229/bad.avi -vframes 6 -c:v copy
/fate-suite/mjpeg/mjpeg_field_order.avi
tests/fate/video.mak| 3 +++
tests
32 bytes alignment is not needed and increases the failure possibilty of
SFC (low power scaling mode)
Signed-off-by: Zhong Li
---
libavfilter/vf_scale_qsv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index
This reverts commit af3ddd581faf2c3c4748ae589947c662b1a2271e.
Revert it due to the uncorrect subject, should be: "lavf" -> "lavfi"
---
libavfilter/vf_vpp_qsv.c | 101 +--
1 file changed, 2 insertions(+), 99 deletions(-)
diff --git a/libavfilter/vf_vpp_
w_frames=64,format=qsv,vpp_qsv=transpose=cclock_hflip'
-f rawvideo -pix_fmt nv12 ./transpose.yuv
Signed-off-by: Linjie Fu
Signed-off-by: Zhong Li
---
libavfilter/vf_vpp_qsv.c | 101 ++-
1 file changed, 99 insertions(
Signed-off-by: Zhong Li
---
https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found
by fate, so add it.
Test clip produced by:
ffmpeg -i tickets/3229/bad.avi -vframes 3 -c:v copy
/fate-suite/mjpeg/mjpeg_field_order.avi
tests/fate/video.mak| 3 +++
tests/ref
Signed-off-by: Zhong Li
---
libavcodec/qsv.c | 18 ++
libavcodec/qsv_internal.h | 2 ++
2 files changed, 20 insertions(+)
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 986d4f6..437ef7c 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -245,6 +245,24
Signed-off-by: Zhong Li
---
libavcodec/qsv.c | 4 ++--
libavcodec/qsv_internal.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 437ef7c..533804a 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -207,7 +207,7 @@ int
ltion change. It can fix some regression issues such
as hevc 10bits decoding.
Signed-off-by: Zhong Li
Signed-off-by: Dmitry Rogozhkin
---
libavcodec/qsvdec.c | 184 --
libavcodec/qsvdec.h | 2 +
libavcodec/qsvdec_h2645.c | 1 +
libav
VP9 decoder is support on Intel kabyLake+ platforms with MSDK Version 1.19+
Signed-off-by: Zhong Li
---
Changelog | 1 +
configure | 1 +
libavcodec/allcodecs.c| 1 +
libavcodec/qsv.c | 5 +
libavcodec/qsvdec_other.c | 46
Signed-off-by: Zhong Li
---
Changelog | 3 +++
configure | 1 +
libavcodec/Makefile | 1 +
libavcodec/allcodecs.c| 1 +
libavcodec/qsvdec_other.c | 28 +++-
5 files changed, 33 insertions(+), 1 deletion(-)
diff --git a
Signed-off-by: Zhong Li
---
configure | 10 +-
libavcodec/qsvdec.c | 28 +---
libavcodec/qsvdec.h | 3 ---
3 files changed, 6 insertions(+), 35 deletions(-)
diff --git a/configure b/configure
index 3fb8f35..ddaaf80 100755
--- a/configure
+++ b
Fix tiket#8065
Signed-off-by: Zhong Li
---
libavfilter/vf_vpp_qsv.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c
index f18513359a..858587411d 100644
--- a/libavfilter/vf_vpp_qsv.c
+++ b/libavfilter/vf_vpp_qsv.c
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index c2c2911..611449c 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -160,8 +160,8 @@ static void dump_video_param
ssion.
Thanks for LinJie's discovery.
Signed-off-by: Zhong Li
Verified-by: Fu, Linjie
---
libavfilter/qsvvpp.c | 2 +-
libavutil/hwcontext_qsv.c | 44 ++--
2 files changed, 35 insertions(+), 11 deletions(-)
diff --git a/libavfilter/qsvvpp.c b/l
Variable 'ret' hasn't been initialized,thus introducing a random
hwupload failure regression due to qsv session uninitialized.
Signed-off-by: Zhong Li
---
libavutil/hwcontext_qsv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/hwcontext_qs
=qsv:hw -hwaccel qsv -filter_hw_device qsv -f
rawvideo -pix_fmt nv12 -s:v 1920x1080
-i 1080p_nv12.yuv -vf
'format=nv12,hwupload=extra_hw_frames=16,hwdownload,format=nv12' -an -y
out_nv12.yuv
It can fix #7418
Signed-off-by: Zhong Li
---
libavutil/hwcontext_
abviously improves qsv (m)jpeg encoding performance
due to the default async_depth is changed to 4.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc_jpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index c18fe91..01c10125 100644
--- a/libavcodec
Keep alignment with vaapi mjpeg encoder.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc_jpeg.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index 01c10125..1e7785a 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec
It is to clean up to the code and To-Do list.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 2695d4f..ad432fc 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec
This option can be used to repect original input I/IDR frame type.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 948751d..e534dcf 100644
--- a/libavcodec
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index e534dcf..2695d4f 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -444,6 +444,7 @@ static int init_video_param
This option specifies suggested macroblocks numbers in each slice.
MSDK may adjust it based on platform capability.
And slice_number will be ignored if this option set to a non-zero
value.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 1 +
libavcodec/qsvenc.h | 1 +
libavcodec
RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 5 ++---
libavcodec/qsvenc.h | 2 ++
libavcodec/qsvenc_h264.c | 2 ++
3 files changed
Zhong Li (7):
lavc/qsvenc: enable ICQ and ICQ_LA on Linux
lavc/qsvenc: add forced_idr opiton
lavc/qsvenc: remove redundant code
lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version
lavc/qsvenc: dump log for frame rate
lavc/qsvenc: add an option to set h264 pps for every
This option can be used to repect original input I/IDR frame type.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 948751d..7098ec7 100644
--- a/libavcodec
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 4
1 file changed, 4 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 3e7d623..7745086 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -263,6 +263,10 @@ static void dump_video_param(AVCodecContext
ICQ/ICQ_LA are enabled with MSDK V1.28
One example of ICQ_LA:
ffmpeg -hwaccel qsv -c:v h264_qsv -i in.mp4 -c:v h264_qsv -global_quality 25
-look_ahead 1 out.mp4
Signed-off-by: Zhong Li
---
ICQ mode will fail with some cases:
https://github.com/Intel-Media-SDK/MediaSDK/issues/863. Don't
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 11 ---
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 7098ec7..d160db3 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -444,6 +444,7 @@ static int
This option specifies suggested macroblocks numbers in each slice.
MSDK may adjust it based on platform capability.
And slice_number will be ignored if this option set to a non-zero
value.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 1 +
libavcodec/qsvenc.h | 1 +
libavcodec
It is to clean up to the code and To-Do list.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index d160db3..3e7d623 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec
RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 1 +
libavcodec/qsvenc.h | 2 ++
libavcodec/qsvenc_h264.c | 2 ++
libavcodec/version.h
This option can be used to repect original input I/IDR frame type.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 948751d..63d0939 100644
--- a/libavcodec
This option can be used to repect original input I/IDR frame type.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 948751d..3946c1d 100644
--- a/libavcodec
v4: add QVBR mode support and BRC sliding window setting
Zhong Li (9):
lavc/qsvenc: enable ICQ and ICQ_LA on Linux
lavc/qsvenc: add forced_idr option
lavc/qsvenc: remove redundant code
lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version
lavc/qsvenc: dump log for frame rate
ICQ/ICQ_LA are enabled with MSDK V1.28
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h
index 50cc426..055b4a6 100644
--- a/libavcodec/qsvenc.h
+++ b/libavcodec/qsvenc.h
@@ -53,7 +53,7
This option can be used to repect original input I/IDR frame type.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 948751d..3946c1d 100644
--- a/libavcodec
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 13 +
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 3946c1d..3b10980 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -444,6 +444,7 @@ static int
This option specifies suggested macroblocks numbers in each slice.
MSDK may adjust it based on platform capability.
And slice_number will be ignored if this option set to a non-zero
value.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 1 +
libavcodec/qsvenc.h | 1 +
libavcodec
It is to clean up to the code and To-Do list.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 17 +++--
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 3b10980..781498c 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec
RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 1 +
libavcodec/qsvenc.h | 2 ++
libavcodec/qsvenc_h264.c | 2 ++
libavcodec/version.h
QVBR mode is to use the variable bitrate control algorithm
with constant quality.
mfxExtCodingOption3 should be supported to enable QVBR mode.
Example usage: ffmpeg -hwaccel qsv -c:v h264_qsv -i input.mp4 -c:v
h264_qsv -global_quality 25 -maxrate 2M test_qvbr.mp4 -v verbose
Signed-off-by: Zhong
WinBRCMaxAvgKbps is to specify maximum average bitrate over a
sliding window with size of WinBRCSize
WinBRCMaxAvgKbps will be ignored in CBR mode and equal to TargetKbps.
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
libavcodec/qsvenc.h | 3 +++
libavcodec/qsvenc_h264
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 4
1 file changed, 4 insertions(+)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 781498c..91b8905 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -263,6 +263,10 @@ static void dump_video_param(AVCodecContext
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index aa7f347..8289a32 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1378,10 +1378,11 @@ int ff_qsv_encode
henko
Signed-off-by: Landgraph
Signed-off-by: Zhong Li
---
libavcodec/qsvdec_h2645.c | 8 +---
libavcodec/qsvenc_hevc.c | 8 +---
libavcodec/version.h | 2 +-
3 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c
index b8a
Signed-off-by: Zhong Li
---
libavcodec/qsvenc.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 931e994..96cf642 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1377,11 +1377,10 @@ int ff_qsv_encode
Linjie Fu 于2020年2月28日周五 下午11:34写道:
>
> There are frame droppings in frc while converting into a lower framerate,
> and MSDK returns ERROR_MORE_DATA which should be ignored.
Should be fixed in MSDK instead of working around in FFmpeg?
___
ffmpeg-devel ma
Linjie Fu 于2020年3月11日周三 下午6:44写道:
>
> Add qmax/qmin support for HEVC software bitrate control(SWBRC).
>
> Limitations:
> - RateControlMethod != MFX_RATECONTROL_CQP
> - with EXTBRC ON
>
> Signed-off-by: Dmitry Rogozhkin
> Signed-off-by: Linjie Fu
> ---
>
> Relative code in MSDK for the li
Linjie Fu 于2020年2月26日周三 下午4:43写道:
>
> Enables HEVC Range Extension decoding support (Linux) for 4:2:2 8/10 bit
> on ICL+ (gen11 +) platform.
>
> Signed-off-by: Linjie Fu
> ---
> [v2]: restrict to support on Linux.
>
> libavcodec/qsv.c | 16
> libavutil/hwcontext_qsv.c |
Mark Thompson 于2020年4月13日周一 下午11:34写道:
>
> All of these encoders can accept libmfx surfaces directly in a hardware
> frames context, or they can accept software frames if a suitable device
> is supplied to use.
> ---
> libavcodec/qsvenc.c | 7 +++
> libavcodec/qsvenc.h | 3 +++
>
Fu, Linjie 于2020年2月29日周六 下午5:35写道:
>
> > -Original Message-
> > From: Zhong Li
> > Sent: Saturday, February 29, 2020 13:14
> > To: FFmpeg development discussions and patches > de...@ffmpeg.org>
> > Cc: Fu, Linjie
> > Subject: Re: [FF
> > I can't see the benefit to use MSDK framerate conversion function. Is
> > it a good idea to drop it and use ffmpeg native fps filter instead?
>
> The implementation of FRC inside MSDK is quite straight-forward or simple
> currently since it just drops or repeats frames, hence I think using nati
Signed-off-by: Zhong Li
---
libavfilter/vf_cas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_cas.c b/libavfilter/vf_cas.c
index 7c32ed5f9b..b44a100421 100644
--- a/libavfilter/vf_cas.c
+++ b/libavfilter/vf_cas.c
@@ -65,7 +65,7 @@ static int cas_slice8
Fei Wang 于2021年3月31日周三 上午10:11写道:
>
> Async depth will allow qsv filter cache few frames, and avoid force
> switch and end filter task frame by frame. This change will improve
> performance for some multi-task case, for example 1:N transcode(
> decode + vpp + encode) with all QSV plugins.
>
> Perf
于2020年5月19日周二 上午3:26写道:
>
> From: Artem Galin
>
> Signed-off-by: Artem Galin
> ---
> fftools/ffmpeg_opt.c | 6 +-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
> index 60bb437ea7..83f1b53e9d 100644
> --- a/fftools/ffmpeg_opt.c
于2020年5月19日周二 上午4:31写道:
>
> From: Artem Galin
>
> Adding DX11 relevant device type checks and adjusting callbacks with
> proper MediaSDK pair type support.
>
> Extending structure for proper MediaSDK pair type support.
>
> Signed-off-by: Artem Galin
> ---
> libavcodec/qsv.c | 53 ++
于2020年5月19日周二 上午2:56写道:
>
> From: Artem Galin
>
> Example: --init_hw_device d3d11va:,vendor=0x8086
>
> qsv_device option is still works and has higher priority over vendor
> option.
Would be nice if you can document it in ffmpeg.texi.
> Signed-off-by: Artem Galin ---
> libavutil/hwcontext_d3d
Tomas Härdin 于2020年5月19日周二 下午10:25写道:
>
> fre 2020-05-15 klockan 10:14 +0800 skrev Tao Zhang:
> > Marton Balint 于2020年5月15日周五 上午2:33写道:
> > >
> > >
> > > On Thu, 14 May 2020, Tao Zhang wrote:
> > >
> > > > Hi,
> > > > FFmpeg supports multiple outputs created out of the same input in the
> > > > s
Soft Works 于2020年5月24日周日 下午8:13写道:
>
> These conditions are:
> - Dimensions are aligned to 16/32 byte (e.g. 1920x800)
> - No scaling is done
> - Color format conversion (e.g. 10bit to 8bit)
>
> Example command:
> ffmpeg -c:v hevc_qsv -hwaccel qsv -i hevc_10bit_1920_800.mkv -filter_complex
> "scal
Signed-off-by: Zhong Li
---
.mailmap | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index d1925bfab0..f14770d800 100644
--- a/.mailmap
+++ b/.mailmap
@@ -15,7 +15,8 @@
-
+
+
rcombs
--
2.17.1
Signed-off-by: Zhong Li
---
libavutil/hwcontext_qsv.c | 21 -
1 file changed, 21 deletions(-)
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 0329a81..802c842 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1145,27 +1145,6
MSDK does not create internal acceleration device on Linux,
So MFXVideoCORE_SetHandle() is necessary.
It has been added for ff_qsv_init_session_device().
But missed for ff_qsv_init_internal_session() due to commit
1f26a23 overwrited commit db89f45
Fix #7030
Signed-off-by: Zhong Li
Signed-off-by: Zhong Li
---
libavutil/hwcontext_qsv.c | 24 ++--
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 0329a81..1c0e4ff 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
Fix CID: 1452760
Signed-off-by: Zhong Li
---
libavfilter/vf_transpose_vaapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_transpose_vaapi.c b/libavfilter/vf_transpose_vaapi.c
index 69dbdd7..a4c6542 100644
--- a/libavfilter/vf_transpose_vaapi.c
+++ b
1 - 100 of 252 matches
Mail list logo