Hello, I installed mpv bundle but have following errors when playing video:
[sub] Could not find subtitle decoder for format ‘subrip’.
[ao/oss] Can’t open audio device /dev/dsp: No such file or directory
[ao] Failed to initialize audio driver ‘oss’
Could not open/initialize audio device -> no sound.
Running mpv -ao=help returns:
Available audio outputs:
oss OSS/ioctl audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
Subtitle support in mpv was just added 3 days ago but I’m not sure it covers all the formats. No idea but we can look into this.
Audio could be several problems: Volume is 0%. Audio is routed to a non-plugged in output (common with analog out and HDMI/DP monitors plugged in without speakers!) or there is an unsupported audio codec in the media (AAC).
libass was added a few days back, that should be available now.
The audio problem as reported seems to be related to not having oss installed. Although this could be a side effect of not supporting AAC in a verbose log.
Thank you for your response. I just updated to version 29780 before seeing your answer.
About audio. “Volume is 0%” that could be the reason but now I can’t check because I updated to newer version of mpv which came with the last update. Although I also have Gnome Mpv (flatpak) installed and there was no such error even at 0% volume.
I’m using CL on laptop (MacBook) and there is no other monitor plugged in. I had sound in other apps except in mpv.
Now with the new version things are different Now I receive following error:
[lavf] Using subtitle charset: UTF-8-BROKEN
(+) Video --vid=1 () (h264 720x480 23.976fps)
(+) Audio --aid=1 --alang=eng () (eac3 2ch 48000Hz)
Subs --sid=1 --slang=eng (subrip)
(+) Subs --sid=2 ‘billions.s04e11.web.h264-memento.srt’ (subrip) (external)
Error opening/initializing the selected video_out (–vo) device.
Video: no video
Exiting… (Errors when loading file)
mpv -vo=help returns:
Available video outputs:
libmpv render API for libmpv
gpu Shader-based GPU Renderer
null Null video output
image Write video frames to image files
tct true-color terminals
drm Direct Rendering Manager
Before I had x11 as vo and now its missing!! I think its default vo.
When I force gpu as vo got following error:
[lavf] Using subtitle charset: UTF-8-BROKEN
(+) Video --vid=1 () (h264 720x480 23.976fps)
(+) Audio --aid=1 --alang=eng () (eac3 2ch 48000Hz)
Subs --sid=1 --slang=eng (subrip)
(+) Subs --sid=2 ‘billions.s04e11.web.h264-memento.srt’ (subrip) (external)
[vo/gpu] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (–vo) device.
Video: no video
Exiting… (Errors when loading file)
So now with the new version there is no video. I guess the subs are ok because now there is no error for them.
Verbose output (mpv -v …) returns this:
…
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context ‘wayland’
[vo/gpu/opengl] Initializing GPU context ‘drm’
[vo/gpu/opengl] DRM EGL backend can be activated only manually.
[vo/gpu] Failed initializing any suitable GPU context!
[cplayer] Error opening/initializing the selected video_out (–vo) device.
[mkv] deselect track 0
[cplayer] Video: no video
Video output is working after switching to wayland instead of xorg in Gnome. Also subs are working now with this version. But again there is no audio. mpv -ao=help returns:
Available audio outputs:
null Null audio output
pcm RAW PCM/WAVE file writer audio output
According to mpv specification -ao=help lists “…compiled-in audio output drivers”. Can you please compile alsa and pulse in mpv bundle. Thanks.