ssr icon indicating copy to clipboard operation
ssr copied to clipboard

Can not use Intel QSV encoders to encode recorded videos

Open ysooqe opened this issue 5 years ago • 1 comments

I was trying to use a different codec than the default H.264, namely the codecs h264_qsv or hevc_qsv. Unfortunately, this does not work. The following output is given, when trying to record this way:

[PageRecord::StartPage] Started page.
[GLInjectInput::InputThread] Input thread started.
[SSRVideoStreamReader::Init] Created video stream reader.
[PageRecord::StartOutput] Starting output ...
[Muxer::Init] Using format matroska (Matroska).
[Muxer::AddStream] Using codec hevc_qsv (HEVC (Intel Quick Sync Video acceleration)).
[VideoEncoder::PrepareStream] Using pixel format nv12.
[hevc_qsv @ 0x55d778a72700] Selected ratecontrol mode is unsupported
[hevc_qsv @ 0x55d778a72700] Low power mode is unsupported
[hevc_qsv @ 0x55d778a72700] Current frame rate is unsupported
[hevc_qsv @ 0x55d778a72700] Current picture structure is unsupported
[hevc_qsv @ 0x55d778a72700] Current resolution is unsupported
[hevc_qsv @ 0x55d778a72700] Current pixel format is unsupported
[hevc_qsv @ 0x55d778a72700] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
[BaseEncoder::Init] Error: Can't open codec!
[PageRecord::StartOutput] Error: Something went wrong during initialization.

Using hardware accelerated encoding with QSV in other applications (like Handbrake) works, so I do not think its a problem of missing drivers.

Trying to research this issue, I stumbled upon the following: https://trac.ffmpeg.org/ticket/7649#comment:4

This looks like a similar issue. The recommended solution is to manually specify the QSV device, using the paramter qsv_device. Unfortunately, specifying custom ffmpeg parameters does not seem possible using SSR. What could be done to work around that or solve the issue?

I am not a developer so I hope the information I provided is sufficient to understand the issue. If more information is needed, I am happy to provide it.

ysooqe avatar Jul 10 '20 14:07 ysooqe

Same issue here. Looking to use the hevc_qsv codec with SSR v0.4.4 on Linux Mint 21.3, but I get the same "Can't open codec" error when I attempt to start a recording. Adding "-qsv_device" to the Custom options field doesn't resolve this issue either. Any assistance would be much appreciated.

reaganch avatar Feb 25 '24 22:02 reaganch