llgal icon indicating copy to clipboard operation
llgal copied to clipboard

Allow for thumbnail_create_command to create thumbnails for movies too

Open miiichael opened this issue 4 years ago • 2 comments

I guess this is a feature request. Any chance that llgal could be given the option of using thumbnail_create_command to create thumbnails for movies (and not just images)? I feel that updating my wrapper script that I'm already using is likely cleaner than running a separate pass to create custom thumbnails prior to running llgal.

Maybe it could take the form of a image_thumbnail_extensions and movie_thumbnail_extensions that would represent the subsets of image_extensions/movie_extensions for which llgal would attempt to generate thumbnails for. I suppose something similar could happen for scaled images too, for orthogonality (though I personally don't need this bit :stuck_out_tongue:).

miiichael avatar Apr 13 '20 05:04 miiichael

So you're saying there are tags in videos that we could extract just like for images?

bgoglin avatar Apr 13 '20 06:04 bgoglin

Well. In the absence of EXIF/IPTC and friends, there is certainly a lot less metadata available for videos then there are for images. But I had thumbnail creation in mind rather than metadata handling...

But to continue - less is not none. :stuck_out_tongue:

For example, my Canon 500D makes the following available (via ffprobe):

  Metadata:
    major_brand     : qt  
    minor_version   : 537331968
    compatible_brands: qt  CAEP
    creation_time   : 2010-04-14T12:29:51.000000Z
  Duration: 00:01:27.67, start: 0.000000, bitrate: 27334 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/bt709), 1280x720, 26626 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc (default)
    Metadata:
      creation_time   : 2010-04-14T12:29:51.000000Z
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, mono, s16, 705 kb/s (default)
    Metadata:
      creation_time   : 2010-04-14T12:29:51.000000Z

Similarly, from my OM-D EM5 II:

  Metadata:
    major_brand     : qt  
    minor_version   : 537986816
    compatible_brands: qt  
    creation_time   : 2020-02-10T21:22:38.000000Z
  Duration: 00:00:07.01, start: 0.000000, bitrate: 31124 kb/s
    Stream #0:0(jpn): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080 [SAR 1:1 DAR 16:9], 28344 kb/s, 59.94 fps, 59.94 tbr, 180k tbn, 119.88 tbc (default)
    Metadata:
      creation_time   : 2020-02-10T21:22:38.000000Z
      timecode        : 00:10:54:00
    Stream #0:1(jpn): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2020-02-10T21:22:38.000000Z
      timecode        : 00:10:54:00
    Stream #0:2(jpn): Data: none (tmcd / 0x64636D74), 1 kb/s (default)
    Metadata:
      creation_time   : 2020-02-10T21:22:38.000000Z
      timecode        : 00:10:54:00

(mind you, both cameras seem to get the timestamps wrong, claiming UTC rather than local time)

miiichael avatar Apr 13 '20 10:04 miiichael