[BUG] Initializing texture for hardware decoding failed #96

Closed
opened 2025-12-23 10:32:56 +01:00 by backuprepo · 2 comments
Owner

Originally created by @defencedog on GitHub (Sep 18, 2024).

My video.mp4 is an HEVC 10bit. When I pay it via mpv --vo=gpu --hwdec=auto video.mp4 it shows a blue screen (if it is not 10bit the H265 video plays properly)

[vo/gpu] Initializing texture for hardware decoding failed.

However I experimented with ffplay -vcodec hevc_rkmpp video.mp4 it playes properly! My SBC is OPi3b v2.1 RK3566.

$ffmpeg -decoders | grep rkmpp

 V..... av1_rkmpp            Rockchip MPP (Media Process Platform) AV1 decoder (codec av1)
 V..... h263_rkmpp           Rockchip MPP (Media Process Platform) H263 decoder (codec h263)
 V..... h264_rkmpp           Rockchip MPP (Media Process Platform) H264 decoder (codec h264)
 V..... hevc_rkmpp           Rockchip MPP (Media Process Platform) HEVC decoder (codec hevc)
 V..... mpeg1_rkmpp          Rockchip MPP (Media Process Platform) MPEG1VIDEO decoder (codec mpeg1video)
 V..... mpeg2_rkmpp          Rockchip MPP (Media Process Platform) MPEG2VIDEO decoder (codec mpeg2video)
 V..... mpeg4_rkmpp          Rockchip MPP (Media Process Platform) MPEG4 decoder (codec mpeg4)
 V..... vp8_rkmpp            Rockchip MPP (Media Process Platform) VP8 decoder (codec vp8)
 V..... vp9_rkmpp            Rockchip MPP (Media Process Platform) VP9 decoder (codec vp9)

Any opinions on this?

Originally created by @defencedog on GitHub (Sep 18, 2024). My `video.mp4` is an HEVC 10bit. When I pay it via `mpv --vo=gpu --hwdec=auto video.mp4` it shows a blue screen (if it is not 10bit the H265 video plays properly) > [vo/gpu] Initializing texture for hardware decoding failed. However I experimented with `ffplay -vcodec hevc_rkmpp video.mp4` it playes properly! My SBC is OPi3b v2.1 RK3566. ``` $ffmpeg -decoders | grep rkmpp V..... av1_rkmpp Rockchip MPP (Media Process Platform) AV1 decoder (codec av1) V..... h263_rkmpp Rockchip MPP (Media Process Platform) H263 decoder (codec h263) V..... h264_rkmpp Rockchip MPP (Media Process Platform) H264 decoder (codec h264) V..... hevc_rkmpp Rockchip MPP (Media Process Platform) HEVC decoder (codec hevc) V..... mpeg1_rkmpp Rockchip MPP (Media Process Platform) MPEG1VIDEO decoder (codec mpeg1video) V..... mpeg2_rkmpp Rockchip MPP (Media Process Platform) MPEG2VIDEO decoder (codec mpeg2video) V..... mpeg4_rkmpp Rockchip MPP (Media Process Platform) MPEG4 decoder (codec mpeg4) V..... vp8_rkmpp Rockchip MPP (Media Process Platform) VP8 decoder (codec vp8) V..... vp9_rkmpp Rockchip MPP (Media Process Platform) VP9 decoder (codec vp9) ``` Any opinions on this?
backuprepo 2025-12-23 10:32:56 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Sep 18, 2024):

https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering

The Wiki already explains what's needed.

@nyanmisaka commented on GitHub (Sep 18, 2024): https://github.com/nyanmisaka/ffmpeg-rockchip/wiki/Rendering The Wiki already explains what's needed.
Author
Owner

@defencedog commented on GitHub (Sep 18, 2024):

Extremely thanks --vf=scale_rkrga=force_yuv=8bit this option removed this issue

@defencedog commented on GitHub (Sep 18, 2024): Extremely thanks `--vf=scale_rkrga=force_yuv=8bit` this option removed this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#96
No description provided.