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

vpp-resize mfx_ai_superres #224

Open
hmartin417 opened this issue Nov 23, 2024 · 8 comments
Open

vpp-resize mfx_ai_superres #224

hmartin417 opened this issue Nov 23, 2024 · 8 comments

Comments

@hmartin417
Copy link

I noticed that this was added in a past release as a beta sort of option. I am unable to get this to work. I have even tried to uninstall the MSDK and installed oneVPL that supports this but still get an error trying to use this. Is this something that you can look into to, to have this option work? I'm currently on Server 2019 with 12th gen I9 and A750 GPU.

@rigaya
Copy link
Owner

rigaya commented Nov 23, 2024

mfx_ai_superres already works but it seems to have following limitations.

  • Requires Arc GPU.
  • upscaling only.
  • output height must be 1080 or below.
  • 8bit only (does not work for 10bit)

I'm not sure about OS support, at least it works on Win11 with the limitation written above.

@hmartin417
Copy link
Author

hmartin417 commented Nov 24, 2024 via email

@rigaya
Copy link
Owner

rigaya commented Nov 24, 2024

You can still encode to av1 or hevc if it is within the limitation I've written above, 8bit and output height is 1080 or below.

If the resolution or bit depth exceeds the limitation, you cannot use mfx_ai_superres due to driver (or device) limitations, so you will need to use other resize algorithm or think of other ways.

@hmartin417
Copy link
Author

hmartin417 commented Nov 24, 2024 via email

@rigaya
Copy link
Owner

rigaya commented Nov 24, 2024

Sure. Following is example of 1280x720 → 1920x1080 upscale, encoding H.264 to AV1.

x64\QSVEncC64.exe -i Y:\Encoders\sakura_op.mp4 -o F:\temp\test.mp4 -c av1 --output-res 1920x1080 --vpp-resize mfx_a
i_superres

QSVEncC (x64) 7.74 (r3509) by rigaya, Nov 22 2024 11:34:10 (VC 1942/Win)
OS             Windows 11 x64 (26100) [UTF-8]
CPU Info       12th Gen Intel Core i9-12900K [5.02GHz] (8P+8E,16C/24T) <DG2>
GPU Info       Intel Arc A380 Graphics (128EU) 300-2450MHz (32.0.101.6127)
Media SDK      QuickSyncVideo (hardware encoder) FF, 1st GPU(d), API v2.13
Async Depth    3 frames
Hyper Mode     off
Buffer Memory  d3d11, 41 work buffer
Input Info     avqsv: H.264/AVC, 1280x720, 30/1 fps
VPP            AI SuperRes, mode 1
               Resize 1280x720 -> 1920x1080
AVSync         auto
Output         AV1(yuv420) main @ Level 4
               1920x1080p 1:1 30.000fps (30/1fps)
               avwriter: av1 => mp4
Target usage   4 - balanced
Encode Mode    ICQ (Intelligent Const. Quality)
ICQ Quality    23
QP Limit       min: 1, max: 255
Ref frames     4 frames
GopRefDist     8, B-pyramid: on
Max GOP Length 300 frames

encoded 3501 frames, 61.17 fps, 3158.23 kbps, 43.94 MB
encode time 0:00:57, CPU: 2.0%, GPU: 78.3%, VD: 11.6%
frame type IDR   12
frame type I     12,  total size   0.83 MB
frame type P   3489,  total size  43.11 MB

@hmartin417
Copy link
Author

hmartin417 commented Nov 24, 2024

Thanks! I'm guessing that i cant copy audio tracks at the same time?

@rigaya
Copy link
Owner

rigaya commented Nov 24, 2024

You shall be able to copy all audio tracks by --audio-copy.

@hmartin417
Copy link
Author

hmartin417 commented Nov 28, 2024 via email

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