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

[Bug]: No multi reference frames(>2) supported on DG2 #329

Open
feiwan1 opened this issue May 23, 2024 · 2 comments
Open

[Bug]: No multi reference frames(>2) supported on DG2 #329

feiwan1 opened this issue May 23, 2024 · 2 comments
Assignees
Labels
AV1 AV1 Codec AVC H.264/AVC Codec Encode Video Encoding HEVC H.265/HEVC Codec

Comments

@feiwan1
Copy link

feiwan1 commented May 23, 2024

Which component impacted?

Encode

Is it regression? Good in old configuration?

None

What happened?

  1. Linux OS
  2. use gmmlib/media-driver/onevpl gitbub master commit.
  3. Run ffmpeg-qsv cmd with multi reference frames(>2)(set with option -refs 3), but the output frames in bitstream only use 2 reference frame at most.
    3.1 AVC encode:
    ffmpeg -v verbose -hwaccel qsv -hwaccel_output_format qsv -f lavfi -i testsrc=size=1280x720 -vf 'format=nv12,hwupload=extra_hw_frames=120' -c:v h264_qsv -refs 3 -rc_mode cqp -q 10 -b_strategy 0 -vframes 100 -y qsv.mp4
    3.2 HEVC encode:
    ffmpeg -v verbose -hwaccel qsv -hwaccel_output_format qsv -f lavfi -i testsrc=size=1280x720 -vf 'format=nv12,hwupload=extra_hw_frames=120' -c:v hevc_qsv -refs 3 -rc_mode cqp -q 10 -b_strategy 0 -vframes 100 -y qsv.mp4
    3.3 AV1 encode:
    ffmpeg -v verbose -hwaccel qsv -hwaccel_output_format qsv -f lavfi -i testsrc=size=1280x720 -vf 'format=nv12,hwupload=extra_hw_frames=120' -c:v av1_qsv -refs 3 -rc_mode cqp -q 10 -b_strategy 0 -vframes 100 -y qsv.mp4
  4. While vainfo -a shows that AVC/HEVC/AV1 can support more than 2 reference frames. And same cmd on TGL looks good.

What's the usage scenario when you are seeing the problem?

Transcode for media delivery

What impacted?

No response

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None

@Sherry-Lin Sherry-Lin added AVC H.264/AVC Codec HEVC H.265/HEVC Codec AV1 AV1 Codec Encode Video Encoding labels May 23, 2024
@intel-mediadev
Copy link
Contributor

Auto Created VSMGWL-73777 for further analysis.

@feiwan1
Copy link
Author

feiwan1 commented May 24, 2024

More info, the issue is exist for Low Power mode on TGL too. By adding -low_power 1 in cmdline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AV1 AV1 Codec AVC H.264/AVC Codec Encode Video Encoding HEVC H.265/HEVC Codec
Projects
None yet
Development

No branches or pull requests

6 participants