Menu

#41 Infos about thumbnails...?

v1.0 (example)
open
thumbnails (1)
5
2015-07-08
2015-07-05
No

I'm opening this issue as I'm having problems on my home server setting up thumbnails for my media files. Actually, I'm on this setup:
Ubuntu Server 12.04
MiniDLNA 1.0.21

Everything works perfectly, but I really can't understand where I have to put thumbnails for my videos.
I created a shell (bash) script that extracts each file location and does:

1
2
3
4
#!/bin/bash
...
ffmpegthumbnailer -i /path/to/video_file_with_extension -o /same/path/video_file_without_extension.jpg
...

But accessing MiniDLNA from clients does not show any thumbnail.

So I just want to know these things:
The minimum version of MiniDLNA for multiple thumbnails in a single folder
(so video1.mp4 has video1.jpg as thumbnail, video2.mp4 has video2.jpg and so on)
The name convention for them to be loaded (VIDEO_FILE_NAME_NOEXTENSION.jpg is good? Which one should be used?)
* Is there any library version requirement? Such as "libfoo >= 2.0.1"

Discussion

  • Shrimpkin

    Shrimpkin - 2015-07-07

    That is one way to add external thumbnails.
    /path/file.ext
    /path/file.jpg

    Looking at the git versions, it appears to support external thumbnails since at least v1.0.18 and is dependant on -ljpeg library. No mention of any version requirements.

    Run in debug mode and check the ${db_dir}/art_cache directory to see if minidlna is actually importing the thumbnails.

     
    • Giovanni Santini

      Actually,
      I had no directory such as ${db_dir}/art_cache (/var/cache/minidlna/art_cache) but I found that creating thumbnails as you said (and I did :P) works fine.
      The misterious thing is that I had to force the recreation of the database, that can be achieved by:
      - sudo service minidlna force-reload (on sysvinit systems, as Ubuntu 12.04)
      - sudo minidlna{,d} -R (choose between minidlna/minidlnad)

      So, the steps are:
      - Go in the video directory in which you want thumbnails
      - Create thumbnails (ex. ffmpegthumbnailer -i file.ext -o file.jpg)
      - Restart minidlna with the database rebuild (see 5 lines above)

      To remove thumbnails:
      - Delete *.jpg thumbnails that are not needed.
      - Restart minidlna with database rebuild (see above)

       
  • Shrimpkin

    Shrimpkin - 2015-07-08

    You wouldn't get an art_cache directory if your thumbnails are less than 160x160 but thought it might be an easy check. Otherwise, you could of used sqlite3 to check: sqlite3 ${db_dir}/files.db 'select * from album_art'

    Looks like you found a workaround but you don't need those steps if you have inotify enabled and working properly. Try a newer version of minidlna for possible bug fixes.

     

Log in to post a comment.