Skip to main content
Topic: MPV crashes with AV1 streams on Ryzen 3 3200G. (Read 769 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

MPV crashes with AV1 streams on Ryzen 3 3200G.

It fallback to low resolution when i play video,
Code: [Select]
~ 23s 
❯ mpv 'https://www.youtube.com/watch?v=3vavnFp33Tk
  '
● Video  --vid=1               (av1 480x854 29.97 fps) [default]
● Audio  --aid=1  --alang=eng  (opus 2ch 48000 Hz) [default]
File tags:
 Date: 20250821
 Uploader: 도리
 Channel_URL: https://www.youtube.com/channel/UCX5EYpJt-cJWTpU2yXbDdAA
[quality_menu] fetching available formats...
[ffmpeg/video] av1: No support for codec av1 profile 0.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
[ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
[ffmpeg/video] av1: No support for codec av1 profile 0.
[ffmpeg/video] av1: Failed setup for format vaapi: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg/video] av1: Device does not support the VK_KHR_video_decode_queue extension!
[ffmpeg/video] av1: Failed setup for format vulkan: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg/video] av1: Failed setup for format vdpau: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu-next] 480x854 yuv420p
[modernz] URL detected.
[modernz] Fetching file size...
[modernz] Download size: 15.66 MiB
AV: 00:00:32 / 00:03:01 (18%) A-V:  0.000 Cache: 23s/3MB
[osd/libass] fontselect: Using default font family: (mpv-osd-symbols, 400, 0) -> /home/ahloi/.local/share/fonts/ReadexPro-bold.ttf, 0, ReadexPro-Bold
● Video  --vid=1               (av1 1080x1920 29.97 fps) [default]
● Audio  --aid=1  --alang=eng  (opus 2ch 48000 Hz) [default]
File tags:
 Date: 20250821
 Uploader: 도리
 Channel_URL: https://www.youtube.com/channel/UCX5EYpJt-cJWTpU2yXbDdAA
[ffmpeg/video] av1: No support for codec av1 profile 0.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
[ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
[ffmpeg/video] av1: No support for codec av1 profile 0.
[ffmpeg/video] av1: Failed setup for format vaapi: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg/video] av1: Device does not support the VK_KHR_video_decode_queue extension!
[ffmpeg/video] av1: Failed setup for format vulkan: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[ffmpeg/video] av1: Failed setup for format vdpau: hwaccel initialisation returned error.
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
[ffmpeg/video] av1: Get current frame error
Error while decoding frame (hardware decoding)!
[modernz] URL detected.
[modernz] Fetching file size...
VO: [gpu-next] 1080x1920 yuv420p
[modernz] Download size: 47.88 MiB
AV: 00:00:54 / 00:03:01 (30%) A-V:  0.000 Cache: 10s/3MB
Exiting... (Quit)
fish: Job 1, 'mpv 'https://www.youtube.com/wa…
'' terminated by signal SIGSEGV (Address boundary error)

~ 1m27s

Code: [Select]
~ 
❯ pacman -Q mpv ffmpeg yt-dlp
mpv 1:0.40.0-5
ffmpeg 2:7.1.1-5
yt-dlp 2025.08.27-1

~

