2020-07-26, 19:58
Excuse me for using this thread
I've been struggling for days with the new Kodi, with no success.
For this test I'm using current 5.4 kernel with bcm2711_defconfig settings, only BTRFS is compiled into the kernel
Running XBian, which is currently based on Debian Buster
I always get this error, no matter what settings I use in /boot/config.txt
Actually, I have these:
dtoverlay=vc4-kms-v3d-pi4,cma-size=402653184
dtoverlay=rpivid-v4l2
The error I get is that ffmpeg can't request memory for whatever reason
Full debug log can be found here
The current gbm branch of @popcornmix is used with builtin ffmpeg, I have no problems building with it
The same problem also occurs when I want to play a h.264 video via DRMPRIME, so I think it has nothing to do with the HEVC patch. the problem must be somewhere else.
Can somebody help me, I'm out of ideas now
I've been struggling for days with the new Kodi, with no success.
For this test I'm using current 5.4 kernel with bcm2711_defconfig settings, only BTRFS is compiled into the kernel
Running XBian, which is currently based on Debian Buster
I always get this error, no matter what settings I use in /boot/config.txt
Actually, I have these:
dtoverlay=vc4-kms-v3d-pi4,cma-size=402653184
dtoverlay=rpivid-v4l2
The error I get is that ffmpeg can't request memory for whatever reason
Code:
2020-07-26 19:21:51.957 T:3175 DEBUG <general>: CVideoPlayer::SetCaching - caching state 1
2020-07-26 19:21:51.957 T:3175 DEBUG <general>: CDVDClock::SetSpeedAdjust - adjusted:0.000000
2020-07-26 19:21:51.958 T:3285 INFO <general>: running thread: CVideoPlayerAudio::Process()
2020-07-26 19:21:51.958 T:3285 DEBUG <general>: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 1
2020-07-26 19:21:51.958 T:3285 DEBUG <general>: CDVDAudio::Pause - pausing audio stream
2020-07-26 19:21:51.963 T:24949 DEBUG <general>: EGL Debugging:
Error: EGL_BAD_SURFACE
Command: eglSwapBuffers
Type: EGL_DEBUG_MSG_ERROR_KHR
Message: dri2_swap_buffers
2020-07-26 19:21:51.964 T:24949 DEBUG <general>: CDRMAtomic::FlipPage - Execute modeset at next commit
2020-07-26 19:21:51.995 T:25061 ERROR <general>: open_restricted - failed to open /dev/input/event9 (No such device)
2020-07-26 19:21:52.037 T:24949 DEBUG <general>: CWinSystemGbmGLESContext::PresentRender - Sending display reset to all clients
2020-07-26 19:21:52.037 T:24949 INFO <general>: VideoPlayer: OnResetDisplay received
2020-07-26 19:21:52.037 T:3283 DEBUG <general>: CVideoPlayerVideo - CDVDMsg::GENERAL_PAUSE: 0
2020-07-26 19:21:52.037 T:3285 DEBUG <general>: CVideoPlayerAudio - CDVDMsg::GENERAL_PAUSE: 0
2020-07-26 19:21:52.058 T:3175 DEBUG <general>: CVideoPlayer::HandleMessages - player 2 reported state: 0
2020-07-26 19:21:52.058 T:3175 DEBUG <general>: CVideoPlayer::HandleMessages - player 1 reported state: 0
2020-07-26 19:21:52.058 T:25511 DEBUG <general>: OnAVChange: CApplication::OnAVChange
2020-07-26 19:21:52.059 T:3175 DEBUG <general>: CVideoPlayer::SetCaching - caching state 1
2020-07-26 19:21:52.059 T:3283 INFO <general>: CVideoPlayerVideo - Stillframe left, switching to normal playback
2020-07-26 19:21:52.059 T:3175 DEBUG <general>: CDVDClock::SetSpeedAdjust - adjusted:0.000000
2020-07-26 19:21:52.059 T:3175 DEBUG <general>: CVideoPlayer::SetCaching - caching state 2
2020-07-26 19:21:52.059 T:3175 DEBUG <general>: CDVDClock::SetSpeedAdjust - adjusted:0.000000
2020-07-26 19:21:52.059 T:3175 DEBUG <general>: CVideoPlayer::CheckContinuity - wrapback :2, prev:130000.000000, curr:5000.000000, diff:-125000.000000
2020-07-26 19:21:52.065 T:3279 ERROR <general>: ffmpeg[(nil)X]: [hevc] get_buffer() failed
2020-07-26 19:21:52.065 T:3279 ERROR <general>: ffmpeg[(nil)X]: [hevc] thread_get_buffer() failed
2020-07-26 19:21:52.065 T:3279 DEBUG <general>: ffmpeg[(nil)X]: [hevc] Error parsing NAL unit #0.
2020-07-26 19:21:52.067 T:3280 ERROR <general>: ffmpeg[(nil)X]: [hevc] get_buffer() failed
2020-07-26 19:21:52.067 T:3280 ERROR <general>: ffmpeg[(nil)X]: [hevc] thread_get_buffer() failed
2020-07-26 19:21:52.067 T:3280 DEBUG <general>: ffmpeg[(nil)X]: [hevc] Error parsing NAL unit #0.
2020-07-26 19:21:52.068 T:3285 DEBUG <general>: CDVDAudio::Pause - pausing audio stream
2020-07-26 19:21:52.068 T:3285 DEBUG <general>: CDVDAudio::Pause - pausing audio stream
2020-07-26 19:21:52.069 T:3285 INFO <general>: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, no pass-through)
2020-07-26 19:21:52.069 T:3285 DEBUG <general>: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-07-26 19:21:52.069 T:3281 ERROR <general>: ffmpeg[(nil)X]: [hevc] get_buffer() failed
2020-07-26 19:21:52.070 T:3281 ERROR <general>: ffmpeg[(nil)X]: [hevc] thread_get_buffer() failed
2020-07-26 19:21:52.070 T:3281 DEBUG <general>: ffmpeg[(nil)X]: [hevc] Error parsing NAL unit #0.
2020-07-26 19:21:52.071 T:3283 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Cannot allocate memory (-12)
Full debug log can be found here
The current gbm branch of @popcornmix is used with builtin ffmpeg, I have no problems building with it
The same problem also occurs when I want to play a h.264 video via DRMPRIME, so I think it has nothing to do with the HEVC patch. the problem must be somewhere else.
Can somebody help me, I'm out of ideas now