yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
81.82k stars 6.38k forks source link

yt-dlp + mpv Media Player don't work fine now with Youtube URL's #6496

Closed debianite-user closed 1 year ago

debianite-user commented 1 year ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

Spain

Provide a description that is worded well enough to be understood

I always change "yt-dlp" binary name to "youtube-dl" and then be able to use it with mpv. Next I install the binary in /usr/local/bin/.

Before it works fine with Youtube URL's:

$ mpv --ytdl-format=bestvideo+bestaudio [Youtube_URL] $ yt-dlp -f bestvideo+bestaudio [Youtube_URL] -g | xargs mpv

But since 2023.03.04 version doesn't work fine (only plays bestvideo, no audio). Now only plays video+audio with --ytdl-format=best:

$ mpv --ytdl-format=best [Youtube_URL] $ yt-dlp -f best [Youtube_URL] -g | xargs mpv

But --ytdl-format=best is worst than --ytdl-format=bestvideo+bestaudio

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

$ mpv --v --ytdl-format=bestvideo+bestaudio https://www.youtube.com/watch?v=0vWRXYTbrP8
[cplayer] Command line options: '--v' '--ytdl-format=bestvideo+bestaudio' 'https://www.youtube.com/watch?v=0vWRXYTbrP8'
[cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.51.100 (runtime 56.70.100)
[cplayer]    libavcodec      58.91.100 (runtime 58.134.100)
[cplayer]    libavformat     58.45.100 (runtime 58.76.100)
[cplayer]    libswscale      5.7.100 (runtime 5.9.100)
[cplayer]    libavfilter     7.85.100 (runtime 7.110.100)
[cplayer]    libswresample   3.7.100 (runtime 3.9.100)
[cplayer] ffmpeg version: 4.4
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --disable-build-date --enable-dvbin
[cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua memfd_create optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland wayland-protocols x11 xv zlib
[cplayer] Setting option 'config' = 'no' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'ytdl-format' = 'bestvideo+bestaudio' (flags = 8)
[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] libass API version: 0x1501000
[osd/libass] libass source: tarball: 0.15.1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: tarball: 0.15.1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[ffmpeg] Opening https://www.youtube.com/watch?v=0vWRXYTbrP8
[cplayer] Set property: shared-script-properties -> 1
[ffmpeg] Mime-type: 'text/html; charset=utf-8'
[demux] Trying demuxers for level=normal.
[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=0vWRXYTbrP8
[cplayer] Running hook: ytdl_hook/on_load_fail
[ytdl_hook] full hook 
[ytdl_hook] youtube-dl succeeded! 
[ytdl_hook] EDL doesn't support fragmentswithout duration with MP4 DASH 
[cplayer] Set property: stream-open-filename="edl://!no_clip;!no_chapters;%918%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAN4dMufSxHtRhW8qDQ3oFZ3pAttb-ceOYuswOrq6KLV6AiEAirbyUghikyCM1AsI0t5mCL57bDFCvkpIy3nzIqaSg2o%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D;!new_stream;!no_clip;!no_chapters;%961%edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;;" -> 1
[cplayer] Set property: file-local-options/force-media-title="RoboCop: Rogue City Official Gameplay Overview Trailer" -> 1
[cplayer] Set property: file-local-options/stream-lavf-o={} -> 1
[edl] Opening edl://!no_clip;!no_chapters;%918%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAN4dMufSxHtRhW8qDQ3oFZ3pAttb-ceOYuswOrq6KLV6AiEAirbyUghikyCM1AsI0t5mCL57bDFCvkpIy3nzIqaSg2o%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D;!new_stream;!no_clip;!no_chapters;%961%edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;;
[demux] Trying demuxers for level=request.
[demux] Detected file format: Edit decision list
[demux] Stream is not seekable.
[demux] Opening segment 0...
[ffmpeg] Opening https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAN4dMufSxHtRhW8qDQ3oFZ3pAttb-ceOYuswOrq6KLV6AiEAirbyUghikyCM1AsI0t5mCL57bDFCvkpIy3nzIqaSg2o%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D
[ffmpeg] Mime-type: 'video/webm'
[demux] Trying demuxers for level=normal.
[mkv] Parsing cues...
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[demux] Opening segment 0...
[edl] Opening edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;
[demux] Trying demuxers for level=request.
[demux] Detected file format: Edit decision list
[demux] Stream is not seekable.
[demux] Error in EDL.
[demux] EDL: source file 'edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;' has unknown duration.
[timeline] Timeline segments:
[timeline]   0:     0.000000 -   118.233000 [    0.000000] (0)
[timeline]   source 0:'https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAN4dMufSxHtRhW8qDQ3oFZ3pAttb-ceOYuswOrq6KLV6AiEAirbyUghikyCM1AsI0t5mCL57bDFCvkpIy3nzIqaSg2o%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D'
[timeline]  --- new parallel stream ---
[timeline]   0:     0.000000 -     1.000000 [    0.000000] ()
[timeline]   source 0:'edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;'
[timeline] Total duration: 118.233000
[demux] Detected file format: multi/mkv (timeline segments)
[cplayer] Opening done: edl://!no_clip;!no_chapters;%918%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAN4dMufSxHtRhW8qDQ3oFZ3pAttb-ceOYuswOrq6KLV6AiEAirbyUghikyCM1AsI0t5mCL57bDFCvkpIy3nzIqaSg2o%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D;!new_stream;!no_clip;!no_chapters;%961%edl://!mp4_dash,init=%934%https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427110&ei=hm8KZPe3Ms7x0wWvnrqoAw&ip=84.236.214.249&id=o-AEobWgRg7I54L1pKY_zyhdtw_OeVFYU6DKXaL9rFTPhz&itag=251&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1550000&spc=H3gIhk_rWjHTtkwwfw0kuWxXeVLDieI&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=1899505&dur=118.261&lmt=1678386495133822&mt=1678405032&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgWq26JHPgPem5_rmLqTVUoSYp_2TY01U-Ux2o14vbiaoCIQDuZw4Q-BfE18PW4RTZoSlx-I0YBYeg06olKTyBxk2lxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAO7dD28xcfrUTy9e-XmODIFcso9wdCVtK3LoTXGhc9k8AiBoszJRsk9cP7ASfYckjZuxMTKvLTslMdrsRcUgRFDztA%3D%3D&range=0-1899505;;
[cplayer] Running hook: ytdl_hook/on_preloaded
[timeline] select track 0
[cplayer]  (+) Video --vid=1 (*) (vp9 3840x2160 60.000fps)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :1
[vo/gpu/x11] Display 0 (HDMI-0): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 60.000000
[vo/gpu/opengl] EGL_VERSION=1.4
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x40, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 390.157'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='GeForce GT 440/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vd] Container reported FPS: 60.000004
[vd] Codec list:
[vd]     vp9 - Google VP9
[vd]     vp9_v4l2m2m (vp9) - V4L2 mem2mem VP9 decoder wrapper
[vd]     libvpx-vp9 (vp9) - libvpx VP9
[vd]     vp9_cuvid (vp9) - Nvidia CUVID VP9 decoder
[vd]     vp9_qsv (vp9) - VP9 video (Intel Quick Sync Video acceleration)
[vd] Opening decoder vp9
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[vd] Selected codec: vp9 (Google VP9)
[vf] User filter list:
[vf]   (empty)
[cplayer] Starting playback...
[timeline] switch to segment 0
[mkv] select track 0
[vd] Decoder format: 3840x2160 [0:1] yuv420p bt.709/auto/auto/limited/auto CL=unknown
[vd] Using container aspect ratio.
[vf] [in] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 3840x2160 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 3840x2160 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/x11] not waiting for MapNotify
[vo/gpu] Resize: 1916x1077
[vo/gpu] Window size: 1916x1077 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 3840x2160 (1:1)
[vo/gpu] Video display: (0, 0) 3840x2160 -> (1, 0) 1914x1077
[vo/gpu] Video scale: 0.498437/0.498611
[vo/gpu] OSD borders: l=1 t=0 r=1 b=0
[vo/gpu] Video borders: l=1 t=0 r=1 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 3840x2160
[vo/gpu] Texture for plane 1: 1920x1080
[vo/gpu] Texture for plane 2: 1920x1080
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] DR enabled: yes
[cplayer] first video frame after restart shown
[cplayer] playback restart complete @ 0.000000
[statusline] V: 00:00:00 / 00:01:58 (0%) Cache: 1.9s/838KB
[vo/gpu/x11] Disabling screensaver.
[statusline] V: 00:00:00 / 00:01:58 (0%) Cache: 2.0s/897KB
[cplayer] Set property: shared-script-properties -> 1
[statusline] V: 00:00:00 / 00:01:58 (0%) Cache: 2.0s/897KB
[cplayer] Set property: shared-script-properties -> 1
[statusline] V: 00:00:03 / 00:01:58 (2%) Cache: 10.0s/9MB
[cplayer] EOF code: 5  
[vo/gpu/x11] Enabling screensaver.
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1

