Minidlna Issue

Status
Not open for further replies.

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
***UPDATE AFTER ORIGINAL POST***

Successfully installed the jail and software datasets and pbi file and installed minidlna.

Plugins are enabled as is minidlna.

Just an fyi: plugins jail path /mnt/DLNA/jail plugins archive path /mnt/DLNA/software

Here's where I'm a little confused:

1. Made a mount point:
a. Source (this has my files I uploaded I want to share): /mnt/DLNA/MEDIA
b. Destination /usr/pbi/minidlna-amd64/mnt
c. Mounted? box is checked

2. Under plugin setting for MiniDLNA:
a. Media directory /usr/pbi/minidlna-amd64/mnt (this is in the jail folder, not software)
b. Port 8200
c. Discover interval 15seconds (figured it would speed up the initial discovery process)
d. Rescan on (re)start enabled
e. Friendly name: DLNA Server

3. When I go to my blu ray player or under Network on Windows 7 I see a network device called "root: software" that doesn't have any of video/photo files in it.

**UPDATE**
I'm an idiot. I forgot I turned off minidlna before making configuration changes.

It is broadcasting itself now with its friendly name but there's no files are found in it by my blu ray player or any windows machine.

Can someone tell me if my mount points are configured wrong based on the above information?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
It could be a permissions issue. Post the output of the following:
Code:
jexec `jls jid` id dlna

jexec `jls jid` ls -al /usr/pbi/minidlna-amd64/mnt


You shouldn't need to lower the discovery interval. I believe DLNA clients should be making a multicast request for any DLNA servers when they start up.
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
It could be a permissions issue. Post the output of the following:
Code:
jexec `jls jid` id dlna

jexec `jls jid` ls -al /usr/pbi/minidlna-amd64/mnt


You shouldn't need to lower the discovery interval. I believe DLNA clients should be making a multicast request for any DLNA servers when they start up.

Here's the shell responses:

[root@NAS_Server ~]# jexec 'jls jid' id dlna
jexec: jail "jls jid" not found
[root@NAS_Server ~]# jexec 'jls jid' ls -al /usr/pbi/minidlna-amd64/mnt
jexec: jail "jls jid" not found
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
Copy/Paste next time. ;)

Those are backticks not quotes.

LOL thanks. I'm a windows guy and control v doesn't seem to work in the shell.

Anyway here's what I get back:

[root@NAS_Server ~]# jexec `jls jid` id dlna
uid=40001(dlna) gid=40001(dlna) groups=40001(dlna)


[root@NAS_Server ~]# jexec `jls jid` ls -al /usr/pbi/minidlna-amd64/mnt
total 4007827
drwxrwxrwx+ 2 nobody wheel 3 Aug 14 00:49 .
drwxr-xr-x 16 root 1003 27 Aug 14 00:39 ..
-rwxrwxrwx+ 1 nobody wheel 2049962582 Aug 8 12:01 MATRIX.avi
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Only 1 movie? Perhaps though a couple of others in there as well, .mp4, .mpeg, etc.

Also, I forgot:
Code:
jexec `jls jid` tail /var/log/minidlna.log
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
Only 1 movie? Perhaps though a couple of others in there as well, .mp4, .mpeg, etc.

Also, I forgot:
Code:
jexec `jls jid` tail /var/log/minidlna.log

Somehow everything got erased when I deleted the previous mount. There were three folders Movies, Music, Audiobooks within the folder I mapped to originally. To keep it simple I just uploaded one movie to do a quick test.

Here's the output:

[root@NAS_Server ~]# jexec `jls jid` tail /var/log/minidlna.log
[2012/08/13 22:10:06] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/13 22:10:06] minidlna.c:949: warn: Creating new database...
[2012/08/13 22:10:06] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 00:31:02] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/14 00:31:02] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/
minidlna-amd64/minidlna.pid: Permission denied
[2012/08/14 00:39:12] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/14 00:39:12] minidlna.c:949: warn: Creating new database...
[2012/08/14 00:39:12] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 00:39:12] scanner.c:738: warn: Scanning /usr/pbi/minidlna-amd64/mnt
[2012/08/14 00:39:12] scanner.c:809: warn: Scanning /usr/pbi/minidlna-amd64/mnt
finished (0 files)!
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
[2012/08/14 00:39:12] scanner.c:809: warn: Scanning /usr/pbi/minidlna-amd64/mnt
finished (0 files)!
MiniDLNA didn't see the file. Try setting the dlna user as the owner, restarting MiniDLNA and checking the logfile again. As root:
Code:
chown -R 40001 /mnt/DLNA/MEDIA
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
MiniDLNA didn't see the file. Try setting the dlna user as the owner, restarting MiniDLNA and checking the logfile again. As root:
Code:
chown -R 40001 /mnt/DLNA/MEDIA

