HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Marvell Kirkwood based
Post Reply
barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

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

Post by barmalej2 » Thu Nov 14, 2013 1:14 pm

Why did you done firmware reset?
Have you installed or upgraded any new ffp packages after firmware reset, excluding minidlna and it's dependencies?
When all logs turned on to error level, are you getting any of errors in logfile?
Normally, with error level set, logfile shoud remain 0 bytes.

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Thu Nov 14, 2013 4:20 pm

There is out a new version.
http://sourceforge.net/projects/minidln ... /minidlna/
and what did i need, if i want play video m3u?

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

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

Post by barmalej2 » Thu Nov 14, 2013 8:58 pm

Actually, git version is always the latest, but the latest is not necessary the best ones. Changes of 2013-10-23 in Minidlna, broken detection of MiniDLNA server on my TV. Release 1.1.1, I think is based on git version 2013-11-02, so it is broken too. That is why minidlna on my repo is based on git version 2013-10-18.
Release with video m3u list support is based on original source with additional hack and available on individual requests for testing purpose as separate package. But... It will be based on the latest git version, which might not be functioning for you too. Wanna try?

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 3:03 am

I can tested it.


MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 8:52 am

http://downloads.zyxel.nas-central.org/ ... -arm-2.txz
hat start 1 time and then, it isn't start again.
Is there a hack for ISO support?

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

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

Post by barmalej2 » Fri Nov 15, 2013 8:59 am

MisterXY wrote:http://downloads.zyxel.nas-central.org/ ... -arm-2.txz
hat start 1 time and then, it isn't start again.
Is there a hack for ISO support?
Check log file at /ffp/var/log/minidlna.log
Are you getting any error output on start?
What about first one?
Regarding iso support-nope

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 9:01 am

the first one runs
That is the log

Code: Select all

[2013/11/15 09:39:25] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:39:25] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
[2013/11/15 09:40:37] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:40:37] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
[2013/11/15 09:40:59] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:40:59] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
[2013/11/15 09:41:13] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:41:13] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
[2013/11/15 09:41:17] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:41:17] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
[2013/11/15 09:43:32] sql.c:41: error: SQL ERROR 19 [column OBJECT_ID is not unique]
INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME) values ('1$F', '2', 12, 'container.storageFolder', 'Playlists')
[2013/11/15 09:43:32] minidlna.c:368: fatal: ERROR: Failed to create sqlite database!  Exiting...
after a reboot, the second did also not run

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

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

Post by barmalej2 » Fri Nov 15, 2013 10:49 am

Paste ouput of:

Code: Select all

ls -la /ffp/start
and

Code: Select all

ls -la /ffp/etc | grep minidlna

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 2:52 pm

Code: Select all

root@Thomas-NSA-325:~# ls -la /ffp/start
total 112
drwxr-xr-x  2 root root  4096 Nov 15 15:51 .
drwxr-xr-x 17 root root  4096 Aug  4 16:30 ..
-rwxr-xr-x  1 root root  2290 Apr  2  2013 AutoSortStart.sh
-rw-r--r--  1 root root    52 Jan 13  2012 LOGIN.sh
-rw-r--r--  1 root root    35 Jan 13  2012 SERVERS.sh
-rw-r--r--  1 root root   658 Jan 29  2012 denyhosts.sh
-rw-r--r--  1 root root   157 Jan 13  2012 fp_master.sh
-rwxr-xr-x  1 root root   197 Apr  3  2013 history.sh
-rw-r--r--  1 root root   203 Jan 21  2012 inetd.sh
-rw-r--r--  1 root root   906 Dec 12  2012 kickangel.sh
-rw-r--r--  1 root root   286 Dec 12  2012 kickwebs.sh
-rw-r--r--  1 root root  1925 Dec 12  2012 lighttpd.sh
-rwxrwxrwx  1 root root  5577 Nov 15 09:51 minidlna.sh
-rw-r--r--  1 root root  1625 Dec 28  2011 nfsd.sh
-rw-r--r--  1 root root   160 Dec 30  2011 portmap.sh
-rwxr-xr-x  1 root root  1104 Apr 14  2013 pyload.sh
-rw-r--r--  1 root root  1186 Dec 18  2011 rsyncd.sh
-rw-rw-rw-  1 root root  1974 Apr  3  2013 spin.sh
-rwxrwxrwx  1 root root  4152 Oct 31 18:34 spin_inotifywait.sh
-rwxr-xr-x  1 root root  1094 Dec 30  2011 sshd.sh
-rw-r--r--  1 root root   169 Jan 21  2012 telnetd.sh
-rwxrwxrwx  1 root root 18671 Aug 29 20:23 zyxel_utils.sh
and

Code: Select all

root@Thomas-NSA-325:~# ls -la /ffp/etc | grep minidlna
-rw-r--r--  1 root root       2941 Nov 15 15:46 minidlna.conf
-rw-r--r--  1 root root       2941 Nov 15 10:05 minidlna.conf.old

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

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

Post by barmalej2 » Fri Nov 15, 2013 6:09 pm

I need also outputs of:

Code: Select all

md5sum /ffp/start/minidlna.sh
and

Code: Select all

cat /ffp/etc/minidlna.conf

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 7:03 pm

Code: Select all

root@Thomas-NSA-325:~# md5sum /ffp/start/minidlna.sh
673ef1594a137eb19c5c5fdf1ebaf362  /ffp/start/minidlna.sh
and

Code: Select all

root@Thomas-NSA-325:~# cat /ffp/etc/minidlna.conf
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200

# network interfaces to serve, comma delimited
#network_interface=eth0

# specify the user account name or uid to run as
user=minidlna

# set this to the directory you want scanned.
# * if you want multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to specific content types, you
#   can prepend the types, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
#   + "PV" for pictures and video (eg. media_dir=AV,/home/jmaggard/digital_camera)
media_dir=A,/mnt/HD_a2/music/
#media_dir=P,/mnt/HD_a2/photo/
media_dir=V,/mnt/HD_a2/video/

# set this if you want to customize the name that shows up on your clients
friendly_name=MiniDLNA

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/ffp/tmp/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/ffp/tmp/minidlna/log

# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
log_level=general=error,artwork=error,database=error,inotify=error,scanner=error,metadata=error,http=error,ssdp=error,tivo=error

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php

# notify interval in seconds. default is 895 seconds.
notify_interval=60

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# specify the path to the MiniSSDPd socket
minissdpdsocket=/ffp/var/run/minissdpd.sock

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=B

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

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

Post by barmalej2 » Fri Nov 15, 2013 7:46 pm

Everything seems fine. I will compile third version for testing tomorrow in the evening with some additional changes and this time using older source code.
See you later.

MisterXY
Posts: 64
Joined: Sat Mar 09, 2013 11:47 am

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

Post by MisterXY » Fri Nov 15, 2013 7:58 pm

the first runs but the second package has the problem.

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

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

Post by barmalej2 » Sat Nov 16, 2013 6:54 pm

Time to test round-3 Mister:
http://downloads.zyxel.nas-central.org/ ... -arm-3.txz

Note1: Directory, where video *.m3u files resides should have AV flags specified in /ffp/etc/minidlna.conf, something like media_dir=AV,/mnt/HD_a2/tmp1/

Note2: database rescan is required:

Code: Select all

/ffp/start/minidlna.sh rescan 
Tested myself this release and confirmed as fully working with video m3u playlists on VLC player and on Samsung TV B-series :)

Post Reply