How to minidlna 1.0.22

Support for your TonidoPlug
pmcallihan
Super Tonidoid
Super Tonidoid
Posts: 36
Joined: Sat Oct 22, 2011 2:52 pm

How to minidlna 1.0.22

Postby pmcallihan » Sun Nov 20, 2011 5:33 pm

I use minidlna as the dlna server on my plug. It works with Sony TV
using Sony Media Center SMP-N100, Android tablets (Xoom and
ColorNook) using Softmedia Player, and on Linux boxes using
Enna. The buffering is great, no stuttering on videos. The
videos are better on dlna than using samba into VLC. I assume
it works with Windows Media Center, but I don't run windows. Not
a purist, I use a mac laptop.

As usual I'm responsible for nothing you try on you equipment!
This is how it worked for me.

You need to have a development environment on your plug.
See: viewtopic.php?f=37&t=3625 on this forum. This will allow
you to build programs and provide access to multimedia libraries.
I do these commands from a work directory (/root/src) at plug's root home.

1. Install prerequisites.
apt-get install libexif-dev libjpeg8-dev libid3tag0-dev libflac-dev\
libvorbis-dev libsqlite3-dev lib libacodec-dev libavformat-dev

2. Download minidlna source code
wget http://sourceforge.net/projects/minidln ... src.tar.gz

3. Decompress minidlna
tar xvfz ../minidlna_1.0.22_src.tar.gz

4. Change directory to the minidlna source and build.
cd minidlna-1.0.22
make
make build

5. Edit the minidlna config file at /etc/minidlna.conf. There is
all kind of info on the web about minidlna.conf howto(s).
a) uncomment friendly_name and add your own name.
friendly_name=Plug2 DLNA Server
b) Set the paths to your media. Mine's at /home/Media
Set it to whatever works for you.
#media_dir=/opt
media_dir=A,/home/Media/Music
media_dir=V,/home/Media/Videos
media_dir=P,/home/Media/Pictures

6. Copy startup file to startup directory and rename
cp linux/minidlna.init.d.script /etc/init.d/minidlna
chmod 755 /etc/init.d/minidlna

7. Start you minidlna.
/etc/init.d/minidlna start

8. Test by looking for process
ps aux | grep minidlna
should show something like
root 2960 0.0 0.3 40484 2016 ? Ssl 17:22 0:00 /usr/sbin/minidlna -f /etc/minidlna.conf

9. Setup start on boot.
update-rc.d minidlna defaults

That's it. Enjoy.

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: How to minidlna 1.0.22

Postby UrbanVoyeur » Sun Nov 20, 2011 8:34 pm

Thanks for another great guide.

Two small issues, and one clarification:
Step 1, should read:

1. Install prerequisites.
apt-get install libexif-dev libjpeg8-dev libid3tag0-dev libflac-dev libvorbis-dev libsqlite3-dev libavcodec-dev libavformat-dev

I think step 4 should read (it worked for me)

4. Change directory to the minidlna source and build.
cd minidlna-1.0.22
make
make install

In Step 6, people should note that the linux directory is inside the minidlna-1.0.22 directory, as in

6. Copy startup file to startup directory and rename
cp /src/minidlna-1.0.22/linux/minidlna.init.d.script /etc/init.d/minidlna
chmod 755 /etc/init.d/minidlna

benjamine_df
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Tue Oct 23, 2012 3:24 am

Re: How to minidlna 1.0.22

Postby benjamine_df » Wed Jul 24, 2013 9:29 pm

Hello, I am able to successfully install minidlna, but i could not install any new version, only the old version mentioned here (minidlna-1.0.22) is building properly, latest versions fail. Anybody has any idea about how to build latest versions?

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: How to minidlna 1.0.22

Postby UrbanVoyeur » Wed Jul 24, 2013 9:39 pm

I'll take a look, see what I can find out.

marioscube
Guru Tonidoid
Guru Tonidoid
Posts: 341
Joined: Sat Apr 14, 2012 5:42 pm
Location: Netherlands

Re: How to minidlna 1.0.22

Postby marioscube » Mon Oct 28, 2013 1:15 pm

@UrbanVoyeur

Did you ever find out anything?

Is it a dependency or a kernel thingie?

Any idea's? ;)

marioscube
Guru Tonidoid
Guru Tonidoid
Posts: 341
Joined: Sat Apr 14, 2012 5:42 pm
Location: Netherlands

Re: How to minidlna 1.0.22

Postby marioscube » Thu Feb 06, 2014 4:19 am

I succeeded in building and compiling miniDLNA version 1.1.1 (from source) on the Tonidoplug2 without errors. 8-)
With previous versions higher than 1.0.22 I ran into errors.

benjamine_df
Regular Tonidoid
Regular Tonidoid
Posts: 15
Joined: Tue Oct 23, 2012 3:24 am

Re: How to minidlna 1.0.22

Postby benjamine_df » Sun Mar 02, 2014 8:21 am

You are right, I am able to compile 1.1.1 version

Minor correction in above step:

Step 4:
cd minidlna-1.1.1
configure
make
make install
Last edited by benjamine_df on Sun Mar 02, 2014 9:49 am, edited 1 time in total.


Return to “TonidoPlug Support”

Who is online

Users browsing this forum: Google [Bot] and 6 guests