NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 2 3 4 5 6 … 56 Next »
imageGrabLite Beta

 
  • 0 Vote(s) - 0 Average
imageGrabLite Beta
toboR
Offline

Member

Posts: 158
Threads: 12
Joined: Aug 2006
#71
2011-12-31, 02:32 PM
jksmurf Wrote:tobor - might want to share your batch (with REM comments), it might help other folks looking to get it going too.

My problem seemed to be the result of using "Program Files" instead of "Progra~1". I didn't think that was still necessary with Windows 7, but I guess it is.
So my PostProcessing.bat looks like this:

Code:
@echo off
c:
cd \Progra~1\NPVR
REM C:\Program Files\NPVR\imageGrabLite.exe --oid %3 --rename
ImageGrabLite.exe --oid %3 --rename
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#72
2011-12-31, 02:39 PM
In the line you REM'd out I don't see the required quotes around the program "C:\Program Files\NPVR\imageGrabLite.exe" Also running 64 bit you'd need "C:\Program Files (x86)\NPVR\imageGrabLite.exe"

Martin
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#73
2012-01-04, 12:04 PM
mvallevand Wrote:jksmurf, I have edited the first post to show the lines needed in the batch files, I hope that helps.

Martin

Cheers Martin.

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

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#74
2012-01-13, 06:00 AM
When using the --rename function in postprocessing.bat, what happens if the user is watching the recording when the rename attempt happens? Does it have some way to handle this, or does the rename simply fail? Likewise if comskip is still running on the file from parallelprocessing.bat?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#75
2012-01-13, 06:18 AM
You'd end up with a log like this.

Code:
2012-01-13 01:12:12.213    [DEBUG][1]    Command Line --oid 1219 --zap2it --rename
2012-01-13 01:12:12.603    [DEBUG][1]    Searching select scheduled_recording.name, event_details, start_time, filename from scheduled_recording, channel where scheduled_recording.oid = 1219 and scheduled_recording.channel_oid = channel.oid and channel.number not in (54, 56)
2012-01-13 01:12:12.613    [DEBUG][1]    Subtitle: Length=14 The Pants Tent
2012-01-13 01:12:12.613    [DEBUG][1]    Zap2it reference http://tvlistings.zap2it.com/tv/curb-your-enthusiasm/EP003919780001
2012-01-13 01:12:12.613    [DEBUG][1]    OID is 10991633
2012-01-13 01:12:12.614    [DEBUG][1]    Meta files exists C:\Users\Public\NPVR\Media/Shows/Curb Your Enthusiasm.xml
2012-01-13 01:12:12.621    [DEBUG][1]    Episodic: True C:\Users\Public\NPVR\Plugins/SearchLite/Series/Curb Your Enthusiasm.xml
2012-01-13 01:12:12.636    [DEBUG][1]    /Data/Episode/EpisodeName[. ='The Pants Tent']
2012-01-13 01:12:12.637    [DEBUG][1]    Rename using The Pants Tent S01 E01
2012-01-13 01:12:12.637    [DEBUG][1]    2000-10-15
2012-01-13 01:12:12.637    [DEBUG][1]    Found a match with The Pants Tent
2012-01-13 01:12:12.637    [DEBUG][1]    Rename using The Pants Tent S01 E01
2012-01-13 01:12:12.638    [DEBUG][1]    Curb Your Enthusiasm.S01E01.The Pants Tent
2012-01-13 01:12:12.645    [ERROR][1]    Read Error The process cannot access the file because it is being used by another process.

And you'd have to know to resubmit with the command line options shown as the first line in the log. The sqlite update is transaction oriented and it will not be committed if there is an error on the rename.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#76
2012-01-13, 09:18 AM (This post was last modified: 2012-01-14, 11:18 PM by johnsonx42.)
I had written a script before that renamed recording files in a somewhat ugly fashing using nscripthelper. As I often watch recordings in progress, and limit the number of comskips to 2 at once with others waiting for a turn, I had built in a bunch of waits and checks to ensure comskip had a chance to start on the file, finished with it, and finally that the file isn't open. I've adapted it to use imageGrabLite instead:
Code:
@echo off
cd \users\public\npvr\scripts
REM first sleep for 5 minutes to give comskip a chance to start if it's going to
sleep 300

