yt-dlna

Current version: 1.3.2

yt-dlna is a lightweight online media gateway used for proxying streaming playlists to DLNA/UPnP clients.

It acts as a bridge between online video platforms (such as YouTube, ARD Mediathek, ZDF and others) and legacy DLNA/UPnP media renderers (like older Smart TVs, media players, or set-top boxes) that no longer have native streaming apps. That way, it makes your favorite playlists, like ‚Watch Later‘, immediately accessible, even from very old TVs. All you need is a machine running Python and a TV that can play media from UPnP media servers.

Features
  • Smart TV gateway: Stream online playlists directly to older Smart TVs (as well as new ones, of course!), using their built-in DLNA/UPnP players, without ads or DASH/HLS demuxing issues.
  • Cast-to-UPnP bridge: Shows up as a Cast receiver in the mobile YouTube app. Select yt-dlna and the video will instantly play ad-free on your UPnP-compatible TV or media player. No playlist configuration needed at all!
  • Play-To: Play any online video instantly on your UPnP compatible TV by pasting its URL into a mobile-friendly „Play To“ view (PWA capable) and tapping „Play to Renderer“. No playlist configuration needed for this feature as well!
  • Instant start: Proactively pre-caches live stream URLs in the background so video playback starts instantly on your TV.
  • On-the-fly remuxing: Automatically remultiplexes the best available high-resolution DASH streams (1080p H.264 + AAC) in-memory via ffmpeg to a highly TV-compatible single-file MPEG-TS stream or fragmented MP4 stream when progressive MP4s are unavailable or below the configured resolution threshold (remux_threshold).
  • Multi-service & multi-account support: Proxy content from YouTube, ARD Mediathek, and many other platforms (called services in yt-dlna), as long as they are supported by yt-dlp. Define custom service profiles with different cookie files (e.g. separate YouTube profiles for family members).
  • Cookie-free public playlists: Access public or unlisted playlists anonymously without needing cookies.
  • Cookie-free playback: As long as the videos themselves are publicly visible, no cookie is needed for playback; however, for private videos, you can optionally choose to use one.
  • Custom playlists: Create user-curated, hierarchical playlists, e.g. with bookmarks to your favorite web radio stations, to stream them to your DLNA client, or use ‚hit‘ mode to trigger actions in 3rd-party systems. This way, you can even use your UPnP/DLNA client to control your Smart Home system!
  • Local Watch Later lists with Quick-Add: Select a Custom Playlist as your ‚Watch Later‘ list and quickly add videos to it locally via a convenient, mobile-friendly (PWA capable) view, without needing to sync it with an online service’s playlist.
  • Web Administration Dashboard: Manage playlists, streaming service profiles, cookies, and system settings via an embedded web dashboard (http://host:5001).
  • Low hardware requirements: Optimized specifically for older and low-powered single-board computers, performing well even on a hardware as old as a Raspberry Pi 1.
  • On-demand DLNA refresh: Trigger a playlist resync directly from your TV menu using virtual [Click to Refresh] items.

More information about yt-dlna, as well as full documentation, including quick setup instructions, and of course the full source code, is available on the yt-dlna GitHub repository.


Other software by me can be found here (German only).