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).
nanodlna play That.Movie.1989.1080p.BluRay.x264.HuE.mkv
- Searching available DLNA devices in the local network
- Streaming audio
- Streaming video, with subtitle support
nano-dlna can be installed as a regular python module by running:
$ [sudo] pip install nanodlna
nano-dlna is basically a one-file DLNA MediaServer and a self DLNA MediaController.
How does list
work?
- Issue an SSDP M-Search broadcast message in the network
- Capture the responses and register the devices
- Filter only devices that provide UPnP's AVTransport service
How does play
work?
- Setup an HTTP server to provide the media files to be streamed (including subtitles)
- Send a
SetAVTransportURI
message to the device, specifying the HTTP URLs of the media files - Send a
Play
message to the device
- Documentation
- CLI interface to send controller actions (play, pause, stop, etc) to the MediaRenderer
- CLI progress bar visualization
- Playlist