App-YoutubeDlUtils
view release on metacpan or search on metacpan
script/youtube-dl-play view on Meta::CPAN
=over
=item * Run youtube-dl with --get-filename
To get the output filename, first this is executed:
% youtube-dl [OPTS] --get-filename <URL_OR_VIDEO_ID>
=item * Run youtube-dl that outputs to stdout and pipe it to mpv
% youtube-dl [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.465 second using v1.01-cache-2.11-cpan-64827b87656 )