Skip to content

access: add yt-dlp module

This ports the yt-dlp feature from MPV, allowing users to play video links from their supported websites.

  • Uses yt-dlp piping to automatically merge best formats.
    • This is the easiest way, because streams come in different formats (some audio and video separate, some audio only, other video only), and making yt-dlp handle it is best.
  • Uses an access module with a custom prefix yt-dlp:// to not interfere with the HTTP and HTTPS access modules for links.
  • Allows users to specify a path for the yt-dlp executable, defaulting the one in PATH if not set.
  • Allows users to specify a target format if needed.

Example Usage: ./vlc "yt-dlp://https://www.youtube.com/watch?v=dQw4w9WgXcQ

(Note: You would need the latest yt-dlp binary to test this because YouTube break API often)

Merge request reports

Loading