How do I change the owner? Is there a command line for the shell or is this done through the gui?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
How do I change the owner? Is there a command line for the shell or is this done through the gui?
:confused: That was the command for the shell. You ran the other 3 without any problems, backticks aside.
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
:confused: That was the command for the shell. You ran the other 3 without any problems, backticks aside.



[root@NAS_Server ~]# chown -R 40001 /mnt/DLNS/MEDIA
[root@NAS_Server ~]# jexec `jls jid` tail /var/log/minidlna.log
[2012/08/13 22:10:06] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/13 22:10:06] minidlna.c:949: warn: Creating new database...
[2012/08/13 22:10:06] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 00:31:02] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/14 00:31:02] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/
minidlna-amd64/minidlna.pid: Permission denied
[2012/08/14 00:39:12] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/14 00:39:12] minidlna.c:949: warn: Creating new database...
[2012/08/14 00:39:12] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 00:39:12] scanner.c:738: warn: Scanning /usr/pbi/minidlna-amd64/mnt
[2012/08/14 00:39:12] scanner.c:809: warn: Scanning /usr/pbi/minidlna-amd64/mnt
finished (0 files)!
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Did you restart MiniDLNA and make sure rescan on restart is checked in the config. The logfile hasn't been updated since before.
Code:
jexec `jls jid` date
Will give you the current time inside the jail to compare against the MiniDLNA log times.
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
Did you restart MiniDLNA and make sure rescan on restart is checked in the config. The logfile hasn't been updated since before.
Code:
jexec `jls jid` date
Will give you the current time inside the jail to compare against the MiniDLNA log times.

Guess I just needed to restart it a second time. The video came up after the restart and my blu ray player can stream it :)

I'll check other computers in the house as well to see if there's any permission issues on their part.

I'm using winx dvd ripper platinum to rip my dvds. Quality is great sometimes, other times is pixellated pretty bad. I'm going to crank up some settings in there and see how well it does.

Granted, this isn't a freenas question directly, but any known file format issues or kbps settings that don't mesh well with freenas? I know that's mostly based on local network connections but figured it best to ask.

Thanks for getting this up and running for me!!
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
[OFFTOPIC]

I'm using winx dvd ripper platinum to rip my dvds. Quality is great sometimes, other times is pixellated pretty bad. I'm going to crank up some settings in there and see how well it does.
Never heard of it, not that that means much. I would probably use handbrake or something that uses x264 for the video in a .mp4 container as it will likely give you better quality and smaller size.

[/OFFTOPIC]

Granted, this isn't a freenas question directly, but any known file format issues or kbps settings that don't mesh well with freenas? I know that's mostly based on local network connections but figured it best to ask.
Thanks to the DLNA spec there are several just none specific to FreeNAS. Here's a good blog post on why the DLNA protocol itself is crap. It comes down to what your clients will play.
 

newstartech

Dabbler
Joined
Aug 14, 2012
Messages
11
I have exactly same issue. I have different folder structure. mount point /mnt/ADA1/MyMedia was point to /mnt/ADA1/Software/Plugin/usr/pbi/mini-amd64/MyMedia. And minidlna settings media directory = /mnt/ADA1/Software/Plugin/usr/pbi/mini-amd64/MyMedia as well.

Following above thread. I changed media directory = /mnt/ADA1/Software/Plugin/usr/pbi/mini-amd64/mnt as well as mount point.

Here are the info as paleoN requested
jexec `jls jid` id dlna
uid=40001(dlna) gid=400019dlna) groups=40001(dlna)
jexec `jls jid` ls –al /usr/pbi/minidlna-amd64/mnt
total 40
drwxrwxrwx 3 nobody nobody 512 Aug 16 00:39 .
drwxr-xr-x 17 root 1003 512 Aug 16 00:38 ..
-rw-rw-rw- 1 nobody nobody 14353291 set 19 2011 – Faerie Isle.mp3
drwxrwxrwx 7 nobody nobody 512 Aug 14 07:51 Music
[root@freenas ~]# jexec `jls jid` tail /var/log/minidlna.log
[2012/08/16 00:36:17] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 00:36:17] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/
minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 00:38:14] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/16 00:38:14] minidlna.c:949: warn: Creating new database...
[2012/08/16 00:38:14] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 00:48:35] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 00:48:35] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/
minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 00:50:40] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQ
Lite 3.7.9].
[2012/08/16 00:50:40] minidlna.c:949: warn: Creating new database...

