Messages - Nod5 [ switch to compact view ]

Pages: prev1 ... 227 228 229 230 231 [232] 233 234next
1156
Mini-Reviews by Members / Re: List of disc catalogers
« on: March 16, 2007, 05:50 AM »
Great list. One important feature for these tools is database import/export capabilities so any info on that would be appreciated.

Advanced Disk Catalog hasn't been updated since 2004. It has many good features but lack some basic ones. Like being able to copy the name of a file in the database. I have made a AutoHotKey script to get around that, so if someone else is using ADC and wants to copy filenames then check this out. It puts the name of the selected disc/folder/file in the clipboard when middle mouse button is clicked. The script exits automatically when Advanced Disk Catalog is closed.

SetTimer, ADC, 2000

ADC:
IfWinNotExist, ahk_class ADCCLASS_ELCOM
 exitapp
return

MButton::
IfWinActive, ahk_class ADCCLASS_ELCOM
goto copyselected
return

copyselected:
SendMessage, 0x111, 204, 0, , ahk_class ADCCLASS_ELCOM
winwait, ahk_class #32770
ControlGetText, x, Static4, ahk_class #32770
if x = Comment
ControlGetText, x, Static5, ahk_class #32770
if x = Last scan
ControlGetText, x, Edit1, ahk_class #32770
WinClose, ahk_class #32770, Comment
clipboard = %x%
return

1157
Nah, I don't have time to watch the videos. I'm busy archiving them properly  ;D
More seriously, I've used VLC for a long time and I think I'll stick to that. But Media Player Classic has many of the same qualities it seems (no fancy, bloated GUI, works with almost all files and so on). Thanks again for bringing it up. :Thmbsup:

1158
Nighted,
Thanks a lot! Media Player Classic suits my needs.

Media Player Classic
http://sourceforge.net/projects/guliverkli/
has the image grabbing features I requested (handles many video formats, interval screencaps of the sort "X number of frameshots", timestamps, specification of output file width) and it generates a contact sheet.

Its command line parameters doesn't include commmands for contact sheet creation. But I wrote an AutoHotkey script that allows batch usage.

edit: old code hidden
Spoiler
; AutoHotkey script to generate image contact sheets from a batch of video files


; --- INSTRUCTIONS ----
; 1. get Media Player Classic (MPC).
;    Load a video in MPC, then do File > Save Thumbnails...
;    Then set parameters in the save dialog (row/line, width, file format) and save the file.
;    The entered parameters now become default.
; 2. Put full paths to all target video files in flist.txt (one path on each line)
; 3. Set script parameters
; 4. Run script
;    note: don't use the computer for other purposes while running the script
;    since the script sends keyboard input to the active window



; --- SCRIPT PARAMETERS ----
xmpcpath =
xflistpath =
xoutputfolder =
xoutput_to_same_folder_as_source = 0
xsave_thumb_dialog_win_title =
xoutputfileprefix =
xoutputfilesuffix =

;examples:
; xmpcpath = C:\program\MPC\mplayerc.exe
;xflistpath = C:\some folder\flist.txt
;xoutputfolder = C:\some folder\
;xoutput_to_same_folder_as_source = 1   --> yes
;xoutput_to_same_folder_as_source = 0   --> no
; xsave_thumb_dialog_win_title = Spara som   
; needed since save thumbnail dialog window title varies with install language
;xoutputfileprefix = some_prefix_
;outputfilesuffix = some suffix
;----------------------------


; --- ACTUAL SCRIPT START ----
FileRead, xflist_contents, %xflistpath%

