Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Some Basic Help

Help
Peter H
2010-05-24
2013-05-29
  • Peter H
    Peter H
    2010-05-24

    I know this program is for "experts" but I have tried another program (Mediatomb) and still could not get my Samsung LCD TV to see the server (except with samsung windoze S/W!).

    I have a fc12 box and done the following:

    Downloaded latest S/W,  extracted it and put the executable in /usr/sbin and the conf file in /etc  
    altered the conf file to show my media files,  but not sure what I should have in the url part!
    (presentation_url=http://www.mylan/index.php)  what exactly must I put in here and do I have to set up Samba?
    (MediaTomb seemed to work on another port)

    Also can I run minidlna as a user?

    I get atm:

    peter@study~ :$ minidlna -f /etc/minidlna.conf -d
    daemonize.c:76: error: Unable to open pidfile for writing /var/run/minidlna.pid: Permission denied
    minidlna.c:709: warn: Starting MiniDLNA version 1.0.16.3 .
    minidlna.c:89: error: bind(http): Address already in use
    minidlna.c:778: fatal: Failed to open socket for HTTP. EXITING
    peter@study~ :$ su -
    Password:
    # minidlna -f /etc/minidlna.conf -d
    minidlna.c:709: warn: Starting MiniDLNA version 1.0.16.3 .
    minidlna.c:89: error: bind(http): Address already in use
    minidlna.c:778: fatal: Failed to open socket for HTTP. EXITING

    Apologies if this is covered in other documentation,  but I have not found it! 
    If so could someone just point me to it please?

    Thanks

    Peter H 

     
  • Stedy
    Stedy
    2010-05-24

    1.  minidlna.c:89: error: bind(http): Address already in use.
    Do you have some other server running on port 8200? try change port in the config file.

    2. presentation_url is not in use. You could comment it out (#).

    3.You dont need Samba.

     
  • Peter H
    Peter H
    2010-05-24

    Thanks stedy6 in reply to your message:

    1. Ooops ……  I had left mediatomb running as a daemon,  removed it completely now!

    2. OK but what is the "presentation" used for?

    3. OK -  minidlna does now seem to run and I get a load of files using vlc (enabling the "Universal plg'n play discovery).
    Still nothing on my TV when I press "Media.P" atm.

    A small step forward I think!

    I configured minidlna using the fedora script from here:

    http://wiki.oppodigital.com/index.php?title=DLNA_Linux

    but on my fc12,  when I look at my "Services" GUI it is listed as "enabled" and "Dead"  with a "!" sign so I am not sure what is wrong.

    I do have wireshark and there is quite a lot of packets from my pc to a strange IP address,  I assume I do not need to do anything on my firewall in my router or does minidlna have to get stuff from the internet, assuming I am running from the script?

    Thanks for your time.

    Regards

    Peter H

      

     
  • Stedy
    Stedy
    2010-05-24

    if you have a firewall on the computer that minidlna is runing on, then the same port as defined in your configuration file need to be open(8200).
    And  UDP 1900.. http://ubuntuforums.org/showpost.php?p=8649592&postcount=81

    There is no need to open ports to internet.

    presentation is not used by minidlna yet…? I guess this is a feature that is defined in MiniUPnP where some of the code seams to come from.

     
  • Peter H
    Peter H
    2010-05-24

    Thanks for that,  I think that's the problem. 
    I already had udp 1900 but had left 49152 udp and tcp (the MediaTomb port) open.
    I had not noticed the port at the top of the conf file and was assuming all servers defaulted to 49152,  well that's my excuse!
    Will try again in the next couple of days and see if my Samsung can now see the server.
    (for completeness I will confirm what happened!)

    Thanks again

    Peter H
     

     
  • Peter H
    Peter H
    2010-05-25

    Sorry for being a bit of a pain but the Red Hat script I was using was specifically for an Oppo BDP-83 blue ray player.
    I have now deleted the script from init.d  (it did in fact start OK but I still could not see it). 

    Before going further can someone just confirm that minidnla will work with a samsung usb dongle on a LE 32B650 LCD TV?

    I have now got ports 1900 and 8200 open on my box's firewall but when I type minidlna as user I get nothing and no complaints!
    Is that correct when running as user?

    When doing this as root I get 3 processes:

    # ps aux |grep minidlna
    root     11874  0.0  0.0   4216   716 pts/0    S+   15:46   0:00 grep minidlna
    # minidlna
    # ps aux |grep minidlna
    root     11876  0.0  0.0  13148   828 ?        Ss   15:46   0:00 minidlna
    root     11877  0.0  0.0  13148   828 ?        S    15:46   0:00 minidlna
    root     11880  0.0  0.0  13148   828 ?        SN   15:46   0:00 minidlna
    root     11891  0.0  0.0   4216   720 pts/0    S+   15:46   0:00 grep minidlna
    #

    In wireshark I get:
    …..
    19 27.185126 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    20 27.185135 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    21 27.185152 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    22 27.185161 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    23 27.185174 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    24 27.185187 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    25 27.186488 192.168.1.2 224.0.0.22 IGMP V3 Membership Report / Join group 239.255.255.250 for any sources
    26 27.385282 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1
    27 27.385301 192.168.1.2 239.255.255.250 SSDP NOTIFY * HTTP/1.1

    Is that OK?

    and one final point,  looking at the server with vlc (with media directory set to  media_dir=V,/home/peter/minidlna)  I get ALL my photos and media in my home directory but in the directory configured I have only one file.  I have also checked that I only have one minidlna.conf on the box!

    Regards

    Peter H

     
  • Stedy
    Stedy
    2010-05-25

    can't find a DLNA certificate for your TV on http://certification.dlna.org/products/Default.aspx
    but you could try to start minidlna in debug mode.
    minidlna -f /etc/minidlna.conf -d
    -f path to your config file
    -d for debug.

     
  • Justin Maggard
    Justin Maggard
    2010-05-25

    And if you change the media_dir, you should run with -R to force a rescan using the new configuration.

     
  • Peter H
    Peter H
    2010-05-25

    Just tried your suggestion:

    peter@study~ :$ minidlna -f /etc/minidlna.conf -R -d
    daemonize.c:76: error: Unable to open pidfile for writing /var/run/minidlna.pid: Permission denied
    minidlna.c:709: warn: Starting MiniDLNA version 1.0.16.3 .
    minidlna.c:732: warn: Creating new database…
    minidlna.c:780: warn: HTTP listening on port 8200
    minissdp.c:306: debug: Sending SSDP notifies
    scanner.c:697: warn: Scanning /home/peter/minidlna
    metadata.c:712: debug: Container: 'avi'
    metadata.c:953: debug: Stream 0 of DSCF0154.AVI is 640x480
    scanner.c:765: warn: Scanning /home/peter/minidlna finished (1 files)!
    inotify.c:163: warn: WARNING: Inotify max_user_watches  is low or close to the number of used watches  and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
    minissdp.c:405: info: SSDP M-SEARCH from 192.168.1.2:39485 ST: urn:schemas-upnp-org:device:MediaServer:1, MX: 5, MAN: "ssdp:discover"
    minidlna.c:975: debug: HTTP connection from 192.168.1.2:34234
    upnphttp.c:706: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.1
    HOST: 192.168.1.2:8200
    DATE: Tue, 25 May 2010 18:14:42 GMT
    CONNECTION: close
    USER-AGENT: Linux/2.6.32.12-115.fc12.i686.PAE, UPnP/1.0, Portable SDK for UPnP devices/1.6.6

    upnphttp.c:1025: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 2217
    Server: Debian/4.0 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0

    I only have one file DSCF0154.AVI  and it seemed to recognize that,  but vlc still show other directories!

    Regards

     
  • Justin Maggard
    Justin Maggard
    2010-05-25

    Then VLC is caching the data.  Your debug log doesn't show any requests from VLC to get the container list, so it must have them stored somewhere locally.

     
  • Peter H
    Peter H
    2010-05-26

    Just to clarify,   are you saying that although I have enabled the server and run vlc with "Universal Plug'n Pay Discovery" enabled, can see the mnidlna server directories BUT vlc has that already saved in its cached data and is not getting it from the server?
    (hence the reason I am not seeing just the single AVI file I have stored in my minidlna.conf file)

    I should be looking in vlc to clear its caches data before proceeding.

    Thanks

    Peter H