$ yt-dlp -vU -f bestvideo+bestaudio https://www.youtube.com/watch?v=0vWRXYTbrP8 -g | xargs mpv
[debug] Command-line config: ['-vU', '-f', 'bestvideo+bestaudio', 'https://www.youtube.com/watch?v=0vWRXYTbrP8', '-g']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (zip)
[debug] Python 3.9.2 (CPython x86_64 64bit) - Linux-5.10.0-21-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg N-63101-gc92edd969a-static (setts), ffprobe 5.1.2, rtmpdump 2.4
[debug] Optional libraries: certifi-2020.06.20, no_Cryptodome-None, pyxattr-0.7.2, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 91cad9f121c1f6f0a81b747415c46ecba0ff331ed38cc6433040b4ac7b6e15ca
yt-dlp is up to date (stable@2023.03.04)
[youtube] Extracting URL: https://www.youtube.com/watch?v=0vWRXYTbrP8
[youtube] 0vWRXYTbrP8: Downloading webpage
[youtube] 0vWRXYTbrP8: Downloading android player API JSON
[debug] Loading youtube-nsig.21246a91 from cache
[debug] [youtube] Decrypted nsig sbdu2Ovs5iEL8PyP_ => iMQbPR0tsAu2_w
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] 0vWRXYTbrP8: Downloading 1 format(s): 315+251
Playing: https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678428349&ei=XXQKZKKoM72Fp-oP7aeVoAM&ip=84.236.214.249&id=o-AAqD9jyEa-TaRddIT2cpW0jjHLlU4ZZnjyItCqDPXQaD&itag=315&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1880000&spc=H3gIhqfO0YVNbtBfLJstZNQEHayHaGg&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=220591689&dur=118.233&lmt=1678386534695906&mt=1678406465&fvip=2&keepalive=yes&fexp=24007246&c=ANDROID&txp=6319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAKkHXswkx48W_doqgSl6SdWIxdB0ji5Xv6uw-BUdhiLtAiEA5gJu6xyKuTRjxHrMCHpkt0KXrT_p9wIjvCgmbaZ4gBU%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAL5J0EYhVqVsFf09dllJXkuqwEmm3kRoLtOCnFsY1MTwAiByMnuHtK0MXdr5_199eXT_38qW5Uq2_RqMPJXOxJ-_xQ%3D%3D
 (+) Video --vid=1 (*) (vp9 3840x2160 60.000fps)
