Generate Thumbnails in MiniDlna

5,606 views
Skip to first unread message

K Robert

unread,
Jun 15, 2015, 7:31:10 AM6/15/15
to al...@googlegroups.com
Hello, 

I've been using alt-f for quite a while now, everything is perfect, only thing it's missing from my setup are video thumbnails.
I am using the latest version of minidlna from the Alt-F package.
I-ve installed ffmegthumbnailer, but i can't find a script to generate thumbnails form a folder with movies. It's time consuming to generate it manualy 1 by 1.
Can anyone help me with a script, or another software to help me create thumbs form folders, recursively.

Thanks in advance!

notoneofmy

unread,
Jun 15, 2015, 4:17:04 PM6/15/15
to al...@googlegroups.com
I'm amazed you're using this for video.

It has been discussed here quite a bit that the limited power of these
boxes mean they're best used for simply file sharing. You could use them
for media activities such as playing music, but I think the consensus
has been video is out of the question. So, if you have yours playing
movies without an issue, lots of folks here would like to know how
you've done it.

I am also interested in the thumbnail response as I have lots of
pictures I'd like that for. But I doubt this is possible.

João Cardoso

unread,
Jun 15, 2015, 4:20:41 PM6/15/15
to al...@googlegroups.com, robe...@gmail.com
adapt this:

find /mnt/md1/Media/Movies -name \*.avi | while read ln; do
  ffmpegthumbnailer
-i "$ln" -o "$(dirname "$ln")/$(basename "$ln" .avi).jpeg"
done



Thanks in advance!

João Cardoso

unread,
Jun 15, 2015, 4:26:12 PM6/15/15
to al...@googlegroups.com, notoneo...@gmx.de, notoneo...@gmx.de


On Monday, 15 June 2015 21:17:04 UTC+1, notoneofmy wrote:
On 15-06-15 1:31 PM, K Robert wrote:
> Hello,
>
> I've been using alt-f for quite a while now, everything is perfect, only
> thing it's missing from my setup are video thumbnails.
> I am using the latest version of minidlna from the Alt-F package.
> I-ve installed ffmegthumbnailer, but i can't find a script to generate
> thumbnails form a folder with movies. It's time consuming to generate it
> manualy 1 by 1.
> Can anyone help me with a script, or another software to help me create
> thumbs form folders, recursively.
>
> Thanks in advance!
I'm amazed you're using this for video.

It has been discussed here quite a bit that the limited power of these
boxes mean they're best used for simply file sharing. You could use them
for media activities such as playing music, but I think the consensus
has been video is out of the question.

You are mixing up things.
*Playing* (streaming) video is OK, what is not OK is *transcoding* video, this is, converting on the fly one format to another.
Transcoding audio works on a 320L with a cpu usage between 10 and 70% depending on the input and output formats, that's near the box limits.

notoneofmy

unread,
Jun 15, 2015, 4:28:02 PM6/15/15
to al...@googlegroups.com
On 15-06-15 10:26 PM, João Cardoso wrote:
You are mixing up things.
*Playing* video is OK, what is not OK is *transcoding* video, this is, 
converting on the fly one format to another.
Transcoding audio works on a 320L with a cpu usage between 10 and 70% 
depending on the input and output formats, that's near the box limits.
My apologies. I did not mean to confuse. Sorry.

K Robert

unread,
Jun 16, 2015, 3:03:29 AM6/16/15
to al...@googlegroups.com, robe...@gmail.com
You script is working as expected. Thank you.

Chris Musselman

unread,
Jun 22, 2015, 12:24:16 AM6/22/15
to al...@googlegroups.com
Hi, I would like to create thumbnails for minidnla as well, but am not familiar with running scripts in alt-f. How do I create and run the ffmpegthumbnailer script?

K Robert

unread,
Jun 22, 2015, 3:10:51 AM6/22/15
to al...@googlegroups.com
First of all , you have to install ffmpegthumbnailer from alt-f scripts page (from you box's WebUI)

1. Edit above script to suite your needs (change media path)
2. Open notepad on your pc, copy script , and save file as makemythumbs.sh
3. Upload the script "makemythumbs.sh" onto your machine
4. Ssh to your box, go to the location where you uploaded the script
5. Set rights (from ssh) => chmod u+x makemythumbs.sh
6. execute (from ssh) => sh makemythumbs.sh 

The process can take some time, depending on movie database. If it's all ok, you should see beside your movie, a new jpg file with your movie name.

Good luck!

Bert Broekhuizen

unread,
Jun 22, 2015, 4:01:11 PM6/22/15
to al...@googlegroups.com
Op maandag 22 juni 2015 09:10:51 UTC+2 schreef K Robert:
First of all , you have to install ffmpegthumbnailer from alt-f scripts page (from you box's WebUI)

1. Edit above script to suite your needs (change media path)
2. Open notepad on your pc, copy script , and save file as makemythumbs.sh
3. Upload the script "makemythumbs.sh" onto your machine
4. Ssh to your box, go to the location where you uploaded the script
5. Set rights (from ssh) => chmod u+x makemythumbs.sh
6. execute (from ssh) => sh makemythumbs.sh 

The process can take some time, depending on movie database. If it's all ok, you should see beside your movie, a new jpg file with your movie name.

Good luck!

 The above steps aren't entirely perfect:
  1. Step 5 isn't needed; in step 6 you ask sh to execute the contents of makemythumbs.sh. For that the file doesn't need execute permissions; that's only needed if you want to execute makemythums.sh directly like so `./makemythumbs.sh`, and that won't work without "#!/bin/sh" as the first line in makemythumbs.sh.
  2. Please beware the difference in line endings between Windows and Linux. I don't know if busybox's sh likes Windows line endings, but I wouldn't bet on it. If you really create the file in Windows Notepad (which uses Windows line endings and doesn't have an option to use Unix/Linux line endings instead), do the following in step 5: Change line endings (from ssh) => dos2unix makemythumbs.sh

Chris Musselman

unread,
Sep 13, 2015, 10:02:03 PM9/13/15
to Alt-F
Thanks Bert Broekhuizen and K Robert, your scripts and tips worked great. I was able to customize them for my setup and generate all the thumbnails.

Jacques Kruger

unread,
Oct 13, 2015, 6:03:05 AM10/13/15
to Alt-F
Anybody have some screen captures of how the end product looks on the TV?

K Robert

unread,
Jan 28, 2016, 10:07:14 AM1/28/16
to Alt-F
It has been quite a while now, that minidlna 1.1.5 is out.
Anybody can give me some pointers on how to upgrade minidlna alt-f package (currently 1.1.4) to 1.1.5 version?

Thanks

João Cardoso

unread,
Jan 29, 2016, 1:35:31 PM1/29/16
to al...@googlegroups.com


On Thursday, 28 January 2016 15:07:14 UTC, K Robert wrote:
It has been quite a while now, that minidlna 1.1.5 is out.
Anybody can give me some pointers on how to upgrade minidlna alt-f package (currently 1.1.4) to 1.1.5 version?

You have to wait for me to compile and release it, as nobody else... (rant)
Anyway, RC5 is not far away
 

Thanks
Reply all
Reply to author
Forward
Message has been deleted
0 new messages