Author Topic: Automatic thumbnails  (Read 6155 times)

ferguscan

  • Newbie
  • *
  • Posts: 11
    • View Profile
Automatic thumbnails
« on: September 22, 2007, 04:47:19 am »
Say I install LinuxMCE, and I import a bunt-load of previously-acquired video files.  I want thumbnails for those files, so my media list can look pretty.  Is there a mechanism for automatically generating these thumbnails?

Thanks,

Stuart

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Automatic thumbnails
« Reply #1 on: September 22, 2007, 07:16:17 am »
Say I install LinuxMCE, and I import a bunt-load of previously-acquired video files.  I want thumbnails for those files, so my media list can look pretty.  Is there a mechanism for automatically generating these thumbnails?

Thanks,

Stuart

If you mean "is there a mechanism to scan through the first few frames of each video file and use one of those frames as the thumbnail" then the answers is no I'm afraid. Its a good idea that was discussed a while back over in the Pluto forums but its never been implemented.
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

ferguscan

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Automatic thumbnails
« Reply #2 on: September 22, 2007, 07:44:41 am »
Then I shall implement the feature.

Thanks,

Stuart

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Automatic thumbnails
« Reply #3 on: September 22, 2007, 09:08:27 am »
Then I shall implement the feature.

Thanks,

Stuart

I guess this would need to be integrated into UpdateMedia (which is C++) or possibly into the wrapper scripts around it. If this approach was taken then new mpg content would automatically get 'thumbnailed' shortly after it was added.
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

druke

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Automatic thumbnails
« Reply #4 on: October 13, 2007, 05:01:56 am »
how is this coming? It would be really neat if it is similar to what ubuntu does for video clips.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Automatic thumbnails
« Reply #5 on: October 13, 2007, 07:22:34 am »
try the Cover Art Scan under Media in the Web Admin to try and get some of them at least.

-Thom


druke

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Automatic thumbnails
« Reply #6 on: October 13, 2007, 07:31:48 am »
my concern deals more with movie clips that are just old dvd rips i've saved

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Automatic thumbnails
« Reply #7 on: October 13, 2007, 09:00:27 am »
my concern deals more with movie clips that are just old dvd rips i've saved

As I commented in an earlier post to this thread I think this would be a great feature. But possibly the most obvious place to add the functionality would be in UpdateMedia but that is written in C++. However UpdateMedia builds off of the inotify lib which will 'watch' a file or folder structure for changes and then alert you. Now there is a nice lib that makes inotify accessible from shell scripts called inotifywait which could be used with a few calls to another lib like ffmpeg to grab some frames from the mpeg file whenever a new video file appears in /home/public/data/videos

Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: Automatic thumbnails
« Reply #8 on: October 13, 2007, 09:26:27 am »
I remember that Freevo (www.freevo.org) has this functionality and AFAIK it is simple one command line with mplayer or one of the similar tools.

I'd also really like this feature....

I still cannot get it, why LMCE or better said Pluto decided to use it's own form of metadata. I also don't understand why it has to be in binary form, cause user could also easily read or edit text files.

And also: Freevo had possibility to customize look and ordering view per directory, which was really handy. For instance, you could list files in time reversed order in video surveillance directory...
 
They also have some sort of library for dealing with media files .... MAybe it can be of some help :

http://doc.freevo.org/2.0/SourceDoc/KaaMetadata

regards,

Rob.
« Last Edit: October 13, 2007, 09:35:23 am by bulek »
Thanks in advance,

regards,

Bulek.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Automatic thumbnails
« Reply #9 on: October 13, 2007, 04:30:45 pm »
guys, stop thinking like geeks.

The system that Pluto came up with, is a bit rough around the edges, yes. But it is the right direction to go in. As such, what needs to happen now, is basically a better user interface to work with it.

-Thom