App-YtDlpUtils
view release on metacpan or search on metacpan
script/yt-dlp-play view on Meta::CPAN
=over
=item * Run yt-dlp with --get-filename
To get the output filename, first this is executed:
% yt-dlp [OPTS] --get-filename <URL_OR_VIDEO_ID>
=item * Run yt-dlp that outputs to stdout and pipe it to mpv
% yt-dlp [OPTS] -o - <URL_OR_VIDEO_ID> | tee <OUTPUTFILENAME> | mpv -
=back
Some caveats:
=over
=item * The media-player program C<mpv> as well as the C<tee> utility are required
=item * Each command-line argument must be a video ID or video URL, not a playlist URL
( run in 0.375 second using v1.01-cache-2.11-cpan-64827b87656 )