NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 486 487 488 489 490 … 1231 Next »
thumbnails from video files

 
  • 0 Vote(s) - 0 Average
thumbnails from video files
mrxtc89117
Offline

Junior Member

Posts: 43
Threads: 5
Joined: Sep 2006
#1
2007-07-28, 10:00 AM
Is there a program to create thumbnails from new recordings or video files? I can probably use ffmpeg or memcoder but I am not knowledgeable enough in batch files to transverse all directories and create thumbnails with the same name and all. Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#2
2007-07-28, 05:10 PM
While watching an existing video in PVRX2.exe (not live tv), you can press Ctrl-T to create a thumbnail. This is ok for anywhere in the first few minutes of a video, but I wouldnt recommend using it for further into the video. This is because it uses ffmpeg which has to decode the file up to that point.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2007-07-28, 08:10 PM (This post was last modified: 2007-07-28, 08:37 PM by pBS.)
i made a batch available on the forums that will do just that...
it also can make them at any point in the video, 8 hr recordings no problem..
[i used to use 2 instances,1 to seek to proper position,and then 1 to take the snap..] ffmpeg bug..
now it works fine at any point with this cmdline..very fast too.. [about 1 second for snap at 50 mins in]
Sub,what is your ffmpeg line for this?
Code:
ffmpeg  -y -ss 3000 -vframes 1 -i %input%  -f image2 -s 720x480 output.jpg
replace "%input%" with your input file name, and "output.jpg" with your output filename,and 3000 with #seconds into the movie that you want the snap..
works great for me..Big Grin
[used in showburner plugin util]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#4
2007-07-28, 08:17 PM
pBS Wrote:i made a batch available on the forums that will do just that...
it also can make them at any point in the video, 8 hr recordings no problem..
How long does it take if you take the screenshot from 7 hours into that 8 hr recording? I'm just using ffmpeg in a similar way to you above, but it seemed to want to decode the entire stream up to the point of the screenshot. I maybe missing a command line argument that tells it to skip this?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#5
2007-07-28, 08:50 PM
pBS Wrote:i made a batch available on the forums that will do just that...
it also can make them at any point in the video, 8 hr recordings no problem..
[i used to use 2 instances,1 to seek to proper position,and then 1 to take the snap..] ffmpeg bug..
now it works fine at any point with this cmdline..very fast too.. [about 1 second for snap at 50 mins in]
Sub,what is your ffmpeg line for this?
Code:
ffmpeg  -y -ss 3000 -vframes 1 -i %input%  -f image2 -s 720x480 output.jpg
replace "%input%" with your input file name, and "output.jpg" with your output filename,and 3000 with #seconds into the movie that you want the snap..
works great for me..Big Grin
[used in showburner plugin util]
Its configurable in config.xml. The defaults are:

Code:
[SIZE=2][COLOR=#0000ff]<[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]CaptureScreenshotCmdLine[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>[/COLOR][/SIZE][SIZE=2]-y -i "{SOURCE_FILE}" -s 160x120 -ss {SECONDS} -vframes 1 -f image2 "{DEST_FILE}"[/SIZE][SIZE=2][COLOR=#0000ff]</[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]CaptureScreenshotCmdLine[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]>
[/COLOR][/SIZE]

Whay are you using two instances exactly?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#6
2007-07-28, 09:10 PM
i don't use 2 anymore, it was a ffmpeg bug that would cause it to seek instead of just goto the snap point, now fixed with the new syntax ffmpeg..
[when they changed to using +,etc in syntax]

i'll see if i can't find a long mpeg to try it on..but i'm pretty sure it's fixed now..
used to be 50 mins in would take a loooong time, now it only takes a second..
[btw i edited sample above to simplify]
i used to pipe one ffmpeg into another, first one would send only a segment to second one which would do the snap, first part not needing to seek to position, as it's outputting mpeg, and second only recieving small mpeg to seek thru, thus shortening the seek..

but all fixed now in your current version of ffmpeg..[what i'm testing with]

now cleaning up cmds and checking on live in progress recording..4gig in, only about 3-4 secs..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#7
2007-07-28, 09:16 PM
Strange that your command line is the same as mine, but when I run it from a command prompt it takes a long time.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#8
2007-07-28, 09:25 PM
just did a 13 gig HD movie on a network share, snapped 7000 seconds in [about 2 hrs] in about 3-4 secs total.. Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mrxtc89117
Offline

Junior Member

Posts: 43
Threads: 5
Joined: Sep 2006
#9
2007-07-28, 10:33 PM (This post was last modified: 2007-07-28, 10:58 PM by mrxtc89117.)
What is the version of ffmpeg that you are using. I have found that certain versions do not take the same commandline options such as -f or -img. Also, the output seems to be always named with a number such as img00001.jpg. I want to name it the same as the video filename so it comes out as a thumbnail image in gbpvr/pvrx2. Thanks

Edit: That commandline works and works really fast. I'm going to use it for now for my downloaded trailers in a batchfile.

startconvert.bat:
call the exe to download the trailers then
for %%i in (*.mov) do call Convert.bat %%~ni

convert.bat:
IF NOT EXIST "%*.jpg" ffmpeg -y -ss 30 -vframes 1 -i "%*.mov" -f image2 -s 100x130 "%*.jpg"

Thanks.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#10
2007-07-28, 10:44 PM (This post was last modified: 2007-07-28, 11:00 PM by pBS.)
aren't you in PAL land? maybe need some params for that?
i know ffmpeg defaults to ntsc if not told, but it auto-detects PAL really well...Smile
i made sure i'm using the ffmpeg from gbpvr ver 1.0.8..

the only huge one i have is on share, on occasion it takes 22 secs, but never more than that..and usually it's 4 secs..

just did a baseball game i'm watching, 8000 seconds snap took 2 seconds over network..saved back to network..Smile
9 gig file, in progress...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,052 2012-02-03, 02:41 AM
Last Post: slowtech
  Two Channels Without Video skycyclepilot 5 3,525 2011-10-29, 07:49 PM
Last Post: sub
  Zehd's Video Library Slick Skin Snooze 0 2,238 2011-09-03, 01:09 AM
Last Post: Snooze
  New Machine (probably old problems), Video Render Options jvcleave 12 5,409 2011-02-01, 08:37 AM
Last Post: stustunz
  No Video in PVRX2 GUI TonySmith35 13 4,966 2011-01-09, 10:31 PM
Last Post: steevo
  0 sized files pjm460 4 2,046 2010-12-17, 05:15 PM
Last Post: sub
  Zero-size recording files rawlings471 1 1,653 2010-12-05, 04:12 PM
Last Post: sub
  original files not deleting David B 2 1,719 2010-11-28, 07:22 PM
Last Post: David B
  Attempts to play .dvd files in Video Library results in PVRX2 not responding Jwbrit 2 2,037 2010-11-04, 11:37 PM
Last Post: Jwbrit
  Resolution Issues when re-encoding captured video bgrieb 5 2,937 2010-11-02, 03: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