Mpv: Streaming HLS Constantly Buffering

Created on 16 Feb 2018  Â·  6Comments  Â·  Source: mpv-player/mpv

Related: #1077

mpv version and platform

macOS 10.13.2 (17C205)

mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on Wed Feb 14 13:44:09 GMT 2018
ffmpeg library versions:
   libavutil       55.78.100
   libavcodec      57.107.100
   libavformat     57.83.100
   libswscale      4.8.100
   libavfilter     6.107.100
   libswresample   2.9.100
ffmpeg version: 3.4.2

Reproduction steps

Try to stream _chilledcow_'s music:
mpv https://www.youtube.com/watch\?v\=1Cs0qyG78qY -v -v -v

Expected behavior

Play stream without stopping.

Actual behavior

Stream plays for a second or two, but it then pauses for an indefinite period.
Verbose output shows that the stream is constantly buffering (on a 200MBps u/d connection).

[osc] rendering
[statusline] (Buffering) AV: 00:00:01 / 00:00:00 A-V:  0.000 Cache:  0s+2MB

Log file

[   0.005][v][cplayer] mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.005][v][cplayer]  built on Wed Feb 14 13:44:09 GMT 2018
[   0.005][v][cplayer] ffmpeg library versions:
[   0.005][v][cplayer]    libavutil       55.78.100
[   0.005][v][cplayer]    libavcodec      57.107.100
[   0.005][v][cplayer]    libavformat     57.83.100
[   0.005][v][cplayer]    libswscale      4.8.100
[   0.005][v][cplayer]    libavfilter     6.107.100
[   0.005][v][cplayer]    libswresample   2.9.100
[   0.005][v][cplayer] ffmpeg version: 3.4.2
[   0.005][v][cplayer] 
[   0.005][v][cplayer] Configuration: waf configure --prefix=/usr/local/Cellar/mpv/0.27.2 --enable-zsh-comp --enable-libmpv-shared --enable-html-build --enable-lua --confdir=/usr/local/etc/mpv --datadir=/usr/local/Cellar/mpv/0.27.2/share/mpv --mandir=/usr/local/Cellar/mpv/0.27.2/share/man --docdir=/usr/local/Cellar/mpv/0.27.2/share/doc/mpv --zshdir=/usr/local/Cellar/mpv/0.27.2/share/zsh/site-functions --enable-javascript
[   0.005][v][cplayer] List of enabled features: 51deb apple-remote asm atomics avutil-content-light-level avutil-icc-profile avutil-imgcpy-uc avutil-spherical bsd-fstatfs build-date cocoa coreaudio cplayer cplugins cuda-hwaccel debug-build encoding fchmod gl gl-cocoa glob glob-posix gnuc iconv is_ffmpeg javascript jpeg lcms2 libass libass-osd libav libavcodec libavdevice libdl libm libmpv-shared lua macos-touchbar nanosleep optimize osx-thread-name plain-gl posix posix-or-mingw posix-spawn pthreads shm stdatomic termios videotoolbox-gl videotoolbox-hwaccel videotoolbox-hwaccel-new zlib zsh-comp
[   0.005][v][cplayer] Command line options: 'https://www.youtube.com/watch?v=1Cs0qyG78qY' '-v' '-v' '-v' '--log-file=output.txt'
[   0.005][v][cplayer] mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.005][v][cplayer]  built on Wed Feb 14 13:44:09 GMT 2018
[   0.005][v][cplayer] ffmpeg library versions:
[   0.005][v][cplayer]    libavutil       55.78.100
[   0.005][v][cplayer]    libavcodec      57.107.100
[   0.005][v][cplayer]    libavformat     57.83.100
[   0.005][v][cplayer]    libswscale      4.8.100
[   0.005][v][cplayer]    libavfilter     6.107.100
[   0.006][v][cplayer]    libswresample   2.9.100
[   0.006][v][cplayer] ffmpeg version: 3.4.2
[   0.006][v][cplayer] 
[   0.006][v][cplayer] Configuration: waf configure --prefix=/usr/local/Cellar/mpv/0.27.2 --enable-zsh-comp --enable-libmpv-shared --enable-html-build --enable-lua --confdir=/usr/local/etc/mpv --datadir=/usr/local/Cellar/mpv/0.27.2/share/mpv --mandir=/usr/local/Cellar/mpv/0.27.2/share/man --docdir=/usr/local/Cellar/mpv/0.27.2/share/doc/mpv --zshdir=/usr/local/Cellar/mpv/0.27.2/share/zsh/site-functions --enable-javascript
[   0.006][v][cplayer] List of enabled features: 51deb apple-remote asm atomics avutil-content-light-level avutil-icc-profile avutil-imgcpy-uc avutil-spherical bsd-fstatfs build-date cocoa coreaudio cplayer cplugins cuda-hwaccel debug-build encoding fchmod gl gl-cocoa glob glob-posix gnuc iconv is_ffmpeg javascript jpeg lcms2 libass libass-osd libav libavcodec libavdevice libdl libm libmpv-shared lua macos-touchbar nanosleep optimize osx-thread-name plain-gl posix posix-or-mingw posix-spawn pthreads shm stdatomic termios videotoolbox-gl videotoolbox-hwaccel videotoolbox-hwaccel-new zlib zsh-comp
[   0.006][v][global] config path: '' -> '/Users/jonnevo/.config/mpv'
[   0.006][v][global] config path: 'encoding-profiles.conf' -/-> '/Users/jonnevo/.config/mpv/encoding-profiles.conf'
[   0.006][v][global] config path: 'encoding-profiles.conf' -/-> '/Users/jonnevo/.mpv/encoding-profiles.conf'
[   0.006][v][global] config path: 'encoding-profiles.conf' -/-> '/usr/local/bin/encoding-profiles.conf'
[   0.006][v][global] config path: 'encoding-profiles.conf' -> '/usr/local/etc/mpv/encoding-profiles.conf'
[   0.006][v][cplayer] Reading config file /usr/local/etc/mpv/encoding-profiles.conf
[   0.007][v][global] config path: 'mpv.conf' -/-> '/Users/jonnevo/.config/mpv/mpv.conf'
[   0.007][v][global] config path: 'config' -/-> '/Users/jonnevo/.config/mpv/config'
[   0.007][v][global] config path: 'mpv.conf' -/-> '/Users/jonnevo/.mpv/mpv.conf'
[   0.007][v][global] config path: 'config' -/-> '/Users/jonnevo/.mpv/config'
[   0.007][v][global] config path: 'mpv.conf' -/-> '/usr/local/bin/mpv.conf'
[   0.007][v][global] config path: 'config' -/-> '/usr/local/bin/config'
[   0.007][v][global] config path: 'mpv.conf' -/-> '/usr/local/etc/mpv/mpv.conf'
[   0.007][v][global] config path: 'config' -/-> '/usr/local/etc/mpv/config'
[   0.007][v][cplayer] Setting option 'v' = '' (flags = 8)
[   0.007][v][cplayer] Setting option 'v' = '' (flags = 8)
[   0.007][v][cplayer] Setting option 'v' = '' (flags = 8)
[   0.007][v][cplayer] Setting option 'log-file' = 'output.txt' (flags = 8)
[   0.010][v][global] config path: 'input.conf' -/-> '/Users/jonnevo/.config/mpv/input.conf'
[   0.010][v][global] config path: 'input.conf' -/-> '/Users/jonnevo/.mpv/input.conf'
[   0.010][v][global] config path: 'input.conf' -/-> '/usr/local/bin/input.conf'
[   0.010][v][global] config path: 'input.conf' -/-> '/usr/local/etc/mpv/input.conf'
[   0.010][v][global] user path: 'output.txt' -> 'output.txt'
[   0.010][v][osc] Loading lua script @osc.lua...
[   0.011][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.config/mpv/scripts'
[   0.011][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.mpv/scripts'
[   0.011][v][global] config path: 'scripts' -/-> '/usr/local/bin/scripts'
[   0.011][v][global] config path: 'scripts' -/-> '/usr/local/etc/mpv/scripts'
[   0.011][v][osc] loading mp.defaults
[   0.013][v][osc] loading @osc.lua
[   0.017][v][global] config path: 'lua-settings/osc.conf' -/-> '/Users/jonnevo/.config/mpv/lua-settings/osc.conf'
[   0.017][v][global] config path: 'lua-settings/osc.conf' -/-> '/Users/jonnevo/.mpv/lua-settings/osc.conf'
[   0.017][v][global] config path: 'lua-settings/osc.conf' -/-> '/usr/local/bin/lua-settings/osc.conf'
[   0.017][v][global] config path: 'lua-settings/osc.conf' -/-> '/usr/local/etc/mpv/lua-settings/osc.conf'
[   0.017][v][osc] lua-settings/osc.conf not found. 
[   0.017][v][cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[   0.017][v][cplayer] mouse_leave script-binding osc/__keybinding2
[   0.017][v][cplayer] , force]
[   0.033][v][cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[   0.033][v][cplayer] Run command: define-section, flags=0, args=[input, mbtn_left script-binding osc/__keybinding3
[   0.033][v][cplayer] shift+mbtn_left script-binding osc/__keybinding4
[   0.033][v][cplayer] mbtn_right script-binding osc/__keybinding5
[   0.033][v][cplayer] wheel_up script-binding osc/__keybinding6
[   0.033][v][cplayer] wheel_down script-binding osc/__keybinding7
[   0.033][v][cplayer] mbtn_left_dbl ignore
[   0.033][v][cplayer] shift+mbtn_left_dbl ignore
[   0.034][v][cplayer] mbtn_right_dbl ignore
[   0.034][v][cplayer] , force]
[   0.034][v][cplayer] Run command: enable-section, flags=0, args=[input, ]
[   0.034][v][cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding8
[   0.034][v][cplayer] , default]
[   0.034][v][cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]
[   0.034][v][cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]
[   0.034][v][cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]
[   0.034][v][cplayer] Done loading @osc.lua.
[   0.034][v][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.035][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.config/mpv/scripts'
[   0.035][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.mpv/scripts'
[   0.035][v][global] config path: 'scripts' -/-> '/usr/local/bin/scripts'
[   0.035][v][global] config path: 'scripts' -/-> '/usr/local/etc/mpv/scripts'
[   0.035][v][ytdl_hook] loading mp.defaults
[   0.035][v][cplayer] Run command: disable-section, flags=0, args=[input]
[   0.035][v][global] config path: 'fonts' -/-> '/Users/jonnevo/.config/mpv/fonts'
[   0.035][v][global] config path: 'fonts' -/-> '/Users/jonnevo/.mpv/fonts'
[   0.035][v][global] config path: 'fonts' -/-> '/usr/local/bin/fonts'
[   0.035][v][global] config path: 'fonts' -/-> '/usr/local/etc/mpv/fonts'
[   0.036][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.7.5 (COMPLEX)
[   0.036][v][global] config path: 'subfont.ttf' -/-> '/Users/jonnevo/.config/mpv/subfont.ttf'
[   0.036][v][global] config path: 'subfont.ttf' -/-> '/Users/jonnevo/.mpv/subfont.ttf'
[   0.036][v][global] config path: 'subfont.ttf' -/-> '/usr/local/bin/subfont.ttf'
[   0.036][v][global] config path: 'subfont.ttf' -/-> '/usr/local/etc/mpv/subfont.ttf'
[   0.036][v][global] config path: 'fonts.conf' -/-> '/Users/jonnevo/.config/mpv/fonts.conf'
[   0.036][v][global] config path: 'fonts.conf' -/-> '/Users/jonnevo/.mpv/fonts.conf'
[   0.036][v][global] config path: 'fonts.conf' -/-> '/usr/local/bin/fonts.conf'
[   0.036][v][global] config path: 'fonts.conf' -/-> '/usr/local/etc/mpv/fonts.conf'
[   0.036][v][osd/libass] Setting up fonts...
[   0.036][v][ytdl_hook] loading @ytdl_hook.lua
[   0.037][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/Users/jonnevo/.config/mpv/lua-settings/ytdl_hook.conf'
[   0.037][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/Users/jonnevo/.mpv/lua-settings/ytdl_hook.conf'
[   0.037][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/usr/local/bin/lua-settings/ytdl_hook.conf'
[   0.037][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/usr/local/etc/mpv/lua-settings/ytdl_hook.conf'
[   0.037][v][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.037][v][cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[   0.037][v][cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]
[   0.037][v][cplayer] Done loading @ytdl_hook.lua.
[   0.038][v][osd/libass] Using font provider coretext
[   0.038][v][osd/libass] Done.
[   0.154][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.config/mpv/scripts'
[   0.154][v][global] config path: 'scripts' -/-> '/Users/jonnevo/.mpv/scripts'
[   0.154][v][global] config path: 'scripts' -/-> '/usr/local/bin/scripts'
[   0.154][v][global] config path: 'scripts' -/-> '/usr/local/etc/mpv/scripts'
[   0.154][v][global] config path: 'watch_later' -> '/Users/jonnevo/.config/mpv/watch_later'
[   0.155][i][cplayer] Playing: https://www.youtube.com/watch?v=1Cs0qyG78qY
[   0.155][v][cplayer] Running hook: ytdl_hook/on_load
[   0.155][v][global] config path: 'youtube-dl' -/-> '/Users/jonnevo/.config/mpv/youtube-dl'
[   0.155][v][global] config path: 'youtube-dl' -/-> '/Users/jonnevo/.mpv/youtube-dl'
[   0.155][v][global] config path: 'youtube-dl' -> '/usr/local/bin/youtube-dl'
[   0.155][v][ytdl_hook] found youtube-dl at: /usr/local/bin/youtube-dl 
[   4.444][v][ytdl_hook] youtube-dl succeeded! 
[   4.444][v][cplayer] Set property: file-local-options/user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)" -> 1
[   4.444][v][cplayer] Set property: stream-open-filename="https://manifest.googlevideo.com/api/manifest/hls_playlist/id/1Cs0qyG78qY.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r1---sn-aiglln6e.googlevideo.com/playlist_type/DVR/ei/frWGWsP3LsTSVJnXhrgE/gcr/gb/mm/32/mn/sn-aiglln6e/ms/lv/mv/u/pl/22/dover/10/keepalive/yes/mt/1518777567/ip/80.169.28.98/ipbits/0/expire/1518799326/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/927792711F495355F86EA88FF26F4D1EAE5FA8B0.4D50E22A98C97BFA7C6390E7B96D5C7D72381A0E/key/dg_yt0/playlist/index.m3u8" -> 1
[   4.445][v][cplayer] Set property: file-local-options/force-media-title="lofi hip hop radio - beats to relax/study to" -> 1
[   4.445][v][cplayer] Run command: hook-ack, flags=0, args=[on_load]
[   4.447][v][ffmpeg] Opening https://manifest.googlevideo.com/api/manifest/hls_playlist/id/1Cs0qyG78qY.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r1---sn-aiglln6e.googlevideo.com/playlist_type/DVR/ei/frWGWsP3LsTSVJnXhrgE/gcr/gb/mm/32/mn/sn-aiglln6e/ms/lv/mv/u/pl/22/dover/10/keepalive/yes/mt/1518777567/ip/80.169.28.98/ipbits/0/expire/1518799326/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/927792711F495355F86EA88FF26F4D1EAE5FA8B0.4D50E22A98C97BFA7C6390E7B96D5C7D72381A0E/key/dg_yt0/playlist/index.m3u8
[   4.720][v][ffmpeg] Mime-type: 'application/vnd.apple.mpegurl'
[   4.720][v][ffmpeg] Stream opened successfully.
[   4.721][v][cache] no backbuffer needed
[   4.721][v][cache] Cache size set to 2932 KiB (32 KiB backbuffer)
[   4.721][v][demux] Trying demuxers for level=normal.
[   4.725][v][lavf] Found 'hls,applehttp' at score=100 size=2048.
[   4.842][v][cache] EOF reached.
[   5.028][v][ffmpeg/demuxer] hls,applehttp: HLS request for url 'https://r1---sn-aiglln6e.googlevideo.com/videoplayback/id/1Cs0qyG78qY.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r1---sn-aiglln6e.googlevideo.com/playlist_type/DVR/ei/frWGWsP3LsTSVJnXhrgE/gcr/gb/mm/32/mn/sn-aiglln6e/ms/lv/mv/u/pl/22/keepalive/yes/mt/1518777567/ip/80.169.28.98/ipbits/0/expire/1518799326/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/927792711F495355F86EA88FF26F4D1EAE5FA8B0.4D50E22A98C97BFA7C6390E7B96D5C7D72381A0E/key/dg_yt0/playlist/index.m3u8/sq/820076/goap/clen%3D48811%3Blmt%3D1518555819911403/govp/clen%3D456793%3Blmt%3D1518555819911409/dur/2.000/file/seg.ts', offset 0, playlist 0
[   5.028][v][ffmpeg/demuxer] hls,applehttp: Opening 'https://r1---sn-aiglln6e.googlevideo.com/videoplayback/id/1Cs0qyG78qY.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r1---sn-aiglln6e.googlevideo.com/playlist_type/DVR/ei/frWGWsP3LsTSVJnXhrgE/gcr/gb/mm/32/mn/sn-aiglln6e/ms/lv/mv/u/pl/22/keepalive/yes/mt/1518777567/ip/80.169.28.98/ipbits/0/expire/1518799326/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/927792711F495355F86EA88FF26F4D1EAE5FA8B0.4D50E22A98C97BFA7C6390E7B96D5C7D72381A0E/key/dg_yt0/playlist/index.m3u8/sq/820076/goap/clen%3D48811%3Blmt%3D1518555819911403/govp/clen%3D456793%3Blmt%3D1518555819911409/dur/2.000/file/seg.ts' for reading
[   5.172][v][ffmpeg/video] h264: Reinit context to 1920x1088, pix_fmt: yuv420p
[   5.232][v][lavf] avformat_find_stream_info() finished after 0 bytes.
[   5.232][v][demux] Detected file format: hls,applehttp (libavformat)
[   5.232][v][cache] blocking for STREAM_CTRL 6
[   5.232][v][cplayer] Opening done: https://manifest.googlevideo.com/api/manifest/hls_playlist/id/1Cs0qyG78qY.0/itag/96/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D137/hls_chunk_host/r1---sn-aiglln6e.googlevideo.com/playlist_type/DVR/ei/frWGWsP3LsTSVJnXhrgE/gcr/gb/mm/32/mn/sn-aiglln6e/ms/lv/mv/u/pl/22/dover/10/keepalive/yes/mt/1518777567/ip/80.169.28.98/ipbits/0/expire/1518799326/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,mm,mn,ms,mv,pl/signature/927792711F495355F86EA88FF26F4D1EAE5FA8B0.4D50E22A98C97BFA7C6390E7B96D5C7D72381A0E/key/dg_yt0/playlist/index.m3u8
[   5.233][v][global] config path: 'sub' -/-> '/Users/jonnevo/.config/mpv/sub'
[   5.233][v][global] config path: 'sub' -/-> '/Users/jonnevo/.mpv/sub'
[   5.233][v][global] config path: 'sub' -/-> '/usr/local/bin/sub'
[   5.233][v][global] config path: 'sub' -/-> '/usr/local/etc/mpv/sub'
[   5.233][v][cplayer] Running hook: ytdl_hook/on_preloaded
[   5.233][v][cplayer] Run command: hook-ack, flags=0, args=[on_preloaded]
[   5.233][i][cplayer]  (+) Video --vid=1 (h264 1920x1080 30.000fps)
[   5.233][i][cplayer]  (+) Audio --aid=1 (aac 2ch 48000Hz)
[   5.234][v][vo/opengl] Initializing OpenGL backend 'cocoa'
[   5.235][v][vo/opengl] can't find an ambient light sensor
[   5.289][v][vo/opengl] GL_VERSION='4.1 INTEL-10.30.12'
[   5.290][v][vo/opengl] Detected desktop OpenGL 4.1.
[   5.290][v][vo/opengl] GL_VENDOR='Intel Inc.'
[   5.290][v][vo/opengl] GL_RENDERER='Intel(R) HD Graphics 530'
[   5.290][v][vo/opengl] GL_SHADING_LANGUAGE_VERSION='4.10'
[   5.302][v][vo/opengl] Loaded extension GL_APPLE_rgb_422.
[   5.304][v][vo/opengl] Testing FBO format rgba16
[   5.304][v][vo/opengl] Create FBO: 16x16 (16x16)
[   5.304][v][vo/opengl] Using FBO format rgba16.
[   5.304][v][vo/opengl] No advanced processing required. Enabling dumb mode.
[   5.304][v][vo/opengl] Reported display depth: -1
[   5.304][v][vo/opengl] Assuming 60.000877 FPS for display sync.
[   5.305][v][vd] Container reported FPS: 30.000000
[   5.305][v][vd] Codec list:
[   5.305][v][vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[   5.305][v][vd] Opening video decoder h264
[   5.305][v][vd] Using software decoding.
[   5.305][v][vd] Detected 8 logical cores.
[   5.305][v][vd] Requesting 9 threads for decoding.
[   5.306][v][vd] Selected video codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[   5.307][v][ad] Codec list:
[   5.307][v][ad]     aac - AAC (Advanced Audio Coding)
[   5.307][v][ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[   5.307][v][ad]     aac_at (aac) - aac (AudioToolbox)
[   5.307][v][ad] Opening audio decoder aac
[   5.307][v][ad] Requesting 1 threads for decoding.
[   5.307][v][ad] Selected audio codec: aac (AAC (Advanced Audio Coding))
[   5.307][v][cplayer] Starting playback...
[   5.308][v][af] Audio filter chain:
[   5.308][v][af]   [in] 48000Hz stereo 2ch floatp
[   5.308][v][af]   [out] 48000Hz stereo 2ch floatp
[   5.308][v][af]   [ao] 48000Hz stereo 2ch floatp
[   5.308][v][ao] Trying audio driver 'coreaudio'
[   5.308][v][ao/coreaudio] requested format: 48000 Hz, stereo channels, floatp
[   5.324][v][ao/coreaudio] selected audio output device: Built-in Output (48)
[   5.324][v][ao/coreaudio] input channel layout:
[   5.324][v][ao/coreaudio] layout: tag: <0>, bitmap: <0>, descriptions <2>
[   5.325][v][ao/coreaudio]  - description 0: label <4294967295, 64>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[   5.325][v][ao/coreaudio]  - description 1: label <4294967295, 64>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[   5.325][v][ao/coreaudio] mp chmap: unknown2
[   5.325][v][ao/coreaudio] input channel layout:
[   5.325][v][ao/coreaudio] layout: tag: <0>, bitmap: <0>, descriptions <2>
[   5.325][v][ao/coreaudio]  - description 0: label <1, 0>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[   5.325][v][ao/coreaudio]  - description 1: label <2, 1>,  flags: <0>, coords: <0.000000, 0.000000, 0.000000>
[   5.325][v][ao/coreaudio] mp chmap: stereo
[   5.325][v][ao/coreaudio] Channel layouts:
[   5.325][v][ao/coreaudio]  - stereo
[   5.325][v][ao/coreaudio]  - mono
[   5.325][v][ao/coreaudio] result: stereo
[   5.334][v][ao/coreaudio] Latency property cntl: 7 frames
[   5.334][v][ao/coreaudio] Latency property zisf: 512 frames
[   5.335][v][ao/coreaudio] Latency property tfas: 93 frames
[   5.335][v][ao/coreaudio] audiounit latency [us]: 354
[   5.335][v][ao/coreaudio] device latency [us]: 12749
[   5.335][v][ao/coreaudio] using soft-buffer of 9600 samples.
[   5.335][i][cplayer] AO: [coreaudio] 48000Hz stereo 2ch floatp
[   5.335][v][cplayer] AO: Description: CoreAudio AudioUnit
[   5.335][v][ffmpeg/video] h264: Reinit context to 1920x1088, pix_fmt: yuv420p
[   5.369][v][vd] Decoder format: 1920x1080 yuv420p auto/auto/auto/auto CL=mpeg2/4/h264 (auto 0.000000/0.000000/0.000000)
[   5.370][v][vf] Video filter chain:
[   5.370][v][vf]   [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[   5.370][v][vf]   [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[   5.370][i][cplayer] VO: [opengl] 1920x1080 yuv420p
[   5.370][v][cplayer] VO: Description: Extended OpenGL Renderer
[   5.529][v][vo/opengl] Resize: 3840x2160
[   5.529][v][vo/opengl] Window size: 3840x2160
[   5.529][v][vo/opengl] Video source: 1920x1080 (1:1)
[   5.529][v][vo/opengl] Video display: (0, 0) 1920x1080 -> (0, 0) 3840x2160
[   5.529][v][vo/opengl] Video scale: 2.000000/2.000000
[   5.529][v][vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[   5.529][v][vo/opengl] Video borders: l=0 t=0 r=0 b=0
[   5.529][v][vo/opengl] Testing FBO format rgba16
[   5.529][v][vo/opengl] Create FBO: 16x16 (16x16)
[   5.529][v][vo/opengl] Using FBO format rgba16.
[   5.529][v][vo/opengl] No advanced processing required. Enabling dumb mode.
[   5.529][v][vo/opengl] Texture for plane 0: 1920x1080
[   5.529][v][vo/opengl] Texture for plane 1: 960x540
[   5.529][v][vo/opengl] Texture for plane 2: 960x540
[   5.529][v][vo/opengl] Resize: 3840x2160
[   5.529][v][vo/opengl] Window size: 3840x2160
[   5.529][v][vo/opengl] Video source: 1920x1080 (1:1)
[   5.529][v][vo/opengl] Video display: (0, 0) 1920x1080 -> (0, 0) 3840x2160
[   5.530][v][vo/opengl] Video scale: 2.000000/2.000000
[   5.530][v][vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[   5.530][v][vo/opengl] Video borders: l=0 t=0 r=0 b=0
[   5.532][v][vo/opengl] new shader program:
[   5.532][v][vo/opengl] [  1] color.r = 1.000000 * vec4(texture(texture0, texcoord0)).r;
[   5.532][v][vo/opengl] [  2] color.g = 1.000000 * vec4(texture(texture1, texcoord1)).r;
[   5.532][v][vo/opengl] [  3] color.b = 1.000000 * vec4(texture(texture2, texcoord2)).r;
[   5.532][v][vo/opengl] [  4] color = color.rgbr;
[   5.532][v][vo/opengl] [  5] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;
[   5.532][v][vo/opengl] [  6] color.a = 1.0;
[   5.532][v][vo/opengl] [  7] // color mapping
[   5.538][v][vo/opengl] shader link log (status=1): WARNING: Output of vertex shader 'texcoord5' not read by fragment shader
[   5.538][v][vo/opengl] WARNING: Output of vertex shader 'texcoord3' not read by fragment shader
[   5.538][v][vo/opengl] WARNING: Output of vertex shader 'texcoord4' not read by fragment shader
[   5.538][v][vo/opengl] 
[   5.580][v][osd/libass] fontselect: (sans-serif, 400, 0) -> /System/Library/Fonts/Helvetica.ttc, -1, Helvetica
[   5.621][v][cplayer] first video frame after restart shown
[   5.621][v][cplayer] starting audio playback
[   5.622][v][cplayer] playback restart complete
[   6.099][v][cplayer] Run command: script-binding, flags=9, args=[osc/__keybinding2]
[   7.260][v][cplayer] Enter buffering.
[  14.623][v][cplayer] Run command: quit, flags=9, args=[4]
[  14.623][v][cplayer] EOF code: 6  
[  14.623][v][ad] Uninit audio decoder.
[  14.626][v][vd] Uninit video.
[  14.688][e][ffmpeg] tls: IO Error: -9806
[  14.690][w][ffmpeg/demuxer] hls,applehttp: Failed to reload playlist 0
[  14.692][v][cache] Terminating cache...
[  14.692][v][cache] Cache exiting...
[  14.693][v][cplayer] finished playback, success (reason 3)
[  14.693][i][cplayer] 
[  14.693][i][cplayer] 
[  14.693][i][cplayer] Exiting... (Quit)
[  14.693][v][osx] Exiting...
[  14.693][v][ytdl_hook] Exiting...
[  14.694][v][osc] Exiting...
[  14.701][v][vo/opengl] flushing shader cache

Most helpful comment

pip3 is python's package manager. Why would it contain mpv?
Uninstall mpv & ffmpeg in homebrew, then install:

brew install ffmpeg --HEAD
brew install mpv --HEAD

All 6 comments

mpv 0.28.x contains some caching changes that should improve the streaming experience.
Have you tried updating?

It seems the latest version on homebrew is 0.27.2, and when I install with pip3 it does not seem to allow use through a cli zsh: command not found: mpv

pip3 is python's package manager. Why would it contain mpv?
Uninstall mpv & ffmpeg in homebrew, then install:

brew install ffmpeg --HEAD
brew install mpv --HEAD

After following your instructions to update to the HEAD version of mpv the caching issue has been resolved.

This issue can now be marked as resolved.


How long does it usually take for homebrew versions to be updated?

Also, mpv does seem to exist in pip3.

$ pip3 search mpv
mpv (0.1)                    - A python interface to the mpv media player

Once installed it is not usable via terminal... ¯\_(ツ)_/¯

That on PIP is definitely something different...

Good to know. I'm kinda ignorant to pip3 and python, but thanks for your help nonetheless.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  3Comments

szg0000 picture szg0000  Â·  3Comments

Edenharder picture Edenharder  Â·  4Comments

fitipe picture fitipe  Â·  3Comments

laichiaheng picture laichiaheng  Â·  3Comments