$ pip install tiny-dlna
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.
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.
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.
On Windows, you need config your current user to have permission to create soft links:
- Open gpedit.msc
- Computer Configuration → Windows Settings → Security Settings → Local Policies → User Rights Assignment → Create symbolic links
- Type the user name (checkout
whoami
command) and click “Check Names” then OK. - Reboot the computer
You can also use Develper Mode I guess.
$ python -m tiny_dlna.tiny_cli -h
$ python -m tiny_dlna.tiny_render -h
This repository will be kept minimal. For additional DLNA actions, consider forking it.