Giter Site home page Giter Site logo

asparatu / raspberrypi-media-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Show to setup media server using miniDLNA on Raspberry Pi 3 or later.

License: MIT License

raspberry-pi raspberry-pi-3 raspberrypi raspberrypi-servers dlna dlna-upnp dlna-server howto howto-tutorial minidlna

raspberrypi-media-server's Introduction

Raspberry Pi Media Server

I will show you have to setup a miniDLNA server using Raspberry Pi (RPI). When you are finished configuring the server, you will be able to access your videos, photo or music from this server. It would be advisable to have some form of external storage connect via usb.

Getting Started

These instructions will specifically show how to setup video streaming. If you followed my instruction on how to setup Torrent Server, you will be able to use the same Raspberry Pi as media server.

Disclaimer
I will assume you already have Rasbian Lite installed and you can connect to the RPi via ssh server. This will not show how to install Rasbian OS. I will only show you how to install media server and to configure it.

Media Players

In order to watch the stream from media server, you can use VLC media player or Windows Media Player. VLC media player is good, but in order to see newly added videos you need to close VLC and reopen it. Windows Media Player automatically updates the streams play list.

Installation

Step-by-step instructions on how to setup the media server.

How to install miniDLNA server

We are going install the miniDLNA server from the RPi repository. I would recommend that we update and upgrade the RPi before installing the miniDLNA server.

sudo apt-get update && sudo apt-get dist-upgrade -y

We are going install the miniDLNA server now. The installation is easy and should only take about 1 or 2 minutes depending out your internet speed.

sudo apt-get install minidlna -y

How to configure the Media Server

In order to configure the media server, we need to edit the configuration file. We do it by entering this command.

sudo nano /etc/minidlna.conf

Since, we are going to make so streams videos, we have to change the media_dir path to point the torrent complete directory, if you are using this on the torrent Server, but if not will be on the what directory you would like to use.

The is examples of how you can configure the different media_dir.

#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)

To configure for the videos we will use the third option in the examples.

media_dir=V,/media/storage/torrent/complete

Note: You can have more then one media_dir in the config file, but you need to prefix the path with A, or P, like in the example.

If would looks something like this:

media_dir=V,/media/storage/torrent/complete
media_dir=P,/media/storage/pictures
media_dir=A,/media/storage/music

We are going to enable few setting by removing the # front of the names, but do not change the default values.

  • log_level
  • db_dir
  • log_dir
  • inotify
  • minissdpdsocket
  • album_art_names

We need to change the value and enable notify_interval like before remove # to enable and change the value to 300.

notify_interval=300

Set the name that will show up on the clients. Just remove the # to enable and the name can have spaces in them like my example.

friendly_name=Test Server

Save the file by pressing ctrl + x, press Y and press Enter

Restart the service by using this command:

sudo service minidlna restart

If does not work you can force to restart by using this command:

sudo service minidlna force-reload

If you do not have VLC media player installed, open Windows Media Player and goto playlist and you should see your server name listed under Other Libraries.

Authors

Shane Saunders - Initial work - asparatu

License

This project is licensed under the MIT License - see the LICENSE file for details

raspberrypi-media-server's People

Contributors

asparatu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.