NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 22 23 24 25 26 … 93 Next »
Generating Video Thumbnails

 
  • 0 Vote(s) - 0 Average
Generating Video Thumbnails
philcooling
Offline

Junior Member

Posts: 15
Threads: 5
Joined: Nov 2009
#1
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!
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2009-11-10, 02:45 PM
philcooling Wrote: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!).
I'm sure there's a ctrl-??? command to create a thumbnail at the point you're currently watching. I can't remember what it is though - probably worth a forum/google search.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2009-11-10, 04:03 PM
Some mention here http://forums.nextpvr.com/showthread.php...post264023

Control-T looks like it may generate one? (and uses ffmpeg to make it).
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2009-11-10, 10:00 PM
yep,but it doesn't scan all your old dirs to make them..you have to be watching it at the time..
you can also put that cmd line in postprocessing to have it snap future shows..Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#5
2009-11-10, 10:23 PM
pBS Wrote:yep,but it doesn't scan all your old dirs to make them..you have to be watching it at the time..
you can also put that cmd line in postprocessing to have it snap future shows..Smile

All I would get would be adverts. At least you get to choose your clip when viewing Smile
philcooling
Offline

Junior Member

Posts: 15
Threads: 5
Joined: Nov 2009
#6
2009-11-11, 01:47 PM
McBainUK Wrote:I'm sure there's a ctrl-??? command to create a thumbnail at the point you're currently watching. I can't remember what it is though - probably worth a forum/google search.

I was aware of Ctrl-T but I'm not gonna sit through 100+ videos and manually hit it! I wanted something I could point at my files and forget about!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,443
Threads: 963
Joined: May 2006
#7
2009-11-11, 06:51 PM
I think the standard now is not to extract your own images, and instead use a consistent naming convention, maybe try tvrename or JavaWiz's tool, and connect online to tvdb to get season and episode images, fanart and metadata.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 2,061 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,766 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 7,806 2021-03-07, 09:20 PM
Last Post: Syler
  Resuming a video imilne 28 15,853 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,639 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,859 2015-08-06, 10:43 PM
Last Post: sub
  Inset Video - Stop mvallevand 2 2,263 2013-08-07, 09:57 PM
Last Post: mvallevand
  Video Library Fanart Transparency tieke 7 4,364 2013-01-09, 08:23 AM
Last Post: tieke
  NMT Video Playback - does it receive start/stop events psycik 8 3,862 2012-07-15, 10:01 PM
Last Post: mvallevand
  Resume or Restart dialog for video psycik 6 3,388 2011-12-22, 02:52 AM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode