[APP] MiniDLNA original/patched for firmware V4+ (08/2017)

Hello,

your work is remarkable and thank you very much.

Using your guide I was able to install miniDLNA 1.1.4 on my WD MyCloud 3TB with the latest firmware.

But…

I have these problems:

  1. The resume video functionality is not working. Every time I pick a video, it starts all over again.

  2. No thumbnails for videos.

I can live without the 2, but 1 was one of the main reasons I wanted to install miniDLNA over Twonky.

MiniDLNA is used to serve media on my Samsung C series LED TV (UE46C6500 model of 2010, latest firmware 2013).

Is there anything that can be done?

Please help!

vandan wrote:

Hello,

your work is remarkable and thank you very much.

Using your guide I was able to install miniDLNA 1.1.4 on my WD MyCloud 3TB with the latest firmware.

But…

I have these problems:

  1. The resume video functionality is not working. Every time I pick a video, it starts all over again.
  1. No thumbnails for videos.

I can live without the 2, but 1 was one of the main reasons I wanted to install miniDLNA over Twonky.

MiniDLNA is used to serve media on my Samsung C series LED TV (UE46C6500 model of 2010, latest firmware 2013).

Is there anything that can be done?

Please help!

  1. The resume function also not working for me, same goes to twonky for my samsung e series. So I would just use the time cue feature on the tv to forward to where I stopped. IIRC the resume function on samsung tv only works from samsung’s proprietary allshare pc software.

  2. Yes there’s no thumbnails for minidlna videos except if you place an image eg. folder.jpg to iconify the folders. This is by design to lower the overhead resources for smaller device, also the reason it’s called “Mini”. Some switched to minidlna because twonky takes quite some cpu just to create thumbnails using ffmpeg. But you can always generate the images manually from pc using 3rd party apps, file name will be exact-video-name.jpg within the same folder.

Hey

Firstly massive thanks for your script and compiling everything, its awesome cheers.

I did have a question however regarding a couple of settings in the config file?

log_dir=/var/log

db_dir=/var/lib/minidlna

A guide for the previous firmware suggests moving these to the public share with the following note:

_ Note1: Very important to do this. Otherwise you will be filling the small  OS partition. _

Is there no longer a "small OS partition as of firmware version 4 and therefore this is no longer necessarry?

@henryjfry,

No problemo…

For your question about the settings, I didn’t noticed any changes in the os partition size between v3 and v4.

I think it’s up to individual. I’ve have lots of extra packages installed, mail send receive server, mysql, extra apache/php libs, perl cpan modules, extra python libs etc2. And I’m still at 48% usage.

If you’re concerned, you can choose to move the db and log to the data volume or even turn off the logs. Just stop the daemon “service minidlna stop”, edit the conf file, move them to your preferred location and restart the daemon.

nazar@TeaNazaR4TB:~$ df -hFilesystem      Size  Used Avail Use% Mounted onrootfs          1.9G  921M 1002M  48% //dev/root       1.9G  921M 1002M  48% /tmpfs            23M   19M  4.1M  83% /runtmpfs            40M  128K   40M   1% /run/locktmpfs            10M     0   10M   0% /devtmpfs           5.0M     0  5.0M   0% /run/shmtmpfs           100M  3.1M   97M   4% /tmp/dev/root       1.9G  921M 1002M  48% /var/log.hddramlog-tmpfs     20M   12M  9.0M  56% /var/log

Hello,

About the resume function on videos:

I can confirm that it is working on minidlna version 1.0.24

I installed last night and it is working on my Samsung C series TV!

It seems that somewhere between v1.0.24 and v1.1.4 this functionality was lost. Beats me why.

From what I’m reading, this functionality could be working up until v1.1.2.

Could you provide an install for v1.1.2 to check this out? I’m not much into Linux, so I dont know how much trouble it is or how to do it myself.

But if you could provide an install for v1.1.2 or any versions between 1.0.24 and v.1.14 or explain how to do it myself it would be great!

Thank you for your great work.

@vandan,

I’ll try it later. Now I’m trying to make pyload works.

1) The resume function also not working for me, same goes to twonky for my samsung e series. So I would just use the time cue feature on the tv to forward to where I stopped. IIRC the resume function on samsung tv only works from samsung’s proprietary allshare pc software.

 

2) Yes there's no thumbnails for minidlna videos except if you place an image eg. folder.jpg to iconify the folders. This is by design to lower the overhead resources for smaller device, also the reason it's called "Mini". Some switched to minidlna because twonky takes quite some cpu just to create thumbnails using ffmpeg. But you can always generate the images manually from pc using 3rd party apps, file name will be exact-video-name.jpg within the same folder.

Please see:  http://sourceforge.net/p/minidlna/patches/121/ and  http://sourceforge.net/p/minidlna/patches/120/.

Thumbnails:  http://sourceforge.net/p/minidlna/patches/92/?page=4.

It all works, tested on MyBookLive.

1 Like

Hi Shurik85,

Thanks for sharing! Which version of MiniDLNA did you patched for MyBookLive? Also all the 3 patch worked?

I use a version of MiniDLNA 1.1.3., additionally installed the patch: http://sourceforge.net/p/minidlna/patches/120/ and manually fix file: clients.c (need to memorize the position of a file on Samsung TV):

— a/clients.c
+++ b/clients.c
@@ -58,7 +58,7 @@
/* User-Agent: DLNADOC/1.50 SEC_HHP_BD-D5100/1.0 /
{ ESamsungSeriesCDEBDP,
FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE,
- “Samsung Series [CDE] BDP”,
+ “Samsung Series [CDEF] BDP”,
“SEC_HHP_BD”,
EUserAgent
},
@@ -66,8 +66,8 @@
/
User-Agent: DLNADOC/1.50 SEC_HHP_[TV]UE40D7000/1.0 /
/
User-Agent: DLNADOC/1.50 SEC_HHP_ Family TV/1.0 */
{ ESamsungSeriesCDE,
- FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE | FLAG_SAMSUNG_DCM10,
- “Samsung Series [CDE]”,
+ FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE,
+ “Samsung Series [CDEF]”,
“SEC_HHP_”,
EUserAgent
},

Patch: http://sourceforge.net/p/minidlna/patches/92/?page=4 for version 1.1.3 also had to register manually. What would have earned you must install the library: ffmpeg libffmpegthumbnailer-dev ffmpegthumbnailer.

The automatic application of patches:

1. patch < minidlna-1.1.3-thumbnail.patch
2. ./configure
3. ./configure --enable-thumbnail
4. make
5. make install

MiniDLNA 1.1.3 with the ability to playback from the last stop and save the scanned and the scanned files: https://docs.google.com/file/d/0B_MifirfAJPvVjJxNHAxeUhON2c/edit?usp=docslist_api

Same plus thumbnailer:
https://docs.google.com/file/d/0B_MifirfAJPvRXFURFlYR21pLWc/edit?usp=docslist_api

Noted, I’ll see if I can include them.

Will this (much expected) miniDLNA installation (and Transimission) work with the new 4.01.01-41​3 firmware?

vandan wrote:

Will this (much expected) miniDLNA installation (and Transimission) work with the new 4.01.01-41​3 firmware?

I just downloaded tested in chroot, it works.

Anything new on the patched miniDLNA version?

Not anytime soon, on a week vacation :stuck_out_tongue:

OK, have lots of fun! I’ ll be waiting.:wink:

Shurik85 wrote:

I use a version of MiniDLNA 1.1.3., additionally installed the patch: http://sourceforge.net/p/minidlna/patches/120/ and manually fix file: clients.c (need to memorize the position of a file on Samsung TV):