;--------------------------------------------
Loop, parse, xflist_contents,`n
{
If A_LoopField =
 continue   ;skip empty line at end

xfpath = %A_LoopField%
SplitPath, xfpath, xfname ,xffolder,,xfnameNoExt
run %xmpcpath% "%xfpath%"

WinWait,ahk_class MediaPlayerClassicW
Sleep, 1000
SendInput {Space}
SendInput !F
SendInput {Up 7}
SendInput {Enter}
WinWaitActive, %xsave_thumb_dialog_win_title%

If xoutput_to_same_folder_as_source = 1
 xoutputfolder = %xffolder%

SendInput %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%
SendInput {Enter}

Loop
{
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.jpg
break
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.bmp
break
sleep 1000
}
WinClose, ahk_class MediaPlayerClassicW
WinWaitClose, ahk_class MediaPlayerClassicW
}
;--------------------------------------------

I did a testrun on a couple of video files without problems. Will try to run it on all my videos later tonight.

edit:
I just ran the script on 30+ video files and all seems to work fine. I also updated the script a bit. I edited this post so that the old script is hidden (above). Here's the new script:

; AutoHotkey script to generate image contact sheets from a batch of video files in Media Player Classic

xinstructions =
(
--- INSTRUCTIONS ----
1. Get Media Player Classic, http://sourceforge.net/projects/guliverkli/
   mpplayerc.exe path: C:\program\MPC (or) Scriptfolder (or) specify in script parameters
2. Make flist.txt with list of video file paths (one path per line)
   flist.txt path: Scriptfolder (or) specify in script parameters
3. Set other script parameters (or use defaults)
4. Run script
)

; --- SCRIPT PARAMETERS --------------------------------
IfExist, C:\program\MPC\mplayerc.exe
 xmpcpath = C:\program\MPC\mplayerc.exe
IfExist, %A_ScriptDir%\mplayerc.exe
 xmpcpath = %A_ScriptDir%\mplayerc.exe

; ------------------------ path to media player classic
; xmpcpath =
; ------------------------

If xmpcpath =
{
msgbox, error: mpplayerc.exe not found.
exitapp
}
IfExist, %A_ScriptDir%\flist.txt
 xflistpath = %A_ScriptDir%\flist.txt

; ------------------------ path to flist.txt
; xflistpath =
; ------------------------

If xflistpath =
{
FileSelectFile, xflistpath,3,,Select textfile that contains list of video file paths
if xflistpath =
exitapp
}
; ------------------------ other script parameters
xoutputfolder = %A_Desktop%
xoutput_to_same_folder_as_source = 1
xcreate_even_if_contactsheet_exists = 0
xoutputfileprefix =
xoutputfilesuffix =_cs
xrows = 7
xcols = 3
xwidth = 1000
; ------------------------
;examples:
;xoutputfolder = C:\some folder\
;xoutput_to_same_folder_as_source = 1   --> yes --> no need to set xoutputfolder
;xoutput_to_same_folder_as_source = 0   --> no
;xcreate_even_if_contactsheet_exists = 0 --> don't create if already exists (= file with matching file name exists)
;xcreate_even_if_contactsheet_exists = 1 --> create new (overwrites outputfolder)
;xoutputfileprefix = some_prefix_
;outputfilesuffix = some suffix
;xrows = 7
;xcols = 3
;xwidth = 1000
;----------------------------


; --- ACTUAL SCRIPT START ----
msgbox, 1,,
(
%xinstructions%

current parameters:
xmpcpath = %xmpcpath%
xflistpath = %xflistpath%
xoutputfolder = %xoutputfolder%
xoutput_to_same_folder_as_source = %xoutput_to_same_folder_as_source%
xcreate_even_if_contactsheet_exists = %xcreate_even_if_contactsheet_exists%
xoutputfileprefix = %xoutputfileprefix%
xoutputfilesuffix = %xoutputfilesuffix%

Click OK to run script
)
IfMsgBox, Cancel
exitapp

FileRead, xflist_contents, %xflistpath%

;--------------------------------------------
Loop, parse, xflist_contents,`n
{
If A_LoopField =
 continue   ;skip empty line at end

xfpath = %A_LoopField%
SplitPath, xfpath, xfname ,xffolder,,xfnameNoExt

If xoutput_to_same_folder_as_source = 1
 xoutputfolder = %xffolder%

If xcreate_even_if_contactsheet_exists = 0
{
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.jpg
continue
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.bmp
continue
}

run %xmpcpath% /open "%xfpath%"
WinWait,ahk_class MediaPlayerClassicW
#WinActivateForce
WinActivate, ahk_class MediaPlayerClassicW
WinWaitActive, ahk_class MediaPlayerClassicW
Sleep, 1000

;0x111=command   wparam 888 lparam 0 = open save thumbs...
SendMessage, 0x111, 808, 0, , ahk_class MediaPlayerClassicW

WinWait, ahk_class #32770,Image width:,4
IfWinNotExist, ahk_class #32770,Image width:
{
SendMessage, 0x111, 808, 0, , ahk_class MediaPlayerClassicW   ;2nd try
WinWait, ahk_class #32770,Image width:
}

ControlSetText, Edit1,%xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%, ahk_class #32770,Image width:
ControlSetText, Edit2, %xrows%, ahk_class #32770,Image width:
ControlSetText, Edit3, %xcols%, ahk_class #32770,Image width:
ControlSetText, Edit4, %xwidth%, ahk_class #32770,Image width:
ControlClick, Button2, ahk_class #32770,Image width:

Loop
{
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.jpg
break
IfExist, %xoutputfolder%\%xoutputfileprefix%%xfnameNoExt%%xoutputfilesuffix%.bmp
break
sleep 1000
}

WinClose, ahk_class MediaPlayerClassicW
WinWaitClose, ahk_class MediaPlayerClassicW
}
;--------------------------------------------

