Open archagy opened 7 years ago
Does mpv work properly with the live video if you pass the normal YouTube URL (not the long streaming URL mpsyt uses) to it directly?
If so, it should be possible to fix this, though I'm not sure the right way. Perhaps some argument to mpv, based on how its own use of youtube-dl works.
If not, report it to mpv.
If I use directly with mpv i got the follow error and i cant even listen something.
[cplayer] Command line options: '-v' 'https://www.youtube.com/watch?v=vy9wraVhGG8'
[cplayer] mpv v0.24.0+177-git-1d2910af9 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[cplayer] built on Sat Apr 1 10:17:08 UTC 2017
[cplayer] ffmpeg library versions:
[cplayer] libavutil 55.57.100
[cplayer] libavcodec 57.88.100
[cplayer] libavformat 57.70.100
[cplayer] libswscale 4.5.100
[cplayer] libavfilter 6.81.100
[cplayer] libswresample 2.6.100
[cplayer] ffmpeg version: N-45068-gc9cd0a7009
[cplayer]
[cplayer] Configuration: /home/shinchiro/mpv/build/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --enable-encoding --disable-manpage-build --disabl
e-debug-build --enable-libmpv-shared --enable-lua --enable-libarchive --enable-libass --enable-libbluray --enable-dvdread --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 -
-enable-openal --enable-egl-angle-lib --prefix=/home/shinchiro/mpv/build/build64/install/mingw
[cplayer] List of enabled features: asm atomics avutil-imgcpy-uc build-date c11-tls cplayer cuda-hwaccel d3d-hwaccel direct3d dlopen dos-paths dvdnav dvdread dvdread-common egl-angle egl-angle
-lib egl-helpers encoding gcc-tls gl gl-dxinterop gl-win32 glob-win32-replacement gnuc iconv is_ffmpeg jpeg lcms2 libarchive libass libass-osd libav libavcodec libavdevice libbluray libm libmp
v-shared lua luajit mingw noexecstack openal optimize posix-or-mingw rubberband sse4-intrinsics static-build stdatomic subprocess tv uchardet wasapi win32 win32-internal-pthreads zlib
[global] config path: '' -> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv'
[global] config path: 'mpv.conf' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/mpv.conf'
[global] config path: 'config' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/config'
[global] config path: 'mpv.conf' -/-> 'C:/cygwin64/bin/mpv.conf'
[global] config path: 'config' -/-> 'C:/cygwin64/bin/config'
[global] config path: 'mpv.conf' -/-> 'C:/cygwin64/bin/mpv/mpv.conf'
[global] config path: 'config' -/-> 'C:/cygwin64/bin/mpv/config'
[cplayer] Setting option 'v' = '' (flags = 8)
[global] config path: 'input.conf' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/input.conf'
[global] config path: 'input.conf' -/-> 'C:/cygwin64/bin/input.conf'
[global] config path: 'input.conf' -/-> 'C:/cygwin64/bin/mpv/input.conf'
[osc] Loading lua script @osc.lua...
[global] config path: 'scripts' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/scripts'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/scripts'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/mpv/scripts'
[osc] loading mp.defaults
[osc] loading @osc.lua
[global] config path: 'lua-settings/osc.conf' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> 'C:/cygwin64/bin/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> 'C:/cygwin64/bin/mpv/lua-settings/osc.conf'
[osc] lua-settings/osc.conf not found.
[cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[cplayer] mouse_leave script-binding osc/__keybinding2
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input, mouse_btn0 script-binding osc/__keybinding3
[cplayer] shift+mouse_btn0 script-binding osc/__keybinding4
[cplayer] mouse_btn2 script-binding osc/__keybinding5
[cplayer] mouse_btn0_dbl ignore
[cplayer] shift+mouse_btn0_dbl ignore
[cplayer] mouse_btn2_dbl ignore
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[input, ]
[cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding6
[cplayer] , default]
[cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]
[cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]
[cplayer] Done loading @osc.lua.
[ytdl_hook] Loading lua script @ytdl_hook.lua...
[cplayer] Run command: disable-section, flags=0, args=[input]
[global] config path: 'fonts' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/fonts'
[global] config path: 'fonts' -/-> 'C:/cygwin64/bin/fonts'
[global] config path: 'fonts' -/-> 'C:/cygwin64/bin/mpv/fonts'
[global] config path: 'scripts' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/scripts'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/scripts'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/mpv/scripts'
[ytdl_hook] loading mp.defaults
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.4.5 (COMPLEX)
[ytdl_hook] loading @ytdl_hook.lua
[global] config path: 'subfont.ttf' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/subfont.ttf'
[cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]
[cplayer] Done loading @ytdl_hook.lua.
[global] config path: 'subfont.ttf' -/-> 'C:/cygwin64/bin/subfont.ttf'
[global] config path: 'scripts' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/scripts'
[global] config path: 'subfont.ttf' -/-> 'C:/cygwin64/bin/mpv/subfont.ttf'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/scripts'
[global] config path: 'scripts' -/-> 'C:/cygwin64/bin/mpv/scripts'
[global] config path: 'watch_later' -> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/watch_later'
[cplayer] Playing: https://www.youtube.com/watch?v=vy9wraVhGG8
[cplayer] Running hook: ytdl_hook/on_load
[global] config path: 'fonts.conf' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> 'C:/cygwin64/bin/fonts.conf'
[global] config path: 'fonts.conf' -/-> 'C:/cygwin64/bin/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Using font provider directwrite
[osd/libass] Done.
[global] config path: 'youtube-dl' -/-> 'C:\Users\a.villegas.rodriguez\AppData\Roaming/mpv/youtube-dl'
[global] config path: 'youtube-dl' -> 'C:/cygwin64/bin/youtube-dl'
[ytdl_hook] found youtube-dl at: C:/cygwin64/bin/youtube-dl
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
[cplayer] Run command: hook-ack, flags=0, args=[on_load]
[ffmpeg] Opening https://www.youtube.com/watch?v=vy9wraVhGG8
[ffmpeg] Mime-type: 'text/html; charset=utf-8'
[ffmpeg] Stream opened successfully.
[cache] Cache size set to 150000 KiB (75000 KiB backbuffer)
[demux] Trying demuxers for level=normal.
[cache] Cache is not responding - slow/stuck network connection?
[cache] EOF reached.
[lavf] No format found, try lowering probescore or forcing the format.
[demux] Trying demuxers for level=unsafe.
[lavf] No format found, try lowering probescore or forcing the format.
[cache] Terminating cache...
[cache] Cache exiting...
[cplayer] Opening failed or was aborted: https://www.youtube.com/watch?v=vy9wraVhGG8
[cplayer] finished playback, unrecognized file format (reason 4)
[cplayer] Failed to recognize file format.
[cplayer]
[cplayer]
[cplayer] Exiting... (Errors when loading file)
[ytdl_hook] Exiting...
[osc] Exiting...
Using mpsyt to listen a live stream youtube video but after some seconds enter in buffering mode and unable to fetch the streaming.
Log
Thanks for the help.