[FFmpeg-trac] #7030(avcodec:open): qsv in ffmpeg
FFmpeg
trac at avcodec.org
Tue Sep 3 04:26:23 EEST 2019
#7030: qsv in ffmpeg
-------------------------------------+-------------------------------------
Reporter: palich2000 | Owner:
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: qsv | Blocked By:
regression |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by fulinjie):
* cc: linjie.fu@… (added)
Comment:
Double confirmed that it works on windows and this issue occurs on linux
only in ffmpeg qsv decode, and could be reproducde with any
clips(H264/H265).
And this issue could be split into two parts:
1. which part introduces this regression?
2. why it works on windows but fails on linux?
Analysis:
1.
This error may be relevant with FactoryCORE::CreateCORE and
VAAPIVideoCORE::SetHandle.
On Linux, the created CORE is used in
MFXVideoDECODE_Init/MFX_Utility::CheckVideoParam without calling
SetHandle.
However, Application shall call SetHandle on Linux, but it wasn't called
in Linux pipeline currently after FactoryCORE::CreateCORE was called.(in
MFXInit() inside ff_qsv_process_data)
2.And the reason it works for windows may be:
"On the past we intentionally didn't implement initialization of vaDisplay
inside MSDK library on Linux because on Linux there were many back-
ends(X11, Wayland, headless drm, etc) and that time we didn't want to
bring this logic inside MediaSDK."
https://github.com/Intel-Media-SDK/MediaSDK/issues/1611
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7030#comment:22>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list