On my WMP (Windows media player), I still can't see any music files listed under NAS-media (Friend name of miniDLNA).

Can you help?
 

newstartech

Dabbler
Joined
Aug 14, 2012
Messages
11
After apply chown -R 40001 /mnt/ADA1/MyMedia and reboot the Freenas. Here is mindlna.log

[2012/08/14 07:41:12] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 07:41:12] minidlna.c:949: warn: Creating new database...
[2012/08/14 07:41:12] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 07:44:08] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/14 07:44:08] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/14 07:46:16] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 07:46:16] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 11:37:11] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 11:37:11] minidlna.c:949: warn: Creating new database...
[2012/08/14 11:37:11] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 12:01:05] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 12:01:05] minidlna.c:949: warn: Creating new database...
[2012/08/14 12:01:05] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 23:10:39] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/14 23:10:39] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/14 23:12:46] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 23:12:46] minidlna.c:949: warn: Creating new database...
[2012/08/14 23:12:46] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 23:37:47] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 23:37:47] minidlna.c:949: warn: Creating new database...
[2012/08/14 23:37:47] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/14 23:38:22] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/14 23:38:22] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/14 23:40:20] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/14 23:40:20] minidlna.c:949: warn: Creating new database...
[2012/08/14 23:40:20] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/15 04:34:14] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/15 04:34:14] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/15 08:28:19] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/15 08:28:19] minidlna.c:949: warn: Creating new database...
[2012/08/15 08:28:19] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 00:28:05] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/16 00:28:05] minidlna.c:949: warn: Creating new database...
[2012/08/16 00:28:05] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 00:28:45] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 00:28:45] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 00:30:50] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/16 00:30:50] minidlna.c:949: warn: Creating new database...
[2012/08/16 00:30:50] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 00:36:17] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 00:36:17] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 00:38:14] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/16 00:38:14] minidlna.c:949: warn: Creating new database...
[2012/08/16 00:38:14] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 00:48:35] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 00:48:35] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 00:50:40] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/16 00:50:40] minidlna.c:949: warn: Creating new database...
[2012/08/16 00:50:40] minidlna.c:1020: warn: HTTP listening on port 8200
[2012/08/16 01:15:34] minidlna.c:158: warn: received signal 15, good-bye
[2012/08/16 01:15:34] minidlna.c:1314: error: Failed to remove pidfile /usr/pbi/minidlna-amd64/minidlna.pid: Permission denied
[2012/08/16 01:17:39] minidlna.c:926: warn: Starting MiniDLNA version 1.0.22 [SQLite 3.7.9].
[2012/08/16 01:17:39] minidlna.c:949: warn: Creating new database...
[2012/08/16 01:17:39] minidlna.c:1020: warn: HTTP listening on port 8200

And this is minidlna.conf file
media_dir=/mnt/ADA1/Software/Plugin/usr/pbi/minidlna-amd64/mnt
port=8200
inotify=yes
enable_tivo=no
strict_dlna=no
notify_interval=890
friendly_name=NAS-media

I am windows man also, got these from windows shared folder and open the file with wordpad.

from Windows share folder, I can read/write on following /mnt/ADA1/MyMedia as well as /mnt/ADA1/Software/Plugin/usr/pbi/minidlna-amd64/mnt

hope this info can lead you to help me quicker.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
I have exactly same issue.
No, you don't. I can see that from the log. Don't run my suggestions for someone else without understanding what they are doing. That doesn't make any sense.

Did you listen to William in [thread=8321]your thread[/thread]? If not go do so now.

I wouldn't bother posting back here as I won't respond further. I'll keep an eye on your original thread though.
 

sonny81

Contributor
Joined
Aug 7, 2012
Messages
105
Thank you paleoN!! MiniDLNA is working flawlessly. I started doing DVD copies as opposed to H.264 and there is ZERO quality loss.

I'm shocked by even wireless clients can stream these 5-7GB files smoothly without hiccups. I'm seriously impressed!

In the next month or so I'm going to upgrade my system to RAIDZ and for the DLNA RAID1 with a USB drive manual backup (better than a single stand alone drive).

This DLNA is really cool!! Now my disappearing "borrowed" DVDs have a better chance of not being lost forever.

Thanks!!
 
Status
Not open for further replies.
Top