mpv stuck pre playing #9

Open
opened 2026-05-21 12:16:46 +00:00 by marfrit · 0 comments
Owner

Follow the newly established bug fixing process.

If i start mpv with Big Buck Bunny, I get a window with black (don't know if it is the lead in frame or a blank canvas):

 mfritsche   ~    LIBVA_DRIVER_NAME=v4l2_request mpv --hwdec=vaapi-copy fourier-test/bbb_720p_h264.mp4
● Video --vid=1 --vlang=eng (h264 1280x720 24 fps) [default]
● Audio --aid=1 --alang=eng (aac 6ch 48000 Hz 438 kbps) [default]
v4l2-request: auto-selected codec device: /dev/video0 + /dev/media0
v4l2-request: iter38: also opened rpi-hevc-dec decoder at /dev/video19 + /dev/media1
v4l2-request: iter40: also opened rpi-hevc-dec at video_fd=23 media_fd=24 (Pi 5 HEVC stateless)
v4l2-request: phase 8.10: opened daedalus_v4l2 at video_fd=21 media_fd=22 (Pi 5 daemon-backed VP9/AV1/H264)
v4l2-request: cap_pool_init: 24 slots ready (v4l2_index=0..23, 1 plane(s) per slot)
v4l2-request: Unable to set control(s): Invalid argument (error_idx=2/2 ioctl-level)
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: Unable to dequeue buffer: Resource temporarily unavailable
[ffmpeg/video] h264: Failed to end picture decode issue: 1 (operation failed).
[ffmpeg/video] h264: hardware accelerator failed to decode picture
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000011b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
Error while decoding frame (hardware decoding)!
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
Using hardware decoding (vaapi-copy).
AO: [pipewire] 48000Hz 5.1 6ch floatp
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
VO: [gpu-next] 1280x720 nv12
[ffmpeg] AVHWFramesContext: Failed to sync surface 0x4000001: 1 (operation failed).
Could not copy back hardware decoded frame.
Error while decoding frame (hardware decoding)!
v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44
Attempting next decoding method after failure of h264-vaapi-copy.
Audio device underrun detected.
AV: 00:00:00 / 00:09:56 (0%) A-V: 0.000
Exiting... (Quit)

Follow the newly established bug fixing process. If i start mpv with Big Buck Bunny, I get a window with black (don't know if it is the lead in frame or a blank canvas):  mfritsche   ~    LIBVA_DRIVER_NAME=v4l2_request mpv --hwdec=vaapi-copy fourier-test/bbb_720p_h264.mp4 ● Video --vid=1 --vlang=eng (h264 1280x720 24 fps) [default] ● Audio --aid=1 --alang=eng (aac 6ch 48000 Hz 438 kbps) [default] v4l2-request: auto-selected codec device: /dev/video0 + /dev/media0 v4l2-request: iter38: also opened rpi-hevc-dec decoder at /dev/video19 + /dev/media1 v4l2-request: iter40: also opened rpi-hevc-dec at video_fd=23 media_fd=24 (Pi 5 HEVC stateless) v4l2-request: phase 8.10: opened daedalus_v4l2 at video_fd=21 media_fd=22 (Pi 5 daemon-backed VP9/AV1/H264) v4l2-request: cap_pool_init: 24 slots ready (v4l2_index=0..23, 1 plane(s) per slot) v4l2-request: Unable to set control(s): Invalid argument (error_idx=2/2 ioctl-level) v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: Unable to dequeue buffer: Resource temporarily unavailable [ffmpeg/video] h264: Failed to end picture decode issue: 1 (operation failed). [ffmpeg/video] h264: hardware accelerator failed to decode picture v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000011b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 Error while decoding frame (hardware decoding)! v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 Using hardware decoding (vaapi-copy). AO: [pipewire] 48000Hz 5.1 6ch floatp v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 VO: [gpu-next] 1280x720 nv12 [ffmpeg] AVHWFramesContext: Failed to sync surface 0x4000001: 1 (operation failed). Could not copy back hardware decoded frame. Error while decoding frame (hardware decoding)! v4l2-request: h264_set_controls: VAProfile=7 seq_fields=0x000080d1 pic_fields=0x0000051b num_ref_frames=4 bit_depth_luma_m8=0 bit_depth_chroma_m8=0 w_mbs_m1=79 h_mbs_m1=44 Attempting next decoding method after failure of h264-vaapi-copy. Audio device underrun detected. AV: 00:00:00 / 00:09:56 (0%) A-V: 0.000 Exiting... (Quit)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: reauktion/daedalus-v4l2#9