PDA

View Full Version : Thumbnails and/or contact sheet for avi/mkv/ogm


quake74
5th November 2004, 14:54
I was looking for a program that is able to create contact sheets for video. I put in a CD, the program scans it and produces an image which contains a frame form each video (possibly not the first one which is gonna be black) with the name of the file, and maybe other infos. Anthing out there? I could do it with windows (just open the folder with explorer with thumbnail view) but the thumbnails do not work for mkv/ogm (can anyone still download the file refenced in this old thread (http://forum.doom9.org/showthread.php?threadid=57549)? ) and for avi it's the first frame, which is not good. Any help?

filewalker
5th November 2004, 19:51
for MKV you can use Matroska Shell Extension (http://www.matroska.org/downloads/shellextension/index.html) to watch thumbnails in Explorer.

Try it...it works for most people here.
(Although it doesn't work for me, I 'm getting an error message everytime)

For OGM/AVI there,'s no solution for thumbnails in explorer...you can use a HTPC program.

Cu

LeMoi
17th November 2004, 10:59
Version 2.6 doesn't display thumbnails, he 2.7 corretcs this, but in fact it shows the last attachment (by alphabetical order, i think) if it's a picture, but if there is no attachment, it show the picture you want (for example the 5th frame), but not correctly corlored, i have awful green frames :D

quake74
17th November 2004, 12:35
Well, I can tell it's not an easy problem. I though it was because I see all these people posting vidcaps (sometimes also 4 frames in one image) but I guess there's no automatic method.... :eek:

quake74
17th November 2004, 23:07
So, I couldn't sleep. Well, I worked a bit an produced a stupid script using bash (I have cygwin on windows) and mplayer to almost do what I what. I'd like to share it:

for ff in "$@"; do
/cygdrive/c/Program\ Files/mplayer/mplayer.exe -ss 15 -ao null -vo jpeg -frames 5 "$ff" ;
mv 00000002.jpg "$ff.001.jpg" ;
/cygdrive/c/Program\ Files/mplayer/mplayer.exe -ss 30 -ao null -vo jpeg -frames 5 "$ff" ;
mv 00000002.jpg "$ff.002.jpg" ;
/cygdrive/c/Program\ Files/mplayer/mplayer.exe -ss 45 -ao null -vo jpeg -frames 5 "$ff" ;
mv 00000002.jpg "$ff.003.jpg" ;
/cygdrive/c/Program\ Files/mplayer/mplayer.exe -ss 60 -ao null -vo jpeg -frames 5 "$ff" ;
mv 00000002.jpg "$ff.004.jpg" ;
/cygdrive/c/Program\ Files/mplayer/mplayer.exe "mf://$ff.*.jpg" -vo jpeg -vf tile=2:2:4:4 ;
rm -f "$ff.001.jpg" "$ff.002.jpg" "$ff.003.jpg" "$ff.004.jpg";
mv 00000001.jpg "$ff.jpg";
done


I use it like "./script /dir/to/videos/*" and it produces a bunch of jpgs each one with 4 frames taken at 15, 30, 45 and 60 secs.
It's good because mplayer plays anything I trow at it (MKV,OGM, etc). It's bad because it's a really ugly script. I'd like to extract frames at (say) 20%, 40%, 60%, 80% of the video files, but mplayer doesn't understand percentiles. Suggestions?