— a/clients.c
+++ b/clients.c
@@ -58,7 +58,7 @@
/* User-Agent: DLNADOC/1.50 SEC_HHP_BD-D5100/1.0 /
{ ESamsungSeriesCDEBDP,
FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE,
- “Samsung Series [CDE] BDP”,
+ “Samsung Series [CDEF] BDP”,
“SEC_HHP_BD”,
EUserAgent
},
@@ -66,8 +66,8 @@
/
User-Agent: DLNADOC/1.50 SEC_HHP_[TV]UE40D7000/1.0 /
/
User-Agent: DLNADOC/1.50 SEC_HHP_ Family TV/1.0 */
{ ESamsungSeriesCDE,
- FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE | FLAG_SAMSUNG_DCM10,
- “Samsung Series [CDE]”,
+ FLAG_SAMSUNG | FLAG_DLNA | FLAG_NO_RESIZE,
+ “Samsung Series [CDEF]”,
“SEC_HHP_”,
EUserAgent
},

 

Patch: http://sourceforge.net/p/minidlna/patches/92/?page=4 for version 1.1.3 also had to register manually. What would have earned you must install the library: ffmpeg libffmpegthumbnailer-dev ffmpegthumbnailer.

 

The automatic application of patches:

1. patch < minidlna-1.1.3-thumbnail.patch
2. ./configure
3. ./configure --enable-thumbnail
4. make
5. make install

MiniDLNA 1.1.3 with the ability to playback from the last stop and save the scanned and the scanned files: https://docs.google.com/file/d/0B_MifirfAJPvVjJxNHAxeUhON2c/edit?usp=docslist_api

Same plus thumbnailer:
https://docs.google.com/file/d/0B_MifirfAJPvRXFURFlYR21pLWc/edit?usp=docslist_api

Hi Shurik85,

I wasn’t able to get the patches from the google drive so I generated my own patch based on the post on sourceforge. I was able to patch and compile the SamsungTV and the saved playback, but the thumbnail never seems to get generated on my Samsung 7 series after cleaning up the db. There’s no error or whatsoever. Any pointers? I already have ffmpegthumbnailer installed but does minidlna calls the ffmpeg binary during the thumbnail generation process? During scanning or ondemand?

It’s ok I got it sorted out :slight_smile: This was done on 1.1.3, I’ll try to port to 1.1.4.

[2014/12/09 21:56:30] albumart.c:378: debug: generating thumbnail: /DataVolume/shares/Public/Shared Videos/Cartoons/Series/Handy Manny.mp4

Hi Nazar78,

This problem was condemned to:  http://sourceforge.net/p/minidlna/discussion/879956/thread/34276163/.

In the file - upnpsoap.c you want to change the parameter JPEG_TN on JPEG_SM for client ESamsungSeriesCDE. But then the thumbnails are displayed only for Samsung F and above.

Provided on the above link to people like as possible to find solutions that would thumbnails displayed on Samsung C and F, but I have it not work.

1 Like

Shurik85 wrote:

Hi Nazar78,

 

This problem was condemned to:  http://sourceforge.net/p/minidlna/discussion/879956/thread/34276163/.

In the file - upnpsoap.c you want to change the parameter JPEG_TN on JPEG_SM for client ESamsungSeriesCDE. But then the thumbnails are displayed only for Samsung F and above.

Provided on the above link to people like as possible to find solutions that would thumbnails displayed on Samsung C and F, but I have it not work.

Hi Shurik85,

Ok noted and thanks. BTW the patch from v1.1.3 has quite major changes in the file upnpsoap.c to be ported over successfully to v1.1.4. So now I’m finalizing on just version 1.1.3 instead until a patch for v1.1.4 is released for saved playback.

_ New _ @ 1st post! Please help to test.

[20141210]

  • Added MiniDLNA v1.1.3.patched-1. +FLAG_SAMSUNG_DCM10/Bookmarks/Thumbnails
  • Added MiniDLNA v1.1.4.patched-1. +FLAG_SAMSUNG_DCM10/Thumbnails

Installed v 1.1.3-patched and tested on Samsung C series TV

  1. Remember last position-OK

  2. srt subtitles-OK (playing fine but not showing subtitles settings in tools)

  3. Virtual folders Latest and Last viewed-OK

  4. Fast forward and rewind-OK

  5. Play and pause-OK

Problems I found:

  1. Stop action gives me an error that action could not be performed and returns me to Media Players main menu

  2. Return has to be pressed twice to actually return to previous folder. If pressed once it displays nothing, like if there are no folders at all.