#69268 closed defect (fixed)
mpv-legacy: no audio during playback, [vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead
| Reported by: | mrkapqa | Owned by: | barracuda156 |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.9.1 |
| Keywords: | sierra | Cc: | andlabs (Pietro Gagliardi) |
| Port: | mpv-legacy |
Description (last modified by mrkapqa)
Hello,
installed mpv-legacy on Mac OS X Sierra 10.12.6 and issue is
with playback since there is no audio coming out.
like
mpv https://www.youtube.com/watch?v=OYxQ4Lvqn14
(+) Video --vid=1 (*) (vp9 3840x2160 59.940fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
Subs --sid=1 --slang=live_chat 'json' (null) (external)
File tags:
Uploader: Dave's Garage
Channel_URL: https://www.youtube.com/channel/UCNzszbnvQeFzObW0ghk0Ckw
''[vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead''
Could not open/initialize audio device -> no sound.
Audio: no audio
VO: [gpu] 3840x2160 yuv420p
V: 00:00:02 / 00:14:14 (0%) Dropped: 45 Cache: 2.8s/4MB
Exiting... (Quit)
when i insert "vo=libmpv" into mpv.conf, there comes another error,
mpv https://www.youtube.com/watch?v=OYxQ4Lvqn14
(+) Video --vid=1 (*) (vp9 3840x2160 59.940fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
Subs --sid=1 --slang=live_chat 'json' (null) (external)
File tags:
Uploader: Dave's Garage
Channel_URL: https://www.youtube.com/channel/UCNzszbnvQeFzObW0ghk0Ckw
[vo/libmpv] No render context set.
Error opening/initializing the selected video_out (--vo) device.
Video: no video
Exiting... (Errors when loading file)
thank you very much
Attachments (2)
Change History (17)
Changed 3 years ago by mrkapqa
| Attachment: | nosound.txt added |
|---|
Changed 3 years ago by mrkapqa
| Attachment: | vo=libmpv.txt added |
|---|
comment:1 Changed 3 years ago by mrkapqa
| Description: | modified (diff) |
|---|
comment:2 Changed 3 years ago by jmroot (Joshua Root)
| Keywords: | mpv-legacy removed |
|---|---|
| Owner: | set to barracuda156 |
| Status: | new → assigned |
comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
| Summary: | (sierra, mpv-legacy) no audio during playback, [vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead → mpv-legacy: no audio during playback, [vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead |
|---|
comment:4 Changed 3 years ago by barracuda156
comment:5 follow-up: 6 Changed 3 years ago by andlabs (Pietro Gagliardi)
It appears that mpv-legacy builds without any audio devices by default (even with all the variants I set); mpv --audio-device=help only shows "auto". Adding the +coreaudio variant fixed it for me. The cocoa deprecation warning is unrelated and is a holdover from prior versions of mpv. I am also on 10.12.
comment:6 Changed 3 years ago by barracuda156
Replying to andlabs:
It appears that mpv-legacy builds without any audio devices by default (even with all the variants I set);
mpv --audio-device=helponly shows "auto". Adding the+coreaudiovariant fixed it for me. The cocoa deprecation warning is unrelated and is a holdover from prior versions of mpv.
Thanks, I will add it after checking locally.
comment:7 Changed 3 years ago by andlabs (Pietro Gagliardi)
| Cc: | andlabs added |
|---|
comment:8 Changed 2 years ago by barracuda156
BTW, audio works for me, but colors are completely off. Anyway, let me see what can be done here.
UPD. I guess, coreaudio was not used due to a trivial typo: default_variants-append coreaudio should be default_variants-append +coreaudio.
comment:9 Changed 2 years ago by barracuda156
Does anyone know a specific version of mpv which worked correctly on any powerpc system? I could only get correct colors with SDL2 output, but that brings another complication. However SDL2 was broken on ppc until I have fixed it, and it was never used in mpv port anyway, even on x86.
So I wonder how that worked and whether the issue is local to me.
comment:10 Changed 2 years ago by mrkapqa
if remember correctly, every mpv version tried on powerpc had issue, sometimes garbled, sometime rasterized images, more so with nvidia than ati cards< maybe there could have passed other option to correct this behaviouur.
comment:11 Changed 2 years ago by barracuda156
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:12 Changed 2 years ago by barracuda156
Replying to mrkapqa:
Hello,
installed mpv-legacy on Mac OS X Sierra 10.12.6 and issue is
with playback since there is no audio coming out.
Sorry for a delay with this.
Is the issue resolved now?
comment:13 follow-up: 14 Changed 2 years ago by mrkapqa
on computer it function now with suggested "sudo port install mpv-legacy +coreaudio" maybe can function also without additional suffix already again could be resolved.
comment:14 Changed 2 years ago by barracuda156
Replying to mrkapqa:
on computer it function now with suggested "sudo port install mpv-legacy +coreaudio" maybe can function also without additional suffix already again could be resolved.
Since it is a variant, it is correct to have +coreaudio on supported systems.
comment:15 Changed 2 years ago by mrkapqa
thank you very much! regarding port health:
this is unrelated, however on BigSur both Mpv and Mpv-legacy are reported as broken:
which is the proper one to install and should get fixed?

See also #67166