VO: [gpu] 3840x2160 yuv420p
V: 00:00:03 / 00:01:58 (2%) Dropped: 2 Cache: 10s/10MB

Exiting... (Quit)

$ mpv --v --ytdl-format=best https://www.youtube.com/watch?v=0vWRXYTbrP8
[cplayer] Command line options: '--v' '--ytdl-format=best' 'https://www.youtube.com/watch?v=0vWRXYTbrP8'
[cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       56.51.100 (runtime 56.70.100)
[cplayer]    libavcodec      58.91.100 (runtime 58.134.100)
[cplayer]    libavformat     58.45.100 (runtime 58.76.100)
[cplayer]    libswscale      5.7.100 (runtime 5.9.100)
[cplayer]    libavfilter     7.85.100 (runtime 7.110.100)
[cplayer]    libswresample   3.7.100 (runtime 3.9.100)
[cplayer] ffmpeg version: 4.4
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --disable-build-date --enable-dvbin
[cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua memfd_create optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland wayland-protocols x11 xv zlib
[cplayer] Setting option 'config' = 'no' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'ytdl-format' = 'best' (flags = 8)
[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] libass API version: 0x1501000
[osd/libass] libass source: tarball: 0.15.1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[osd/libass] libass API version: 0x1501000
[osd/libass] libass source: tarball: 0.15.1
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[ffmpeg] Opening https://www.youtube.com/watch?v=0vWRXYTbrP8
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[ffmpeg] Mime-type: 'text/html; charset=utf-8'
[demux] Trying demuxers for level=normal.
[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=0vWRXYTbrP8
[cplayer] Running hook: ytdl_hook/on_load_fail
[ytdl_hook] full hook 
[ytdl_hook] youtube-dl succeeded! 
[cplayer] Set property: file-local-options/user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36" -> 1
[cplayer] Set property: stream-open-filename="https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427291&ei=O3AKZLOYMYqZ1waK35bIAQ&ip=84.236.214.249&id=o-AAeskCnLPSvjgu9VGU0Dr25eQJzWrH3j021i_rMFPkNy&itag=22&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1332500&spc=H3gIhnMOH0GwYpsy2UqEJOqHmsahPdo&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=118.305&lmt=1678386536710818&mt=1678405267&fvip=2&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgAoT5omUqRzB_PMUIkV1c8KILq-HP_bqduQCnCwMJTJYCIGXQBzFLB7MEGASW28kv8ULN1Wst1UaY1C7iIdssMOMS&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgAvrBO-CkIrdWFsIqFVeNmFs17qLyggAiPE9hQhvxFKoCIQCKCVaWof51_VEn358IQMGl8IpsZM7LcpoB6IVDP1fzjQ%3D%3D" -> 1
[cplayer] Set property: file-local-options/force-media-title="RoboCop: Rogue City Official Gameplay Overview Trailer" -> 1
[cplayer] Set property: file-local-options/stream-lavf-o={} -> 1
[ffmpeg] Opening https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427291&ei=O3AKZLOYMYqZ1waK35bIAQ&ip=84.236.214.249&id=o-AAeskCnLPSvjgu9VGU0Dr25eQJzWrH3j021i_rMFPkNy&itag=22&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1332500&spc=H3gIhnMOH0GwYpsy2UqEJOqHmsahPdo&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=118.305&lmt=1678386536710818&mt=1678405267&fvip=2&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgAoT5omUqRzB_PMUIkV1c8KILq-HP_bqduQCnCwMJTJYCIGXQBzFLB7MEGASW28kv8ULN1Wst1UaY1C7iIdssMOMS&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgAvrBO-CkIrdWFsIqFVeNmFs17qLyggAiPE9hQhvxFKoCIQCKCVaWof51_VEn358IQMGl8IpsZM7LcpoB6IVDP1fzjQ%3D%3D
[ffmpeg] Mime-type: 'video/mp4'
[demux] Trying demuxers for level=normal.
[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[cplayer] Opening done: https://rr3---sn-nxg8pivnupob-hw8l.googlevideo.com/videoplayback?expire=1678427291&ei=O3AKZLOYMYqZ1waK35bIAQ&ip=84.236.214.249&id=o-AAeskCnLPSvjgu9VGU0Dr25eQJzWrH3j021i_rMFPkNy&itag=22&source=youtube&requiressl=yes&mh=mp&mm=31%2C29&mn=sn-nxg8pivnupob-hw8l%2Csn-nxg8pivnupob-h5qs&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=1332500&spc=H3gIhnMOH0GwYpsy2UqEJOqHmsahPdo&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=118.305&lmt=1678386536710818&mt=1678405267&fvip=2&fexp=24007246&c=ANDROID&txp=6318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgAoT5omUqRzB_PMUIkV1c8KILq-HP_bqduQCnCwMJTJYCIGXQBzFLB7MEGASW28kv8ULN1Wst1UaY1C7iIdssMOMS&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgAvrBO-CkIrdWFsIqFVeNmFs17qLyggAiPE9hQhvxFKoCIQCKCVaWof51_VEn358IQMGl8IpsZM7LcpoB6IVDP1fzjQ%3D%3D
[cplayer] Running hook: ytdl_hook/on_preloaded
[lavf] select track 0
[lavf] select track 1
[cplayer]  (+) Video --vid=1 (*) (h264 1280x720 30.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :1
[vo/gpu/x11] Display 0 (HDMI-0): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/gpu/x11] Current display FPS: 60.000000
[vo/gpu/opengl] EGL_VERSION=1.4
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x40, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 390.157'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='GeForce GT 440/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vd] Container reported FPS: 30.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     libopenh264 (h264) - OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad]     libfdk_aac (aac) - Fraunhofer FDK AAC
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[af] [in] 44100Hz stereo 2ch floatp
[af] [userspeed] 44100Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 44100Hz stereo 2ch floatp
[vd] Decoder format: 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vf] [in] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 44100 Hz, stereo channels, floatp
[ao/pulse] Library version: 14.2.0
[ao/pulse] Proto: 34
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4410 samples.
[ao/pulse] using soft-buffer of 8820 samples.
[cplayer] AO: [pulse] 44100Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 44100Hz stereo floatp -> 44100Hz stereo float
[af] [out] 44100Hz stereo 2ch float
[cplayer] VO: [gpu] 1280x720 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/x11] not waiting for MapNotify
[vo/gpu] Resize: 1280x720
[vo/gpu] Window size: 1280x720 (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) 1280x720
[vo/gpu] Video scale: 1.000000/1.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] Reported display depth: 8
[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] DR enabled: yes
[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
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:00 / 00:01:58 (0%) A-V: -0.000 Cache: 37s/9MB
[vo/gpu/x11] Disabling screensaver.
[statusline] AV: 00:00:00 / 00:01:58 (0%) A-V:  0.000 Cache: 51s/12MB
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:00 / 00:01:58 (0%) A-V:  0.000 Cache: 115s/30MB
[lavf] EOF reached.
[statusline] AV: 00:00:03 / 00:01:58 (2%) A-V:  0.000 Cache: 114s/30MB
[cplayer] EOF code: 5  
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[ao/pulse] draining...
[vo/gpu/x11] Enabling screensaver.

$ youtube-dl -vU -f best https://www.youtube.com/watch?v=0vWRXYTbrP8 -g | xargs mpv
[debug] Command-line config: ['-vU', '-f', 'best', 'https://www.youtube.com/watch?v=0vWRXYTbrP8', '-g']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (zip)
[debug] Python 3.9.2 (CPython x86_64 64bit) - Linux-5.10.0-21-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg N-63101-gc92edd969a-static (setts), ffprobe 5.1.2, rtmpdump 2.4
[debug] Optional libraries: certifi-2020.06.20, no_Cryptodome-None, pyxattr-0.7.2, sqlite3-2.6.0
[debug] Proxy map: {}
WARNING: "-f best" selects the best pre-merged format which is often not the best option.
         To let yt-dlp download and merge the best available formats, simply do not pass any format selection.
         If you know what you are doing and want only the best pre-merged format, use "-f b" instead to suppress this warning
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 91cad9f121c1f6f0a81b747415c46ecba0ff331ed38cc6433040b4ac7b6e15ca
yt-dlp is up to date (stable@2023.03.04)
[youtube] Extracting URL: https://www.youtube.com/watch?v=0vWRXYTbrP8
[youtube] 0vWRXYTbrP8: Downloading webpage
[youtube] 0vWRXYTbrP8: Downloading android player API JSON
[debug] Loading youtube-nsig.21246a91 from cache
[debug] [youtube] Decrypted nsig o59oOEU1ElYM6nhTz => JtYbjNMX76ZUfQ
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] 0vWRXYTbrP8: Downloading 1 format(s): 22
 (+) Video --vid=1 (*) (h264 1280x720 30.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1280x720 yuv420p
AV: 00:00:03 / 00:01:58 (2%) A-V:  0.000 Cache: 114s/30MB

Exiting... (Quit)
obj-obj commented 1 year ago

This is an mpv issue that’s been fixed but a new release hasn’t come out yet, try installing the latest version of mpv from git and see if the problem is still there

observeroftime01 commented 1 year ago

I ran into the same issue of not having audio on youtube videos (when played through MPV via yt-dlp) recently, updating to the latest MPV nightly release solved the issue for me. I grabbed the latest release from here. Not sure where to find nightly builds for Linux.

low-batt commented 1 year ago

This is mpv issue https://github.com/mpv-player/mpv/issues/11392. The fix is in PR https://github.com/mpv-player/mpv/pull/11398 which has been merged into the mpv master branch. The fix updates the Lua script ytdl_hook.lua to be compatible with the latest version of yt-dlp (2023.03.04).

As the fix only updates that Lua script a new release of mpv is not required. You can download the latest version of that script and place it in ~/.config/mpv/scripts/ and then set the mpv option ytdl to no to get mpv to use the new version of the script in the scripts directory instead of the now faulty version embedded in mpv.

More discussion can be found in the IINA issue https://github.com/iina/iina/issues/4253.

I'm looking at yt-dlp issues because you will see at the end of that issue an IINA user is reporting they are experiencing a 3 minute delay before a video starts streaming.

pukkandan commented 1 year ago

The bug in mpv was revealed by how our new throttling bypass works. So reverting to the yt-dlp version before it is also a viable workaround if you are unable to update mpv

pukkandan commented 1 year ago

I'm looking at yt-dlp issues because you will see at the end of that issue an IINA user is reporting they are experiencing a 3 minute delay before a video starts streaming.

Could be related to https://github.com/yt-dlp/yt-dlp/issues/6447. I will investigate asap

low-batt commented 1 year ago

@pukkandan Thanks for pointing out that other issue.

The user experiencing the slow download has reported that after rebooting macOS the problem no longer reproduced. That user is running macOS Ventura 13.2.1, the latest release at this time. There are definitely still some regressions in Ventura that were not present in macOS Monterey.