Skip navigation
Currently Being Moderated

Is there a way to obtain a thumbnail from a video in Lightroom?

Apr 23, 2012 2:03 AM

Tags: #video #thumbnail #video_thumbnail

Is there a way to obtain a thumbnail from a video in Lightroom? i.e. a small jpeg file.

 
Replies
  • Currently Being Moderated
    Apr 24, 2012 10:00 AM   in reply to Rob Cole

    Maybe pop a note to Jeffrey Friedl and ask how he does it for his “Video-Asset Management” plug-in.

     

    -Don

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 12:06 PM   in reply to Don McKee

    The Any File plugin uses the Windows and Mac thumbnail services to get thumbnails for any file type they understand, including video (Windows Explorer on Windows, the Quick Look functionality on Mac).  On Mac OS, the command-line tool "qlimage" will retrieve thumbails for any file type.  On Windows, I had to write a small program that accesses the thumbnails of Windows Explorer.  More than a little painful.

     

    But in your case, perhaps you could use "ffmpeg" on Windows and "qlmanage" on Mac.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 24, 2012 12:42 PM   in reply to John R. Ellis

    Looking at the Video Asset Management plugin, it appears that it uses MPlayer, the Netpbm library, and perl scripts to glue it all together:

     

    http://en.wikipedia.org/wiki/MPlayer

    http://en.wikipedia.org/wiki/Netpbm

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2012 10:45 AM   in reply to John R. Ellis

    I just remembered that there is an undocumented module LrPhotoPictureView:

     

    http://forums.adobe.com/message/4140432#4140432

     

    In a quick test, it shows a thumbnail for .mov files in the catalog:

     

    --[[--------------------------------------------------------------------------
    Shows a 400 x 400 thumbnail for the selected file.
    ----------------------------------------------------------------------------]]
    
     local Require = require 'Require'.path ("../common")
    local Debug = require 'Debug'.init ()
    require 'strict'
    
    local LrApplication = import 'LrApplication'
    local LrDialogs = import 'LrDialogs'
    local LrFunctionContext = import 'LrFunctionContext'
    local LrPhotoPictureView = import 'LrPhotoPictureView'
    local LrView = import 'LrView'
    
    local showErrors = Debug.showErrors
     
    local function main (context)
        local f = LrView.osFactory()
        local catalog = LrApplication.activeCatalog ()
        local photo = catalog:getTargetPhoto ()
        
        if #photo == nil then 
            LrDialogs.message ("No photo selected")
            return
            end
            
        local pictureView = LrPhotoPictureView.makePhotoPictureView ({
              width = 400, height = 400, photo = catalog:getTargetPhoto ()})
        local result = LrDialogs.presentModalDialog {
            title = "Thumbnail test", contents = f:column {
                f:static_text {title = photo:getFormattedMetadata ("fileName")},
                pictureView}}
        end
        
    LrFunctionContext.postAsyncTaskWithContext ("test", 
        showErrors (function (context) main (context) end))
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points