Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onevpl_enctools] when add "-extbrc 1 -strict -1" on ffmpeg cmd, VBR and CBR mode output same clips #116

Closed
wenqingx opened this issue Dec 6, 2023 · 3 comments

Comments

@wenqingx
Copy link

wenqingx commented Dec 6, 2023

When setting "- extbrc 1- restrict -1", the output bitrate, md5, psnr are the same
CBR:
$ffmpeg -v verbose -hwaccel qsv -qsv_device /dev/dri/renderD128 -f rawvideo -pix_fmt yuv420p -s:v 1024x768 -r 30 -i /h1024x768.yuv -frames:v 500 -c:v hevc_qsv -b:v 600000 -maxrate 600000 -extbrc 1 -strict -1 -vsync passthrough -y output.h265
VBR:
$ffmpeg -v verbose -hwaccel qsv -qsv_device /dev/dri/renderD128 -f rawvideo -pix_fmt yuv420p -s:v 1024x768 -r 30 -i 1024x768.yuv -frames:v 500 -c:v hevc_qsv -b:v 600000 -maxrate 1200000 -extbrc 1 -strict -1 -vsync passthrough -y output.h265

Removing any one of "-extbrc 1 -strict -1 " would result in a different outcome, which is expected.
CBR:
$ffmpeg -v verbose -hwaccel qsv -qsv_device /dev/dri/renderD128 -f rawvideo -pix_fmt yuv420p -s:v 1024x768 -r 30 -i 1024x768.yuv -frames:v 500 -c:v hevc_qsv -b:v 600000 -maxrate 600000 -extbrc 1 -vsync passthrough -y output.h265
VBR:
$ffmpeg -v verbose -hwaccel qsv -qsv_device /dev/dri/renderD128 -f rawvideo -pix_fmt yuv420p -s:v 1024x768 -r 30 -i 1024x768.yuv -frames:v 500 -c:v hevc_qsv -b:v 600000 -maxrate 1200000 -extbrc 1 vsync passthrough -y output.h265

my test env:
OS:22.04
kernel:6.2.0-26-generic
platform:DG2 (A380)

media-stack:
libva:intel/libva@63d2b22
gmmlib:intel/gmmlib@5fb4180
media-driver:intel/media-driver@a9f2724
libvpl:2274efc
vpl-runtime:intel/vpl-gpu-rt@852fa9f
ffmpeg:FFmpeg/FFmpeg@3047f05

I think this should be unrelated to the format of the output , and AV1 and AVC should also have the same problem.

@wenqingx
Copy link
Author

wenqingx commented Dec 6, 2023

BTW:At present, I am not sure if this is a Regression, and I have not found a good node.

@akwrobel
Copy link
Contributor

akwrobel commented Dec 6, 2023

These tools are owned by the runtime team, @wenqingx please file this issue with them here: https://github.com/oneapi-src/oneVPL-intel-gpu/issues

@wenqingx
Copy link
Author

wenqingx commented Dec 7, 2023

These tools are owned by the runtime team, @wenqingx please file this issue with them here: https://github.com/oneapi-src/oneVPL-intel-gpu/issues

thanks, i file new one,intel/vpl-gpu-rt#311
and close this issue.

@wenqingx wenqingx closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants