HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Marvell Kirkwood based
Post Reply
User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by MrDini » Sun Oct 30, 2016 7:47 pm

Hi,

I Can see the minidlna at the package list, and here is a direct link, for barmalej's latest minidlna package. If You Cannot see at the slacker, You have to add br repo manually, using the uwsiteloader tool.
Thanks nas-central the lot of help! :)

stevesewing
Posts: 3
Joined: Sun Oct 30, 2016 7:07 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by stevesewing » Sun Oct 30, 2016 8:38 pm

Thanks for the link.
Unfortunately after running uwsiteloader.sh and installing some packages now I get this error when trying to use wget:
wget: can't load library 'libgcrypt.so.11'
Edit: I copied the package file another way but now when I want to start the process I get:
Starting minidlna.../ffp/bin/minidlna: can't load library 'libavformat.so.55'

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by MrDini » Sun Oct 30, 2016 8:58 pm

Ooo... Bad news! Did You removed the gcrypt package?

If the wget binary not works, You have to download this package via a desktop computer (or a laptop also nice) and You have to copy it for example to the NAS's admin share.

After it, login via SSH and execute:

Code: Select all

funpkg -i /mnt/HD_a2/admin/libgcrypt-1.5.0-arm-1.txz
And hopefuly, the wget binary will works.

Btw: the built in wget binary (at /bin/wget) also gives You the same output? :roll:

Mod:
Edit: I copied the package file another way but now when I want to start the process I get:
Starting minidlna.../ffp/bin/minidlna: can't load library 'libavformat.so.55'
You have to install br2's ffmpeg package. Because the avformat is a part of the ffmpeg (and libav too). I recommend to install the whole ffmpeg, which is available at the repo, via this command:

Code: Select all

slacker -uiA br2:ffmpeg/
Thanks nas-central the lot of help! :)

stevesewing
Posts: 3
Joined: Sun Oct 30, 2016 7:07 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by stevesewing » Sun Oct 30, 2016 9:18 pm

Works like a charm :)
Great help! Thanks MrDini!

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by MrDini » Sun Oct 30, 2016 9:54 pm

Cool! You're welcome! :D
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Wed Nov 02, 2016 10:44 am

Minidlna package is updated to 1.1.6 version. Changelog:
https://sourceforge.net/p/minidlna/git/ ... /tree/NEWS

hlavicka
Posts: 10
Joined: Tue Mar 12, 2013 9:52 am

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by hlavicka » Wed Nov 02, 2016 1:58 pm

Hi barmalej2, can you share your configuration options for minidlna please? When I compile the package from the git source, it just stops scanning on some video files and does not resume scanning.

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Wed Nov 02, 2016 4:47 pm

Here you are:
http://downloads.zyxel.nas-central.org/ ... inidlna.sh
hlavicka wrote:it just stops scanning on some video files and does not resume scanning.
Can give me example to reproduce case? I would like to test mine build as well. More likely it is bug in minidlna itself.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by MrDini » Sat Dec 24, 2016 3:39 pm

Hi,

First of all, merry christmas for all! :)

For a request, I built a patched minidlna 1.1.5 (yes, not the latest one, just because this source is stable for me), but with optional thumbnail generation support for all Your video files (which is supported by ffmpegthumbnailer).

It Can be easily installed via this command:

Code: Select all

slacker -UuiA br2:ffmpeg2/ s:libjpeg uli:flac s:libexif uli:libid3tag uli:libogg uli:libvorbis mz:sqlite mrdini:ffmpegthumbnailer mrdini:minidlna-thumb
And when every dependancie installed successfully, You just have to modify the config at /ffp/etc/minidlna.conf to fit for Your conditions. And here You Can also enable the thumb creation (that is disabled by default) and of course You Can find some other options, like the quality of the generated pictures etc. I think it will be clear, because of the detailed comments.

Finally, test if it Can be started by typeing:

Code: Select all

sh /ffp/start/minidlna.sh start
And just if everything looks good, add an execute permission to the start script, So it will be executed at every FFp boot time:

