NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 22 23 24 25 26 … 56 Next »
Folder/Show snapshots from remote.. MVP also!

 
  • 0 Vote(s) - 0 Average
Folder/Show snapshots from remote.. MVP also!
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2007-04-12, 01:24 PM (This post was last modified: 2007-04-13, 03:55 AM by pBS.)
Snap folder pics and show pics with just a batch file..
Using just ffmpeg and sqlite3.exe to access the database 'last watched position' to grab full resolution pics for display in gbpvr video library..
Works with MVP also.

You can pick the time of snap by watching the show and stopping where you want the snap to come from...Smile
[i thought i posted it already but can't find it anywhere]
oops: forgot to mention it requires sqlite3.exe to be in gbpvr\
Individual show snaps
this is a batch file to be named snap.bat and placed in gbpvr\third party\
Code:
@echo off
cls
cd third party
set db=..\GBPVR.DB3
for /f "usebackq tokens=1,2 delims=, " %%v in (`..\sqlite3 -separator ": " "%db%"  "SELECT last_position FROM PLAYBACK_POSITION where filename like '%%%~n1%%'; " `) do if "%%v" NEQ ""  @set seconds=%%v
ffmpeg\ffmpeg  -aspect 4:3 -y -an -ss %seconds% -aspect 4:3 -vframes 1 -i "%~1"  -f image2 -aspect 4:3 -an -s 720x480 "%~dpn1.jpg"

and add this to your config in custom ffmpeg conversions..
Code:
<Conversion name="Create snapshot for show." exe="snap.bat" cmd=" {SOURCE_FILE} " targetExtension=".mpg" />

to use just play the file to the point you want a snap and stop..then go into video library and select file and hit [transcode] and select "Create snapshot for show." profile and hit go..Smile

Series/Folder snaps
change the "%~dpn1.jpg" in batch file to "%~dp1folder.jpg" to cover a whole series with one pic...
eg: for folder snaps, save as snapf.bat
Code:
@echo off
cls
cd third party
set db=..\GBPVR.DB3
for /f "usebackq tokens=1,2 delims=, " %%v in (`..\sqlite3 -separator ": " "%db%"  "SELECT last_position FROM PLAYBACK_POSITION where filename like '%%%~n1%%'; " `) do if "%%v" NEQ ""  @set seconds=%%v
ffmpeg\ffmpeg  -aspect 4:3 -y -an -ss %seconds% -aspect 4:3 -vframes 1 -i "%~1"  -f image2 -aspect 4:3 -an -s 720x480 "%~dp1folder.jpg"
Code:
<Conversion name="Create snapshot for series/folder." exe="snapf.bat" cmd=" {SOURCE_FILE} " targetExtension=".mpg" />

Remember to use the blue button in video library to change views easily..

i may make an installer for this if need be/requested..Enjoy!

PAL users:
change the sizes to 720x576 and you should be cool..
aspect ratios may be able to be removed entirely..[autosense] for odd sized movies..
sqlite3.exe for those of you who don't have it already:
http://forums.gbpvr.com/attachment.php?a...1176435878
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2007-04-12, 01:55 PM
planned enhancements:
1. use lastplaybackposition if found,
2. if no lastplayposition found, check for comskip file and if found, snap a few seconds after first commercial is over,
3. if neither is found, snap a preset interval like say 5 mins...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  XmlTV channel and show images downloader (beta) whurlston 0 1,405 2010-06-20, 05:56 PM
Last Post: whurlston
  iPhone/iPod Touch webapp remote nkh 7 7,455 2009-06-07, 07:43 PM
Last Post: fering
  Configuration tool for remote control athomas 0 1,408 2008-12-04, 12:45 PM
Last Post: athomas
  Ati Remoe Wonder and x10 remote control neoxeo 1 1,830 2008-04-27, 06:39 PM
Last Post: fuathurio
  New GB-PVR plugin for the ATI Remote Wonder Mongoose 37 16,558 2007-10-04, 07:25 AM
Last Post: delikatny
  Multiple remote desktops in XP uwfalcon 7 2,414 2007-09-23, 08:25 PM
Last Post: cakes
  Event Ghost, another app to control your remote Wakalaka 13 4,321 2007-04-29, 06:42 AM
Last Post: HydroChronic
  Another new GB-PVR plug-in for the ATI Remote Wonder dunni 13 4,854 2007-04-27, 02:36 AM
Last Post: pathogen
  Marking Commercials with Remote in GB-PVR wtg 12 4,724 2007-02-01, 11:51 AM
Last Post: radar
  XC Cube AV Infra-red remote decoder seldomshaven 0 892 2006-12-01, 05:18 PM
Last Post: seldomshaven

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

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

Linear Mode
Threaded Mode