I know when it has failed as playback takes much longer to start and it falls back to CPU playback.
Have even tried the Use Ffmpeg Original Mpegts Demuxer setting (even though the problem is not limited to mpeg TS files) and it doesn't help.
vainfo at the bash prompt always outputs what is expected and seems to match System Status - Video Decoders in the frontend.
There seems to be no pattern, sometimes it works fine then it seems to stop working every couple of hours.
Is there anything I am missing or can try to get it to make it work better with hardware accelerated playback?
The frontend logs are full of entries like the following repeated 50 times before CPU playback is used (probably why it takes longer to start the recording).
Code: Select all
mythfrontend.real: mythfrontend[2997]: I Decoder mythplayervideoui.cpp:143 (HandleDecoderCallback) PlayerVideo: Queuing callback for VAAPI context creation
mythfrontend.real: mythfrontend[2997]: I CoreContext mythplayervideoui.cpp:159 (ProcessCallbacks) PlayerVideo: Executing VAAPI context creation
mythfrontend.real: mythfrontend[2997]: I CoreContext opengl/mythvaapiinterop.cpp:140 (InitaliseDisplay) VAAPIInterop: Created VAAPI 1.14 display for GL-VAAPI-DRM (Mesa Gallium driver 22.0.1 for AMD RENOIR (LLVM 13.0.1, DRM 3.42, 5.15.0-41-generic))
mythfrontend.real: mythfrontend[2997]: E CoreContext decoders/mythvaapicontext.cpp:346 (InitialiseContext) VAAPIDec: Failed to initialise VAAPI frames context
mythfrontend.real: mythfrontend[2997]: E Decoder decoders/avformatdecoder.cpp:3474 (ProcessVideoPacket) AFD: video avcodec_send_packet error: Invalid argument (-22) gotpicture:0