Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get "Failed to recognize file format" on most Youtube-videos with mpv and youtube-dl recently #13913

Closed
Hund opened this issue Aug 14, 2017 · 3 comments
Labels

Comments

@Hund
Copy link

@Hund Hund commented Aug 14, 2017

I'm running Funtoo Linux (I have the same issue on Arch Linux as well) and recently I have been having issues with a lot of videos can't be played.

$ youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.08.13
[debug] Python version 3.4.6 - Linux-4.9.30-2+deb9u2~bpo8+1-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2.1
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}

This is the last part (with the youtube-dl part only) of the verbos output from mpv:

[ytdl_hook] Loading lua script @ytdl_hook.lua...
[global] config path: 'scripts' -> '/home/johan/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/johan/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[ytdl_hook] loading mp.defaults
[ytdl_hook] loading @ytdl_hook.lua
[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: 'scripts' -> '/home/johan/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/johan/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[stats] Loading lua script /home/johan/.config/mpv/scripts/stats.lua...
[global] config path: 'scripts' -> '/home/johan/.config/mpv/scripts'
[global] config path: 'scripts' -/-> '/home/johan/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[stats] loading mp.defaults
[global] user path: '/home/johan/.config/mpv/scripts/stats.lua' -> '/home/johan/.config/mpv/scripts/stats.lua'
[stats] loading file /home/johan/.config/mpv/scripts/stats.lua
[global] config path: 'lua-settings/stats.conf' -> '/home/johan/.config/mpv/lua-settings/stats.conf'
[cplayer] Run command: define-section, flags=0, args=[input_stats, i script-binding stats/stats
[cplayer] , default]
[cplayer] Run command: enable-section, flags=0, args=[input_stats, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input_forced_stats, , force]
[cplayer] Run command: enable-section, flags=0, args=[input_forced_stats, allow-hide-cursor+allow-vo-dragging]
[cplayer] Done loading /home/johan/.config/mpv/scripts/stats.lua.
[global] config path: 'watch_later' -> '/home/johan/.config/mpv/watch_later'
[cplayer] Playing: https://www.youtube.com/watch?v=5lsXDxza_WQ
[cplayer] Running hook: ytdl_hook/on_load
[global] config path: 'youtube-dl' -/-> '/home/johan/.config/mpv/youtube-dl'
[global] config path: 'youtube-dl' -/-> '/home/johan/.mpv/youtube-dl'
[global] config path: 'youtube-dl' -/-> '/etc/mpv/youtube-dl'
[ytdl_hook] youtube-dl succeeded! 
[ytdl_hook] 
[ytdl_hook] stack traceback:
[ytdl_hook] 	[C]: in function 'len'
[ytdl_hook] 	@ytdl_hook.lua:59: in function 'edl_escape'
[ytdl_hook] 	@ytdl_hook.lua:103: in function 'edl_track_joined'
[ytdl_hook] 	@ytdl_hook.lua:306: in function 'fn'
[ytdl_hook] 	mp.defaults:518: in function 'handler'
[ytdl_hook] 	mp.defaults:339: in function 'handler'
[ytdl_hook] 	mp.defaults:458: in function 'call_event_handlers'
[ytdl_hook] 	mp.defaults:495: in function 'dispatch_events'
[ytdl_hook] 	mp.defaults:451: in function <mp.defaults:450>
[ytdl_hook] 	[C]: ?
[ytdl_hook] 	[C]: ?
[ytdl_hook] Lua error: @ytdl_hook.lua:59: bad argument #1 to 'len' (string expected, got nil)
[ytdl_hook] Exiting...
[ffmpeg] Opening https://www.youtube.com/watch?v=5lsXDxza_WQ
[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.
[ffmpeg] tls: The TLS connection was non-properly terminated.
[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=5lsXDxza_WQ
[cplayer] finished playback, unrecognized file format (reason 4)
[cplayer] Failed to recognize file format.
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Errors when loading file)
[stats] Exiting...

I can successfully download the video with youtube-dl and then play it localy with mpv.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 14, 2017

Report mpv bugs to mpv.

@dstftw dstftw closed this Aug 14, 2017
@Hund
Copy link
Author

@Hund Hund commented Aug 14, 2017

But this is a youtube-dk bug.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 14, 2017

I can successfully download the video with youtube-dl

@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.