The video clearly have high resolution
Code: [Select]
~ 53s 
❯ yt-dlp -F 'https://www.youtube.com/watch?v=3vavnFp33Tk'
Extracting cookies from firefox
Extracted 2594 cookies from firefox
[youtube] Extracting URL: https://www.youtube.com/watch?v=3vavnFp33Tk
[youtube] 3vavnFp33Tk: Downloading webpage
[youtube] 3vavnFp33Tk: Downloading tv client config
[youtube] 3vavnFp33Tk: Downloading tv player API JSON
[youtube] 3vavnFp33Tk: Downloading web safari player API JSON
[youtube] 3vavnFp33Tk: Downloading m3u8 information
[info] Available formats for 3vavnFp33Tk:
ID  EXT   RESOLUTION FPS CH │   FILESIZE    TBR PROTO │ VCODEC           VBR ACODEC      ABR ASR MORE INFO
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 25x45        1    │                   mhtml │ images                                   storyboard
sb3 mhtml 48x27        1    │                   mhtml │ images                                   storyboard
sb1 mhtml 50x90        1    │                   mhtml │ images                                   storyboard
sb0 mhtml 101x180      1    │                   mhtml │ images                                   storyboard
249 webm  audio only      2 │  836.09KiB    38k https │ audio only           opus        38k 48k low, webm_dash
250 webm  audio only      2 │    1.02MiB    47k https │ audio only           opus        47k 48k low, webm_dash
140 m4a   audio only      2 │    2.81MiB   130k https │ audio only           mp4a.40.2  130k 44k medium, m4a_dash
251 webm  audio only      2 │    1.87MiB    87k https │ audio only           opus        87k 48k medium, webm_dash
91  mp4   144x256     30    │ ~  4.06MiB   187k m3u8  │ avc1.4D400C          mp4a.40.5
160 mp4   144x256     30    │    2.12MiB    98k https │ avc1.4d400c      98k video only          144p, mp4_dash
278 webm  144x256     30    │    2.22MiB   103k https │ vp9             103k video only          144p, webm_dash
394 mp4   144x256     30    │    1.92MiB    89k https │ av01.0.00M.08    89k video only          144p, mp4_dash
18  mp4   202x360     30  2 │    5.53MiB   255k https │ avc1.42001E          mp4a.40.2       44k 240p
92  mp4   240x426     30    │ ~  7.35MiB   339k m3u8  │ avc1.4D4015          mp4a.40.5
133 mp4   240x426     30    │    4.61MiB   213k https │ avc1.4d4015     213k video only          240p, mp4_dash
242 webm  240x426     30    │    5.01MiB   231k https │ vp9             231k video only          240p, webm_dash
395 mp4   240x426     30    │    3.70MiB   171k https │ av01.0.00M.08   171k video only          240p, mp4_dash
93  mp4   360x640     30    │ ~ 15.64MiB   721k m3u8  │ avc1.4D401E          mp4a.40.2
134 mp4   360x640     30    │    9.98MiB   461k https │ avc1.4d401e     461k video only          360p, mp4_dash
243 webm  360x640     30    │    9.02MiB   417k https │ vp9             417k video only          360p, webm_dash
396 mp4   360x640     30    │    7.86MiB   363k https │ av01.0.01M.08   363k video only          360p, mp4_dash
94  mp4   480x854     30    │ ~ 27.70MiB  1277k m3u8  │ avc1.4D401F          mp4a.40.2
135 mp4   480x854     30    │   19.56MiB   903k https │ avc1.4d401f     903k video only          480p, mp4_dash
244 webm  480x854     30    │   18.12MiB   837k https │ vp9             837k video only          480p, webm_dash
397 mp4   480x854     30    │   13.79MiB   637k https │ av01.0.04M.08   637k video only          480p, mp4_dash
95  mp4   720x1280    30    │ ~ 50.48MiB  2327k m3u8  │ avc1.64001F          mp4a.40.2
136 mp4   720x1280    30    │   38.08MiB  1758k https │ avc1.64001f    1758k video only          720p, mp4_dash
247 webm  720x1280    30    │   37.57MiB  1734k https │ vp9            1734k video only          720p, webm_dash
398 mp4   720x1280    30    │   26.58MiB  1227k https │ av01.0.05M.08  1227k video only          720p, mp4_dash
96  mp4   1080x1920   30    │ ~100.68MiB  4640k m3u8  │ avc1.640028          mp4a.40.2
137 mp4   1080x1920   30    │   78.41MiB  3620k https │ avc1.640028    3620k video only          1080p, mp4_dash
248 webm  1080x1920   30    │   60.03MiB  2772k https │ vp9            2772k video only          1080p, webm_dash
399 mp4   1080x1920   30    │   46.01MiB  2124k https │ av01.0.08M.08  2124k video only          1080p, mp4_dash
271 webm  1440x2560   30    │  159.43MiB  7361k https │ vp9            7361k video only          1440p, webm_dash
400 mp4   1440x2560   30    │  120.04MiB  5543k https │ av01.0.12M.08  5543k video only          1440p, mp4_dash
313 webm  2160x3840   30    │  323.84MiB 14952k https │ vp9           14952k video only          2160p, webm_dash
401 mp4   2160x3840   30    │  220.87MiB 10198k https │ av01.0.12M.08 10198k video only          2160p, mp4_dash
571 mp4   4320x7680   30    │  727.15MiB 33574k https │ av01.0.16M.08 33574k video only          4320p, mp4_dash

~ 12s

I use quality menu script, when i toggle it to choose the resolution, all the resolution up to 8k available.

Re: MPV crashes with AV1 streams on Ryzen 3 3200G.

Reply #1
It works here on Ryzen 5 2400GE, XLibre. "Works" meaning no crash, because it chooses the highest resolution clip and displays 1 frame every half a minute or so.

 

Re: MPV crashes with AV1 streams on Ryzen 3 3200G.

Reply #2
I often have problems with mpv handling  large videos.  It has been problematic over different distros for quite a few years.  I have just used vlc instead.  vlc sometimes has troubles with large mkv files.