Opened 10 months ago

Closed 5 months ago

Last modified 5 months ago

#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)

nosound.txt (69.3 KB) - added by mrkapqa 10 months ago.
vo=libmpv.txt (42.8 KB) - added by mrkapqa 10 months ago.

Download all attachments as: .zip

Change History (17)

Changed 10 months ago by mrkapqa

Attachment: nosound.txt added

Changed 10 months ago by mrkapqa

Attachment: vo=libmpv.txt added

comment:1 Changed 10 months ago by mrkapqa

Description: modified (diff)

comment:2 Changed 10 months ago by jmroot (Joshua Root)

Keywords: mpv-legacy removed
Owner: set to barracuda156
Status: newassigned

comment:3 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: (sierra, mpv-legacy) no audio during playback, [vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv insteadmpv-legacy: no audio during playback, [vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead

comment:4 Changed 10 months ago by barracuda156

See also #67166

comment:5 Changed 8 months 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.

Last edited 8 months ago by andlabs (Pietro Gagliardi) (previous) (diff)

comment:6 in reply to:  5 Changed 8 months 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=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.

Thanks, I will add it after checking locally.

comment:7 Changed 8 months ago by andlabs (Pietro Gagliardi)

Cc: andlabs added

comment:8 Changed 5 months ago by barracuda156

BTW, audio works for me, but colors are completely off. Anyway, let me see what can be done here.

Version 0, edited 5 months ago by barracuda156 (next)

comment:9 Changed 5 months 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 5 months 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 5 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 05d9040dae0a7270cb174683bfd83021470ba2c1/macports-ports (master):

mpv-legacy: fix coreaudio variant

Fixes: #69268

comment:12 in reply to:  description Changed 5 months 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 Changed 5 months 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 in reply to:  13 Changed 5 months 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 5 months 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?

Note: See TracTickets for help on using tickets.