mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.17k stars 2.89k forks source link

macOS window is not responsive and has wrong UI #7481

Closed eirnym closed 4 years ago

eirnym commented 4 years ago

Important Information

Provide following Information:

Zrzut ekranu 2020-02-23 o 11 26 44

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

The vo=gpu makes mpv window not responsive to the actions.

Expected behavior

You have no ugly titlebar on the top, fullscreen and window related menu items from macOS menu are usable, a user is able to quit with Cmd-Q.

Actual behavior

I have strange titlebar (for macOS at least), window-related functions and keybindings are not working and producing warning sounds, even Cmd-Q is not working.

Log file

no vo=gpu: mpv.log with vo=gpu: mpv.log

Sample files

it's repeatable with just any video file. Go grab a video from YouTube or another service if you have no

Akemi commented 4 years ago

those two logs are useless. please provide the logs the issue template was asking for.

eirnym commented 4 years ago

These are logs created by mpv in first seconds. Issue is not about playing, but about window decoration and that it does nothing but beeping at me.

eirnym commented 4 years ago

I tried a few more times, but no other messages appear

eirnym commented 4 years ago
$ pwd
/Users/eirnym/Downloads/mpv-0.32.0/mpv.app/Contents/MacOS
$ ./mpv -v '/Users/eirnym/Downloads/trr/file/file - 01.mkv'
[cplayer] Command line options: '-v' '/Users/eirnym/Downloads/trr/file/file - 01.mkv'
[cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Fri Jan 31 11:28:05 CET 2020
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.31.100
[cplayer]    libavcodec      58.54.100
[cplayer]    libavformat     58.29.100
[cplayer]    libswscale      5.5.100
[cplayer]    libavfilter     7.57.100
[cplayer]    libswresample   3.5.100
[cplayer] ffmpeg version: 4.2.2
[cplayer] 
[cplayer] Configuration: waf configure --prefix=/Users/djinn/bajzkorw/build-0.32.0 --enable-manpage-build --disable-android --disable-tvos --disable-egl-android --disable-macos-media-player --disable-macos-10-12-2-features
[cplayer] List of enabled features: 51deb asm atomics bsd-fstatfs build-date cocoa coreaudio cplayer cplugins debug-build drmprime fchmod ffmpeg gl gl-cocoa glob glob-posix gnuc gpl iconv javascript lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libdl libm lua macos-10-11-features macos-cocoa-cb macos-touchbar optimize osx-thread-name posix posix-or-mingw posix-spawn posix-spawn-native pthreads rubberband stdatomic uchardet videotoolbox-gl videotoolbox-hwaccel zlib
[cplayer] Reading config file /Users/eirnym/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'ao' = 'coreaudio' (flags = 4)
[cplayer] Setting option 'autofit-larger' = '90%' (flags = 4)
[cplayer] Setting option 'autofit-smaller' = '50%' (flags = 4)
[cplayer] Setting option 'native-fs' = '' (flags = 4)
[cplayer] Setting option 'keep-open' = 'yes' (flags = 4)
[cplayer] Setting option 'border' = 'no' (flags = 4)
[cplayer] Setting option 'cursor-autohide' = '500' (flags = 4)
[cplayer] Setting option 'screenshot-format' = 'png' (flags = 4)
[cplayer] Setting option 'alang' = 'jpn,pl,eng,rus' (flags = 4)
[cplayer] Setting option 'slang' = 'pl,eng,rus' (flags = 4)
[cplayer] Setting option 'vlang' = 'pl,eng,rus' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[file] Opening /Users/eirnym/.config/mpv/input.conf
[input] Parsing input config file /Users/eirnym/.config/mpv/input.conf
[input] Input config file /Users/eirnym/.config/mpv/input.conf parsed: 55 binds
2020-02-23 13:46:06.337 mpv[9842:387195] This NSLayoutConstraint is being configured with a constant that exceeds internal limits.  A smaller value will be substituted, but this problem should be fixed. Break on BOOL _NSLayoutConstraintNumberExceedsLimit(void) to debug.  This will be logged only once.  This may break in the future.
[osx/cocoacb] Created CGL pixel format with attributes: kCGLPFAOpenGLProfile, kCGLOGLPVersion_3_2_Core, kCGLPFAAccelerated, kCGLPFADoubleBuffer, kCGLPFAColorSize, 64, kCGLPFAColorFloat, kCGLPFABackingStore, kCGLPFAAllowOfflineRenderers, kCGLPFASupportsAutomaticGraphicsSwitching, 0
[libmpv_render] GL_VERSION='4.1 ATI-3.8.16'
[libmpv_render] Detected desktop OpenGL 4.1.
[libmpv_render] GL_VENDOR='ATI Technologies Inc.'
[libmpv_render] GL_RENDERER='AMD Radeon Pro 555X OpenGL Engine'
[libmpv_render] GL_SHADING_LANGUAGE_VERSION='4.10'
[libmpv_render] Loaded extension GL_APPLE_rgb_422.
[libmpv_render] GL_*_swap_control extension missing.
[libmpv_render] Testing FBO format rgba16f
[libmpv_render] Using FBO format rgba16f.
[libmpv_render] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=0).
[libmpv_render] No advanced processing required. Enabling dumb mode.
[libmpv_render] Loading hwdec driver 'videotoolbox'
[cplayer] Waiting for scripts...
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.6.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider coretext
[osd/libass] Done.
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[file] Opening /Users/eirnym/Downloads/trr/file/file - 01.mkv
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: /Users/eirnym/Downloads/trr/file/file - 01.mkv
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.6.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider coretext
[osd/libass] Done.
[find_files] Loading external files in /Users/eirnym/Downloads/trr/file/
[file] Opening /Users/eirnym/Downloads/trr/file/file - 01.srt
[demux] Trying demuxers for level=normal.
[lavf] Found 'srt' at score=100 size=2048.
[lavf] Data has a BOM, assuming utf-8 as charset.
[lavf] avformat_find_stream_info() finished after 35113 bytes.
[lavf] demuxer read all data; closing stream
[demux] Detected file format: srt (libavformat)
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[lavf] select track 0
[cplayer]  (+) Video --vid=1 (*) (h264 1280x720 29.970fps)
[cplayer]  (+) Audio --aid=1 --alang=jpn (*) (flac 2ch 48000Hz)
[cplayer]  (+) Subs  --sid=1 'file - 01.srt' (subrip) (external)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'cocoa'
[vo/gpu] can't find an ambient light sensor
[vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead
[vo/gpu] GL_VERSION='4.1 ATI-3.8.16'
[vo/gpu] Detected desktop OpenGL 4.1.
[vo/gpu] GL_VENDOR='ATI Technologies Inc.'
[vo/gpu] GL_RENDERER='AMD Radeon Pro 555X OpenGL Engine'
[vo/gpu] GL_SHADING_LANGUAGE_VERSION='4.10'
[vo/gpu] Loaded extension GL_APPLE_rgb_422.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Disabling HDR peak computation (one or more of the following is not supported: compute shaders=0, SSBO=0).
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 60.000877 FPS for display sync.
[vd] Container reported FPS: 29.970030
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 12 logical cores.
[vd] Requesting 13 threads for decoding.
[vd] DR failed - disabling.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     flac - FLAC (Free Lossless Audio Codec)
[ad] Opening decoder flac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: flac (FLAC (Free Lossless Audio Codec))
[af] User filter list:
[af]   (empty)
[sub/ass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.6.4 (COMPLEX)
[sub/ass] Setting up fonts...
[sub/ass] Using font provider coretext
[sub/ass] Done.
[cplayer] Starting playback...
[af] [in] 48000Hz stereo 2ch s16
[af] [userspeed] 48000Hz stereo 2ch s16
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch s16
[vd] Decoder format: 1280x720 yuv420p10 auto/auto/auto/auto/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[ao] Trying audio driver 'coreaudio'
[ao/coreaudio] requested format: 48000 Hz, stereo channels, s16
[ao/coreaudio] selected audio output device:  (75)
[ao/coreaudio] input channel layout:
[ao/coreaudio] layout: tag: <0>, bitmap: <0>, descriptions <2>
[ao/coreaudio]  - description 0: label <4294967295, 64>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[ao/coreaudio]  - description 1: label <4294967295, 64>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[ao/coreaudio] mp chmap: unknown2
[ao/coreaudio] input channel layout:
[ao/coreaudio] layout: tag: <0>, bitmap: <0>, descriptions <2>
[ao/coreaudio]  - description 0: label <1, 0>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[ao/coreaudio]  - description 1: label <2, 1>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[ao/coreaudio] mp chmap: stereo
[ao/coreaudio] Channel layouts:
[ao/coreaudio]  - stereo
[ao/coreaudio]  - mono
[ao/coreaudio] result: stereo
[ao/coreaudio] Latency property cntl: 19 frames
[ao/coreaudio] Latency property zisf: 512 frames
[ao/coreaudio] Latency property tfas: 77 frames
[ao/coreaudio] audiounit latency [us]: 0
[ao/coreaudio] device latency [us]: 12666
[ao/coreaudio] using soft-buffer of 9600 samples.
[cplayer] AO: [coreaudio] 48000Hz stereo 2ch s16
[cplayer] AO: Description: CoreAudio AudioUnit
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch s16
[cplayer] VO: [gpu] 1280x720 yuv420p10
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1280x720 yuv420p10 bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu] Resize: 2560x1440
[vo/gpu] Window size: 2560x1440 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1280x720 (1:1)
[vo/gpu] Video display: (0, 0) 1280x720 -> (0, 0) 2560x1440
[vo/gpu] Video scale: 2.000000/2.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Texture for plane 0: 1280x720
[vo/gpu] Texture for plane 1: 640x360
[vo/gpu] Texture for plane 2: 640x360
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Resize: 2560x1440
[vo/gpu] Window size: 2560x1440 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1280x720 (1:1)
[vo/gpu] Video display: (0, 0) 1280x720 -> (0, 0) 2560x1440
[vo/gpu] Video scale: 2.000000/2.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[lavf] queuing seek to 0.000000
[lavf] execute seek (to 0.000000 flags 0)
[lavf] seek done
[lavf] EOF reached.
[cplayer] first video frame after restart shown
[cplayer] audio sync: sync_to_video=1, offset=0.000000
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000
[statusline] AV: 00:00:00 / 00:24:36 (0%) A-V: -0.000
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:01 / 00:24:36 (0%) A-V:  0.000
[cplayer] Set property: shared-script-properties -> 1
[osd/libass] fontselect: (sans-serif, 400, 0) -> /System/Library/Fonts/Helvetica.ttc, -1, Helvetica
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[vo/gpu] Reallocating OSD texture to 4096x512.
[statusline] AV: 00:00:01 / 00:24:36 (0%) A-V:  0.000
[cplayer] EOF code: 5  
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
Akemi commented 4 years ago

we are not supporting the old cocoa backend anymore see the message in your log.

[vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead

it's intended that you don't have the macOS window decorations if you use border=no. if you meant to use mpv without any decorations you have to deactivate the pseudo-gui decorations (new feature for no border) the OSC draws now. either --script-opts=osc-windowcontrols=no or windowcontrols=no in the osc.conf

try with --no-config and if you have problems with that post a log.

the issue template explicitly asks for logs created with --log-file=.

eirnym commented 4 years ago

the trick with --script-opts=osc-windowcontrols=no and fixed vo works fine. then I was able to load osc.conf and I thank you for the help!