1159
mrvampi,
thanks a lot! Image Grabber II.NET seem to have many (most) of the features I was looking for. I'll try it out. Also, since I now have a name of one application in the "genre" I'll do some more searches and see if any similar applications turn up. Will report back here if I do.

apparently there's three programs (or three versions of one program?) by the same author: Image Grabber I, II and II.NET. The first two can still be downloaded through archive.org, http://web.archive.org/web/20060527192354/www45.brinkster.com/antworkz/ .

edit:
I still haven't had time to actually test ImageGrab II.NET yet but here's a follow up anyway...

First, I think I initially had trouble finding what I was looking for because I actually want two distinct things:
1. an image grabber (a.k.a. frameshot/screenshot maker) to output individual frameshot images from a video file
2. a contact sheet creator that operates on the previously generated frameshots

ImageGrab II.NET seems to do both which it great. But as mrvampi mentioned it doesn't seem to handle batch mode.

With the help of some better search phrases I found some alternatives that I'll also try.

IMAGE GRABBERS:
------------------
FrameShots (30$, free trial)
http://www.frame-shots.com/download.htm

Has command-line support so batch execution is possible. Options include: interval (both "frameshot every N seconds" and "X number of frameshots" are possible), timestamps, customizable filenaming, output file size and so on. In short, all image grabbing features I wanted. However, it does not seem to create a "contact sheet". It just creates multiple individual frame shot images. Contact sheet making isn't on the "future features" list either, http://www.frame-shots.com/future.htm

CONTACT SHEET CREATORS:
----------------------
this thread in alt.comp.freeware
http://groups.google.se/group/alt.comp.freeware/browse_thread/thread/294c532e13371c97/769b541bb47e593b?lnk=st&q=frameshots&rnum=14#769b541bb47e593b
included a link to a standalone .exe application that generates contact sheets, Image Joiner
http://www.puretna.com/imagejoiner.php (warning: the application page is hosted by an adult video file sharing site of some sort. I haven't tried it yet and so have no idea if it's malware-free)
It seems to have various useful settings but no command line support or batch mode.

the free image editor GIMP
http://gimp.org/downloads/
Accepts command line usage so batch execution is possible. And there's a contact sheet plugin available, http://registry.gimp.org/plugin?id=7544 .

the free image processing tool GraphicsMagick
http://www.graphicsmagick.org/
Accepts command line usage so batch execution is possible. And can "Create a montage of image thumbnails", http://www.graphicsmagick.org/www/montage.html

At first glance, GraphicsMagick seems most promising for easy automation.

So after trying ImageGrab II.NET I'll check if the combo FrameShots/GraphicsMagick can give an automated workflow.

1160
I have a large amount of TV recordings made with a DVB tv-card. The files are .mpg and in most cases 2+ GB in size. The collection is large enough for me to need a good catalog system. I have a text index but recently got the idea of also making a contact sheet image for each video. By contact sheet I mean one image which contains a mosaic of many small thumbnail images from different parts of the video file. That provides a quick visual overview of the video.

I've recently made a few such contact sheets through a many-steps-process: I manually make screenshots in the application I use to also trim the video (commercial breaks and so on) before archiving it. After that, I use ACDSee to create a contact sheet out of the images.

Now I'm searching for a way to automate contact sheet creation from videos into a simple batch process.

So I want an application with these features:

1. read a video file and make screencaps
 - formats to handle: .mpg and ideally other formats like xvid .avi, .wmv ...
 - interval screencaps: I want a coherent contact sheet format and so want a sure way to get at least X number of screencaps (let's say 30) from any video regardless of it's length. So a "screencap every N seconds" setting might need to be complemented by a "screencap at every 1/N time segment of video".
 - timestamped screencaps: add a (customizable) timestamp to each screencap
(I understand that many automatic screenshots will be less useful than those taken manually but if I make many screencaps some of them will probably still give a good overview of the video.)

2. make contact sheet from screencaps
 - add a user customizable title/header for the contact sheet. Allow variables in header. Example: "$filename -- $year-$month-$day"
 - customizability for the amount of thumbnails, number os rows/lines, size of thumbnails, borders, background ...

3. saving
 - automatically save the generated contact sheet to some preset folder. Allow variables in filename just like for header/title above.
 
4. batch capabilities
 - run 1-3 over a set files/folders.
 - Or at the very least, allow complete command line control so that users can make external scripts to get such batch capabilities.
4 is important for me since I don't have the time to manually or even semi-manually make contact sheets for all older videos.

Can anyone recommend a tool that does all that? Or something that comes close? All suggestions are welcome!

I googled some before writing this post, but didn't find much. One problem is that I'm unsure what the definite keyword for such software is. I write "contact sheet" only because ACDSee call it that. So suggestions for what terms to search for might be useful for me too.

Pages: prev1 ... 227 228 229 230 231 [232] 233 234next
Go to full version