Skip to content
forked from mitnk/tiny-dlna

A tiny DLNA sender & receiver.

Notifications You must be signed in to change notification settings

heshunme/tiny-dlna

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tiny DLNA

Install

$ pip install tiny-dlna

Tiny DLNA Render

Just to support subtitles.

$ tiny-render

This will activate a DLNA receiver named "Tiny Render", which can stream videos from apps like 虎牙直播, Bilibili, and other video platforms. Additionally, you can also use tiny-cli play (see below) to play local videos (like in your RaspberryPi) on it.

Tiny DLNA Cli

List available DLNA devices:

$ tiny-cli list

Play a local video file on a DLNA device having "TV" in its name:

$ tiny-cli play ~/Movies/foo/bar.mp4 -q TV

If there is a bar.srt in the same directory, it will be served as long as the DLNA render supports subtitles.

Requirements for your System

For Render

For running the render, mpv needs to be installed. On Mac, you may do following:

$ ln -sf /Applications/mpv.app/Contents/MacOS/mpv /usr/local/bin/

For Windows, after installed mpv, add mpv.exe's directory into PATH.

For Cli

On Windows, you need config your current user to have permission to create soft links:

  1. Open gpedit.msc
  2. Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment → Create symbolic links
  3. Type the user name (checkout whoami command) and click “Check Names” then OK.
  4. Reboot the computer

You can also use Develper Mode I guess.

Dev

$ python -m tiny_dlna.tiny_cli -h
$ python -m tiny_dlna.tiny_render -h

More DLNA Actions, like Seek/Pause?

This repository will be kept minimal. For additional DLNA actions, consider forking it.

Related projects

About

A tiny DLNA sender & receiver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%