new ytdl commit in mpv question
mpv version and platform
mpv 0.28.0-169-g7eb3427573
New commit: https://github.com/mpv-player/mpv/commit/7eb34275732071acf779a0f241642411f91f78b7 shows comment:
Might break with non-hls/dash, or even with dash
sample video: https://www.youtube.com/watch?v=_eO7XhDFP7c which has formats:
[info] Available formats for _eO7XhDFP7c:
format code extension resolution note
139 m4a audio only DASH audio 49k , m4a_dash container, mp4a.40.5@ 48k (22050Hz)
140 m4a audio only DASH audio 129k , m4a_dash container, mp4a.40.2@128k (44100Hz)
160 mp4 256x144 DASH video 108k , mp4_dash container, avc1.4d400b, 24fps, video only
133 mp4 426x240 DASH video 242k , mp4_dash container, avc1.4d400c, 24fps, video only
134 mp4 640x360 DASH video 640k , mp4_dash container, avc1.4d401e, 24fps, video only
135 mp4 854x480 DASH video 1155k , mp4_dash container, avc1.4d4014, 24fps, video only
136 mp4 1280x720 DASH video 2324k , mp4_dash container, avc1.4d401f, 24fps, video only
17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k
36 3gp 320x180 small , mp4v.20.3, mp4a.40.2
43 webm 640x360 medium , vp8.0, vorbis@128k
18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
my old working line was:
mpv -v --no-config --ytdl-format="(bestvideo[fps>=60][height<=1440]/bestvideo[height<=1200]/bestvideo/best)+(bestaudio[acodec=opus]/bestaudio[acodec=aac]/bestaudio)/best" https://www.youtube.com/watch?v=_eO7XhDFP7c
one would think this would select either one of these formats:
136 mp4 1280x720 DASH video 2324k , mp4_dash container, avc1.4d401f, 24fps, video only
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
however i get error and no playback
[ffmpeg] Opening https://www.youtube.com/watch?v=_eO7XhDFP7c
[ffmpeg] Mime-type: 'text/html; charset=utf-8'
[cache] Cache size set to 20000 KiB (10000 KiB backbuffer)
[demux] Trying demuxers for level=normal.
[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.
...
[cplayer] Opening failed or was aborted: https://www.youtube.com/watch?v=_eO7XhDFP7c
[cplayer] Running hook: ytdl_hook/on_load_fail
[ytdl_hook] youtube-dl succeeded!
[cplayer] Set property: stream-open-filename="https://manifest.googlevideo.com/api/manifest/dash/initcwndbps/1240000/ipbits/0/itag/0/beids/%5B9466593%5D/key/yt6/source/youtube/signature/9242EAE4C41605C91289960DAEB2E1532E0793FA.06F73D98ACB39BE618D39F185394BE3EF5D8C560/requiressl/yes/as/fmp4_audio_clear%2Cfmp4_sd_hd_clear/mm/31/mn/sn-vgqsknek/ei/cAFsWp_AB8v4DtePssAJ/ms/au/mt/1517027509/expire/1517049296/mv/m/pl/17/playback_host/r4---sn-vgqsknek.googlevideo.com/ ... -> 1
[cplayer] Set property: file-local-options/force-media-title="Attack on Titan Season 2 trailer" -> 1
[cplayer] Set property: file-local-options/hls-bitrate=2324546 -> 1
[ffmpeg] Opening https://manifest.googlevideo.com/api/manifest/dash/initcwndbps/1240000/ipbits/0/itag/0/beids/%5B9466593%5D/key/yt6/source/youtube ...
[ffmpeg] Mime-type: 'video/vnd.mpeg.dash.mpd'
[cache] no backbuffer needed
[cache] Cache size set to 64 KiB (32 KiB backbuffer)
[demux] Trying demuxers for level=normal.
[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://manifest.googlevideo.com/api/manifest/dash/initcwndbps/1240000/ ...
[cplayer] finished playback, unrecognized file format (reason 4)
[cplayer] Failed to recognize file format.
full log: https://pastebin.com/qRbd4QW4
I thus have to change the line to:
mpv -v --no-config --ytdl-format="(bestvideo[fps>=60][height<=1440]/bestvideo[height<=1200][protocol!=http_dash_segments])+(bestaudio[acodec=opus]/bestaudio[acodec=aac]/bestaudio)/best" https://www.youtube.com/watch?v=_eO7XhDFP7c
and it will play this format (as far as I can tell)
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
If i leave "/best" or "/bestvideo" (or even the "/bestvideo)/best" as shown on the original line) at the end of the video portion, it fails as above. Does that sound about right, or do I need to change something? it happens on other videos too, but not all, and I'm guessing the ones that play with original line dont have dash?
Yeah, you're probably missing the dash demuxer.
that was it, thanks for future searches, to enable dash demux in ffmpeg git you need --enable-libxml2 in ./configure