This tutorial is licensed under CC-BY-SA - feel free to share and modify it (but keep information free)!
This tutorial was originally written for the first Seafile forum of Seafile GmbH. Since the announcement to fork Seafile by Seafile GmbH Iāve decided to move my tutorials to the new Seafile forum of the original developers of Seafile (so this one).
This tutorial version is the maintained one.
Tutorial for streaming video/audo with your Seafile server via miniDLNA and FUSE
(This tutorial is an add-on for Tutorial for Seafile CE + Nginx + dynamic DNS (on ARM / Cubietruck / RaspberryPi))
A feature I was missing using Seafile was streaming the content of a library to a media pc (KODI in my case). Yes, you can open a library using WebDAV but this wonāt work for videos. So with (a lot of) help from @jobenvil I figured out how to stream from my Seafile server via FUSE and miniDLNA.
Tutorial for streaming video/audo with your Seafile server via minidlna and FUSE
Install FUSE and miniDLNA
Install FUSE and miniDLNA on your server:
sudo apt-get update && sudo apt-get install fuse miniDLNA
FUSE system group, mount point, start FUSE
Add a system group for FUSE, create a mount point where you mount your (only unencrypted!) seafile libraries and start FUSE:
sudo addgroup fuse
sudo mkdir -p /mnt/seafile-fuse
cd /path/to/seafile-server-latest
sudo ./seaf-fuse.sh start -o allow_other /mnt/seafile-fuse
(you will find your Seafile libraries under cd /mnt/seafile-fuse
now)
miniDLNA configuration
In /etc/minidlna.conf
exchange:
media_dir=/var/lib/minidlna
with:
media_dir=V,/mnt/seafile-fuse/YourUser@YourMail.TLD/1f3df213-ac7a-3e06-8ae2-13a84f7983f3_YourLibrary/videos
and enable (by removing #
in front of the line:
db_dir=/var/cache/minidlna
log_dir=/var/log
inotify=yes
notify_interval=895
Restart miniDLNA:
service minidlna force-reload && service minidlna status
Optional: firewall settings for miniDLNA and UPnP
If using a firewall open port 8200
(for miniDLNA, TCP) and 1900
(for UPnP, UDP is enough here).
miniDLNA connection test
Check the connection to miniDLNA on your client:
http://your.server.ip.address:8200/
Now you can access the Seafile libraries (for example) using KODI by adding your Seafile server as an UPnP media source.
Important:
- If you have a large media library (several hundred videos for example) your media center pc may take a while to index all the media files. It may take some hours.
- Everytime you add new media to the Seafile library you are streaming you have to restart miniDLNA with
sudo service minidlna force-reload
(otherwise miniDLNA doesnāt recognize the new added media files).
Thanks again to @jobenvil !
Please:
- report any bugs in this thread
- report if it works and if some sentences/comments are confusing (and why).
- ask all questions in this thread and not via PM (there are no stupid questions for me)