What's new

Minidlna with Custom Icon, Rescan & Video Thumbnails through New Generation Optware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Works fine on my TV

  • Samsung C Series TV

    Votes: 0 0.0%
  • Samsung D Series TV

    Votes: 0 0.0%
  • Samsung J Series TV

    Votes: 0 0.0%

  • Total voters
    4
I have applied alllexx patches to the new minidlna sources 1.1.5 in Qnapware/Entware. No problems. I have not yet built ffmpegthumbernailer. I hope minidlna 1.1.5 with these patches will be released in Entware.arm upcomming sync.
 
Just in case someone examined the patches or can give any other help. In the version I have compiled - custom icon works, thumbnails are generated in art_cache folder and have the file names <video_file_name_with_extention>.jpg (??? Is it correct???)

When I browse from Samsung-D into the folder I have the debug output:

Code:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"&gt;
&lt;item id="2$15$6$0" parentID="2$15$6" restricted="1" refID="64$6$0"&gt;&lt;dc:title&gt;Taxi.1998.720p.WEB-DL.Rus.Fre.HDCLUB&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem&lt;/upnp:class&gt;&lt;dc:date&gt;2013-07-14T12:04:48&lt;/dc:date&gt;&lt;sec:dcmInfo&gt;CREATIONDATE=0,FOLDER=Taxi.1998.720p.WEB-DL.Rus.Fre.HDCLUB,BM=0&lt;/sec:dcmInfo&gt;&lt;res size="4348664388" duration="1:26:11.968" bitrate="840814" sampleFrequency="48000" nrAudioChannels="6" resolution="960x542" protocolInfo="http-get:*:video/x-mkv:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"&gt;http://10.0.0.26:8200/MediaItems/35.mkv&lt;/res&gt;&lt;res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM"&gt;http://10.0.0.26:8200/AlbumArt/7-35.jpg&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</Result>
<NumberReturned>1</NumberReturned>
<TotalMatches>1</TotalMatches>
<UpdateID>3</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
I can check that http://10.0.0.26:8200/AlbumArt/7-35.jpg has the correct thumb.
BUT The thumb is not displayed on Samsung! Thumbs are displayed with the previous minidlna built, when generated manually.

ADDITION. I have fixed minidlna for Samsung D series. The patch video_album_art_samsung_f-series_fix.patch was the reason. The difference is JPEG_SM vs JPEG_TN in the protocol.
 
Last edited:
Resume (from Google). Samsung F series needs JPEG_SM (Small image as a thumbernail) and does not show thumbs when only JPEG_TN (ThumbNail) is given.
One (who knows dlna protocol) needs to make a patch to send both JPEG_TN & JPEG_SM. I am removing Samsung F patch in Entware.
 
Resume (from Google). Samsung F series needs JPEG_SM (Small image as a thumbernail) and does not show thumbs when only JPEG_TN (ThumbNail) is given.
One (who knows dlna protocol) needs to make a patch to send both JPEG_TN & JPEG_SM. I am removing Samsung F patch in Entware.
Allexx has introduced an "if" statement and it works, try to contact him
 
Allexx has introduced an "if" statement and it works
This `if` breaks showing thumbs on Samsung D. Today Allexx fixed it. One of the members of my forum made a patch for some LG TV's - it is already in Optware-ng and will be in Entware in a copuple of days. Some LG's made mindlna consume 100% CPU making a lot of search requests.
 
Last edited:
optware-ng downloaded & installed per your "How to" instructions.
minidlna-rescan-thumbnail nano downloaded & installed after I got to the root directory.
I created an Icons directory. Put file: tux-2.png in the icons dir.
Edited minidlna.conf with icon=/mnt/sdb1/Icons/tux-2.png,7f7f7f
TV is Samsung UN40H5500 series.
Used Ipkg update
Used Ipkg list Confirmed 1.1.5 version installed
Rebooted router.
Tux-2 icon is on TV's multimedia page in lower left corner box with RT-N66 Admin text
Tux-2 icon is on TV's next multimedia page upper left box with RT-N66 text.
The icon is present in color!
 
Last edited:
@TeHashX - did you manage to add favicon.ico, so minidlna.log doesn't complain about error404 - favicon.ico missing
upnphttp.c:1012: warn: /favicon.ico not found, responding ERROR 404

I have tried to add favicon.ico by symlink, unfortunately it doesn't work
Code:
ln -s /tmp/mnt/sda1/minidlna/favicon.ico /www/favicon.ico
 
@TeHashX - did you manage to add favicon.ico, so minidlna.log doesn't complain about error404 - favicon.ico missing


I have tried to add favicon.ico by symlink, unfortunately it doesn't work
Code:
ln -s /tmp/mnt/sda1/minidlna/favicon.ico /www/favicon.ico

favicon.ico is not part of the DLNA standard. This is a client trying to do something not intended for DLNA - there is a standard mechanism for providing a device icon.
 
fair enough, I was just trying to make a simple workaround
there is /www/images/favicon.png that ASUS use for Router GUI
 
fair enough, I was just trying to make a simple workaround
there is /www/images/favicon.png that ASUS use for Router GUI

Just add this line to /opt/etc/minidlna.conf:
Code:
icon=/www/images/favicon.png,7f7f7f
Where '/www/images/favicon.png' is the full path to your icon on the router, and '7f7f7f' --- background colour
 
On Merlin 378.55 the complete .minidlna folder will be deleted when stopping the service.
Why ?

service stop_dms

Only stopping the service will already delete the complete folder .. .minidlna is gone.

Of course the system has to rebuild the new database once you start minidlna again.

If you set dms_rescan=0 the service start parameter "-R" is removed.
Which is fine.

But why is the folder deleted if you just stop the service ?

Sorry, I am talking about default minidlna from release 378.55.
Not the special version discussed here.

Thanks for your help !
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top