Code: Select all

chmod a+x /ffp/start/minidlna.sh
Have fun!

Any feedback is welcome! :D

Ps: I used barmalej2's minidlna start script at the package, So the credit belongs to him. Many thanks for Your nice work! ;)
Last edited by MrDini on Sat Dec 24, 2016 11:04 pm, edited 2 times in total.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Sat Dec 24, 2016 4:45 pm

I removed ffmpegthumbnailler from my repo, so edit your instructions.

Grego
Posts: 18
Joined: Tue Nov 03, 2015 1:54 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by Grego » Wed May 24, 2017 9:36 am

Hello

2017-05-18 Version 1.2.0 is out.

Code: Select all

1.2.0 - Released 17-May-2017
--------------------------------
- Add libavformat > 57 compatibility.
- Add TiVo Bonjour discovery support using Avahi for Bolt.
- Improve Samsung BD-J5500 support.
- Add quirk to fix video playback on Hyundai TVs.
- Add non-destructive update rescan support.
- Enhance bookmark support to work with Kodi.
Bye
D-Link DNS-320 rev A1 - MiniDLNA 1.2.0 (barmalej2)
TV Samsung UE48JU6400
TV Samsung UE32ES5500

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Wed May 24, 2017 12:03 pm

Thanks for info. I will update Minidlna soon, hopefully in several days, when I will finish with ffmpeg and tvheadend updates first.

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Sat May 27, 2017 7:59 pm

Done. Updated MiniDLNA version 1.2.0 is uploaded to br2 repository. Steps to install/upgrade MiniLDNA (root priviledges is requirement):
1. # Check, if you have slapt-get package installed. If no, then proceed further else proceed from step3:

Code: Select all

funpkg -q slapt-get
2. # If there is no slapt-get installed, then create funpkg cache dir for br2 repo in case it not exists and install new slapt-get package manager:

Code: Select all

[ -d /ffp/funpkg/cache/br2 ] || mkdir -p /ffp/funpkg/cache/br2
cd /ffp/funpkg/cache/br2
/ffp/bin/wget -nv http://downloads.zyxel.nas-central.org/Users/barmalej2/ffp/0.7/arm/packages/slapt-get-0.10.2t-arm-2.txz
funpkg -i slapt-get-0.10.2t-arm-2.txz
3. # Update slapt-get lists and upgrade core packages:

Code: Select all

slapt-get -u
slapt-get --upgrade
4. # Restart sshd daemon service after upgrading:

Code: Select all

sh /ffp/start/sshd.sh restart
5. # Stop current running MiniDLNA daemon service in case of upgrade:

Code: Select all

sh /ffp/start/minidlna.sh stop 
6. # Install MiniLDNA package with dependent packages together:

Code: Select all

slapt-get -i minidlna
7. # Start MiniDLNA daemon service after updating package:

Code: Select all

sh /ffp/start/minidlna.sh start
8. # Enable auto start of service, if desired:

Code: Select all

chmod 755 /ffp/start/minidlna.sh
Several remarks:
FFMPEG is updated to the latest version with additional external libraries together.
The new Minidlna feature:non-destructive update rescan support is implemented in the updated daemon service start script:

Code: Select all

sh /ffp/start/minidlna.sh
Usage: /ffp/start/minidlna.sh (start|stop|restart|status|rebuild|reload|rescan)
Use reload to update changed settings in config file for running minidlna service.
Use rebuild command for full database rebuild from the scratch.
Use rescan for non-destructive, soft database update.

Grego
Posts: 18
Joined: Tue Nov 03, 2015 1:54 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by Grego » Tue May 30, 2017 2:28 pm

Thank you very much for all this work ;) ;)
D-Link DNS-320 rev A1 - MiniDLNA 1.2.0 (barmalej2)
TV Samsung UE48JU6400
TV Samsung UE32ES5500

barmalej2
Posts: 2395
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Wed May 31, 2017 5:22 am

You're welcome.

Post Reply