2006-09-22, 07:38
This is a way of getting a thumbnail for videos that show a screenshot from the vid. I find it useful for folders of TV shows, where I forget which ep I'm up to if I just leave it as the name foo-s01-e01.avi
You need ffmpeg on your PC, preferably in your path - put the exe in windows\system32 or add its location to your path.
Then open a command prompt, go to the folder containing your vids and do
That goes through all the avi files in the folder and creates a jpeg (actually with a .tbn extension for XBMC) of the frame 5 seconds in, with the same name as the avi. Then set that folder in XBMC to show in thumbs view and you're away!. Alter the number after '-ss' to change how far in you want the grab taken. Change *.avi to be whatever the extension of your vids is.
Not rocket science, but I found it useful and thought I'd share.
You need ffmpeg on your PC, preferably in your path - put the exe in windows\system32 or add its location to your path.
Then open a command prompt, go to the folder containing your vids and do
Code:
for %i in (*.avi) do ffmpeg -i %i -f mjpeg -t 0.001 -ss 5 -y %~ni.tbn
That goes through all the avi files in the folder and creates a jpeg (actually with a .tbn extension for XBMC) of the frame 5 seconds in, with the same name as the avi. Then set that folder in XBMC to show in thumbs view and you're away!. Alter the number after '-ss' to change how far in you want the grab taken. Change *.avi to be whatever the extension of your vids is.
Not rocket science, but I found it useful and thought I'd share.