2009-11-10, 01:41 PM
I'm still pretty new at this so I hope I haven't wasted my time duplicating functionality which is already in GBPVR!
Anyway, I'm looking at moving over to GBPVR from Snapstream's BeyondTV product and I had a large number of video files I was using in BeyondTV which I wanted to have available in GBPVR's Video Library (the default plugin) but was disappointed when there appeared to be no easy way to generate thumbnails for all the videos automatically (if there is, I'd like to know about it!).
So, after a bit of searching I discovered that FFMPEG can generate JPGs from a wide range of video files so I wrote a little VBScript to do this and I've attached it here for anyone else to look at and use.
The script first finds your CONFIG.XML file and reads out the locations you have defined in the VideoLibrary configuration. It then scans each of the locations in turn, working through all the subdirectories to locate Video files (currently AVI, MPG, MPEG, MOV & WMV) and it then runs FFMPEG to generate a still image from that file which it places in the same folder as the Video (is there a better place to put these???). Finally, it randomly picks one of these files to be the "folder.jpg" - i.e. the image you see before you open the given folder.
The config of the script is straight-forward - in fact if you have used the default install options there is no config needed! Otherwise all you need to do is tell it where to find the CONFIG.XML file and the FFMPEG.exe file.
This has been tested on Windows XP SP3 running GBPVR 1.4.7.
Please reply with any thoughts/comments/questions!
Anyway, I'm looking at moving over to GBPVR from Snapstream's BeyondTV product and I had a large number of video files I was using in BeyondTV which I wanted to have available in GBPVR's Video Library (the default plugin) but was disappointed when there appeared to be no easy way to generate thumbnails for all the videos automatically (if there is, I'd like to know about it!).
So, after a bit of searching I discovered that FFMPEG can generate JPGs from a wide range of video files so I wrote a little VBScript to do this and I've attached it here for anyone else to look at and use.
The script first finds your CONFIG.XML file and reads out the locations you have defined in the VideoLibrary configuration. It then scans each of the locations in turn, working through all the subdirectories to locate Video files (currently AVI, MPG, MPEG, MOV & WMV) and it then runs FFMPEG to generate a still image from that file which it places in the same folder as the Video (is there a better place to put these???). Finally, it randomly picks one of these files to be the "folder.jpg" - i.e. the image you see before you open the given folder.
The config of the script is straight-forward - in fact if you have used the default install options there is no config needed! Otherwise all you need to do is tell it where to find the CONFIG.XML file and the FFMPEG.exe file.
This has been tested on Windows XP SP3 running GBPVR 1.4.7.
Please reply with any thoughts/comments/questions!