RepositoryPythonBRBrazil
gabrielmagno

gabrielmagno/nano-dlna

A minimal UPnP/DLNA media streamer

200stars
46forks
3issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: dlna

#1 Repository of the week

1
TINIX TRENDING·Topic: multimedia

#1 Repository of the week

1
TINIX TRENDING·Topic: dlna

#1 Repository of the month

nano-dlna

Build Status PyPI License

A minimal UPnP/DLNA media streamer.

nano-dlna is a command line tool that allows you to play a local video file in your TV (or any other DLNA compatible device).

🦀 Note: also checkout crab-dlna, a Rust implementation of nano-dlna.

Features

  • Searching available DLNA devices in the local network
  • Streaming audio
  • Streaming video, with subtitle support

Usage

List

Scan compatible devices and list the available ones:

nanodlna list

If your device is not being listed, you might need to increase the search timeout:

nanodlna -t 20 list

Play

Play a video, automatically loading the subtitles if available, selecting a random device:

nanodlna play That.Movie.mkv

Play a video, specifying the device through query (scan devices before playing):

nanodlna play That.Movie.mkv -q "osmc"

Play a video, specifying the device through its exact location (no scan, faster):

nanodlna play That.Movie.mkv -d "http://192.168.1.13:1082/"

Installation

nano-dlna can be installed as a regular python module by running:

$ [sudo] pip install nanodlna

Technical Details

nano-dlna is basically a one-file DLNA MediaServer and a self DLNA MediaController.

How does list work?

  1. Issue an SSDP M-Search broadcast message in the network
  2. Capture the responses and register the devices
  3. Filter only devices that provide UPnP's AVTransport service

How does play work?

  1. Setup an HTTP server to provide the media files to be streamed (including subtitles)
  2. Send a SetAVTransportURI message to the device, specifying the HTTP URLs of the media files
  3. Send a Play message to the device

TODO

  • Documentation
  • CLI interface to send controller actions (play, pause, stop, etc) to the MediaRenderer
  • CLI progress bar visualization
  • Playlist

Similar Projects

Discover other similar projects and AI models.

RepositoryC
mpv-player/mpv

🎥 Command line media player

38.4k
Nov 29, 2026
RepositoryC
FFmpeg/FFmpeg

Mirror of https://git.ffmpeg.org/ffmpeg.git

68.4k
Nov 29, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryPython
gtoxlili/wechat-finder-dlna

把电脑伪装成电视,通过 DLNA / AirPlay 2 / Chromecast 投屏捕获视频号直播流地址,支持加密音频流捕获 — 纯 Python,无需抓包/证书/代理

146
Apr 17, 2026
RepositoryPython
tsukumijima/pydtcpip

Unofficial Python implementation of DTCP-IP with DLNA/UPnP support

88
Nov 26, 2026
RepositoryJupyter Notebook
mahmoud/awesome-python-applications

💿 Free software that works great, and also happens to be open-source Python.

18.2k
Oct 18, 2026
RepositoryC
ffmpegwasm/ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly

18.0k
Sep 29, 2026
RepositoryC
ffmpegwasm/ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly

18.0k
Sep 29, 2026
RepositoryPHP
koel/koel

Music streaming solution that works.

17.4k
Dec 1, 2026