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
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#11
2007-07-28, 11:04 PM
oh and add -deinterlace as it makes for better snaps...forgot about that..Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#12
2007-07-29, 01:44 AM
Strangely by adjusting the order of the parameters to the following made it fast. Same paremeters, different order.

Code:
<CaptureScreenshotCmdLine>-y -ss {SECONDS} -vframes 1 -i "{SOURCE_FILE}" -f image2 -s 160x120 "{DEST_FILE}"</CaptureScreenshotCmdLine>
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#13
2007-07-29, 01:46 AM
mrxtc89117 Wrote: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
Are you using the built in mechanism? If so, it should produce a file with the filename the same as the video but .jpg extension.
mrxtc89117
Offline

Junior Member

Posts: 43
Threads: 5
Joined: Sep 2006
#14
2007-07-29, 02:54 AM
Yes, these are the parameters I use and it works very well. Thanks

ffmpeg -y -ss 10 -vframes 1 -i "%*.mov" -f image2 -s 200x130 "%*.jpg"

Now if I can just figure out how to write a batch file and go into all the subdirectories and run this command for each video file it sees.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#15
2007-07-29, 08:03 AM
mrxtc89117 Wrote:Yes, these are the parameters I use and it works very well. Thanks

ffmpeg -y -ss 10 -vframes 1 -i "%*.mov" -f image2 -s 200x130 "%*.jpg"

Now if I can just figure out how to write a batch file and go into all the subdirectories and run this command for each video file it sees.

What would be very cool would be if one of you could X-ref this with Comskips estimating routines, as the frames of one of the show lead-ins that comskip recognizes would make a great icon (for me).

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#16
2007-07-30, 08:01 PM
sub Wrote:Strangely by adjusting the order of the parameters to the following made it fast. Same paremeters, different order.

Code:
<CaptureScreenshotCmdLine>-y -ss {SECONDS} -vframes 1 -i "{SOURCE_FILE}" -f image2 -s 160x120 "{DEST_FILE}"</CaptureScreenshotCmdLine>

ahhh,it's cuz you had the vframes 1 after the input file..
as i understand it, the new ffmpeg syntax changed to having all parameters before their intended target, so the input options have to be before the -i and all output opts just before the output, or at least has to be after the input..

[input opts] -i file [output opts] outputfile
so the vframes needs to be before the input, and sizing after the input..

glad it works well for you now..really comes in handy..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#17
2007-07-31, 07:11 AM
in showburner i use that very thing..[actually i tried out several methods in fallback to lesser accurate ones]
i had to write a program to convert the comskip times to seconds so i could use with this parameter, also i made one where you would watch the video to where you wanted the snap in GPBVR and stop, the run batch and it snaps last viewed position..Big Grin [search the forums, i made a complete snap maker batch for use from video library transcode buttons,you can select your snap points]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#18
2007-07-31, 07:52 AM (This post was last modified: 2007-07-31, 09:02 AM by pBS.)
jksmurf Wrote:What would be very cool would be if one of you could X-ref this with Comskips estimating routines, as the frames of one of the show lead-ins that comskip recognizes would make a great icon (for me).

k.

Your wish is my command...Big Grin [actually wanted to make one of these anyways]
batch file only.,..Smile
usage: save as snap.bat and type [snap.bat filename.mpg]
it will save as filename.jpg in that dir,at native mpeg resolution,a snap 2 secs after first commercial ends..
instructions in batch for adjustments..Smile

Code:
@echo off
cls
rem     Set "line" to comskip break # you want, starting at line 3 for first commercial..4 for second,etc..
set line=4
set seconds=0
if exist "%~dpn1.txt" for /f "usebackq tokens=1,2 skip=%line%" %%c in ("%~dpn1.txt") do (
::          Adjust below line for exact snap time, i use + 2 as + 0 usually is black frame..
set /a seconds= %%d * 100 / 2997 + 2
goto :next
)    
:next
echo.
Echo Snapping from %seconds% into movie.
echo.
"C:\Program Files\DEVNZ\Gbpvr\Third Party\FFmpeg\ffmpeg.exe"  -y -ss %seconds% -vframes 2  -i "%~1" -f image2  "%~dpn1.jpg"
echo.
echo Done! "%~dpn1.jpg" %seconds%
rem START "image" "%~dpn1.jpg"
rem use the START image line to auto-view it afterwards...

Enjoy!
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
mila06
Offline

Member

Posts: 210
Threads: 47
Joined: Dec 2005
#19
2007-07-31, 12:55 PM (This post was last modified: 2007-08-01, 10:52 AM by mila06.)
mrxtc89117 Wrote:Now if I can just figure out how to write a batch file and go into all the subdirectories and run this command for each video file it sees.

If you use pBS' snap.bat, this code will go through dir and sub-dirs and create a jpg for all recordings/videos:

Code:
FOR /R D:\Download\video\ %%G IN (*.mpg *.avi *.wmv *.mpeg *.mov) DO D:\Download\video\snap "%%G"
Michael Larsen

[SIZE="1"]HTPC:
Asus AMD 785G- M4A785TD-M/EVO, ATI 4200 HDMI,
AMD Phenom II X2 550 - 3.0 GHz,
2 GB Ram, 500 GB Seagate Barracuda
Terratec Cinergy C PCI HD, NVidia PureVideo, Cyberlink
Windows 7 ULT, NPvr v1.5.33[/SIZE]
Website
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#20
2007-07-31, 01:47 PM
pBS Wrote:Your wish is my command...Big Grin [actually wanted to make one of these anyways]
batch file only.,..Smile

Enjoy!

Thank you pBs :-) ..I'll give it a whirl ..

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 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,100 2012-02-03, 02:41 AM
Last Post: slowtech
  Two Channels Without Video skycyclepilot 5 3,583 2011-10-29, 07:49 PM
Last Post: sub
  Zehd's Video Library Slick Skin Snooze 0 2,257 2011-09-03, 01:09 AM
Last Post: Snooze
  New Machine (probably old problems), Video Render Options jvcleave 12 5,532 2011-02-01, 08:37 AM
Last Post: stustunz
  No Video in PVRX2 GUI TonySmith35 13 5,081 2011-01-09, 10:31 PM
Last Post: steevo
  0 sized files pjm460 4 2,084 2010-12-17, 05:15 PM
Last Post: sub
  Zero-size recording files rawlings471 1 1,684 2010-12-05, 04:12 PM
Last Post: sub
  original files not deleting David B 2 1,770 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,074 2010-11-04, 11:37 PM
Last Post: Jwbrit
  Resolution Issues when re-encoding captured video bgrieb 5 2,993 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