REM check if comskip has run on this file; if not skip to renaming
:checkcomskip
if not exist "%~dpn1.log" goto checkopen

REM ok, comskip has run, but could still be running so wait til the .edl shows up, then continue
:checkedl
sleep 30
if not exist "%~dpn1.edl" goto checkedl

REM get rid of excess comskip files... we only need the .edl
del "%~dpn1.log"
del "%~dpn1.txt"
del "%~dpn1.logo.txt"

REM ok, ready to rename the file... but first check to make sure no one is watching it!
REM try renaming the file to the same name, see if gets an error
:checkopen
ren %1 "%~nx1"
if errorlevel 1 goto waitandcheck
goto rename
:waitandcheck
REM if we got here, the rename failed so wait a minute and try again
sleep 60
goto checkopen

:rename
REM finally, all is clear.  run imagegrablite against the file
"c:\program files\npvr\imageGrabLite.exe" --oid %3 --rename

REM now grab the log output and save it for possible later examination
type "c:\users\pubilc\npvr\logs\imageGrabLite.log" >> rename.log

:eof

ImageGrabLite has worked perfectly so far tonight on a half-dozen recordings, and I've seen some new artwork pop up already. Thanks for this very clever utility!
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#77
2012-01-15, 06:03 AM
What does the --updateepg function do? I added it to my postupdateepg.bat, but I don't notice anything different in my EPG. Does it just pre-emptively get artwork for upcoming recordings? Or to ask another way, if I'm running it in postprocessing.bat already, does running it in PostUpdateEPG.bat do anything else?
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,165
Threads: 958
Joined: May 2006
#78
2012-01-15, 06:36 AM
johnsonx42 Wrote:Does it just pre-emptively get artwork for upcoming recordings?

Yes, it gets art, thumbnails and the meta file for future renaming purposes. Doing it this way does allow some of the heaviest downloading (it's still pretty light) during the quiet time rather that during prime time.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#79
2012-01-15, 06:56 AM
Ah, I see, so I should go ahead and run it both places; the --updateEPG function prepares data for later use by the --rename function. Got it.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#80
2013-01-30, 01:35 PM
Hi Martin,

I just realised while doing a search for somethign else, what treasure trove of show (meta?)data is in the xml's in the Media folder in addition to the great images (which is what I liked it for initially).

My next question is, how to get that information into NPVR to show up in the recordings informaiton for the show, (a) automatically and (b) manually. For manual, one of the old plugins had a button press where you could ask it to download the data "on-demand", but if it's already in the computer in the media folder, could I ask for it to show it (import) or not show it?

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 (9): « Previous 1 … 5 6 7 8 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  New LG and Samsung NextPVR Web Smart TV App available for beta testing. fred250 388 142,911 2017-04-10, 10:46 AM
Last Post: fred250
  Considering dropping support for imageGrabLite mvallevand 8 4,284 2016-01-08, 08:23 AM
Last Post: liteswap
  Bluray Player Beta whurlston 23 12,321 2015-10-05, 09:32 AM
Last Post: Lao Pan
  Movies beta vik 66 31,194 2015-03-31, 03:13 AM
Last Post: Lao Pan
  Need beta testers for "NextPVR for Samsung" (client for samsung smart tvs/blurays) reven 61 27,997 2013-12-03, 10:21 AM
Last Post: martint123
  imageGrabLite 1.2 mvallevand 90 36,982 2013-10-04, 10:00 PM
Last Post: johnsonx42
  SSPlus Screensaver - Photo Slideshow Beta ACTCMS 40 14,519 2012-12-07, 01:49 AM
Last Post: ACTCMS
  imageGrabLite 1.1 mvallevand 118 42,960 2012-08-30, 11:25 AM
Last Post: mvallevand
  New External App : Channel Logo Tools For NPVR (Beta) systemshark 0 1,727 2011-09-03, 08:15 AM
Last Post: systemshark
  SSPlus 0.9.1 BETA - a screensaver for NPVR ACTCMS 18 6,285 2011-07-18, 12:52 AM
Last Post: johnsonx42

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

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

Linear Mode
Threaded Mode