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 1.2

 
  • 0 Vote(s) - 0 Average
imageGrabLite 1.2
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#71
2013-09-23, 08:14 PM
gEd Wrote:I think Sub fixed this same thing in Nscripthelper

http://forums.nextpvr.com/showthread.php...st-2012%29
"- when renaming recordings with NScriptHelper.exe, it will now also update the playback position history to reflect the new filename."

That changes everything. I'm not home to check but if sub has updated the API in NShared.PlaybackPositionHelper to allow a rename method then I am not as worried about making the change.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#72
2013-09-23, 08:23 PM
oh, now I think I understand where all the non-understanding was coming from.
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: 52,783
Threads: 954
Joined: May 2006
#73
2013-09-23, 09:32 PM
Yes, there is no API for the rename I'd have to run a raw sqlite call and I consider there is a potential for record locking conflicts if I try and update the database when sub is also updating it after the video file lock is released.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#74
2013-09-23, 10:51 PM
Looking deeper I can get the duration and resume point back, the duration return was "hidden" in another call , so I can do an add/delete and the even if delete fails, you will get resume and the bogus entry will be a straggler like it is now.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#75
2013-09-23, 10:55 PM
cool, thanks for looking into that. I thought it'd be more trivial. Is that how sub's NScriptHelper is doing it? Is he using an API call he hasn't shared with you?
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: 52,783
Threads: 954
Joined: May 2006
#76
2013-09-23, 11:18 PM
FWIW it's trivial I just didn't understand duration

Code:
int duration= -1;
            int position = PlaybackPositionHelper.GetPlaybackPosition(oldFilename, out duration);
            if (duration >0)
            {
                PlaybackPositionHelper.StorePlaybackPosition(newFilename,position ,duration);
                PlaybackPositionHelper.DeletePlaybackPosition(oldFilename);
            }

Martin
coworker23
Offline

Junior Member

Posts: 14
Threads: 2
Joined: Oct 2013
#77
2013-10-04, 08:38 PM
Can someone please explain to me how to run this program?

When I try to run imagegrablite --oid %3 within the NPVR folder, it immediately crashes and the console spits out:

C:\Program Files (x86)\NPVR>imageGrabLite.exe --oid %3 --rename --season

Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at imageGrab.Program.Main(String[] args)

C:\Program Files (x86)\NPVR>
coworker23
Offline

Junior Member

Posts: 14
Threads: 2
Joined: Oct 2013
#78
2013-10-04, 08:39 PM
coworker23 Wrote:Can someone please explain to me how to run this program?

When I try to run imagegrablite --oid %3 within the NPVR folder, it immediately crashes and the console spits out:

C:\Program Files (x86)\NPVR>imageGrabLite.exe --oid %3 --rename --season

Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at imageGrab.Program.Main(String[] args)

C:\Program Files (x86)\NPVR>

the crash info from gui popup:

Description:
Stopped working

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: imagegrablite.exe
Problem Signature 02: 1.2.1.35094
Problem Signature 03: 517878fd
Problem Signature 04: mscorlib
Problem Signature 05: 2.0.0.0
Problem Signature 06: 5174ddfb
Problem Signature 07: c43
Problem Signature 08: 59
Problem Signature 09: System.FormatException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=1...cid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
coworker23
Offline

Junior Member

Posts: 14
Threads: 2
Joined: Oct 2013
#79
2013-10-04, 08:58 PM
NOTE: If you test imageGrabLite by running it manually, "--oid <value>" corresponds to the npvr.db3 scheduled_recording.oid value for the recording of interest. During normal NextPVR batch processing this value is passed in parameter 3, hence use of "--oid %3" in the batch file examples below.

ok. Where do you find the value if you are running it manually?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#80
2013-10-04, 08:58 PM
You need to put the appropriate line in appropriate batch file http://www.nextpvr.com/nwiki/pmwiki.php?...Files#toc3 it is not meant to run from the command line or by clicking on it. It is not intended to run manually.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (10): « Previous 1 … 6 7 8 9 10 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Considering dropping support for imageGrabLite mvallevand 8 3,964 2016-01-08, 08:23 AM
Last Post: liteswap
  imageGrabLite Beta mvallevand 84 61,317 2013-10-04, 06:40 PM
Last Post: mvallevand
  imageGrabLite 1.1 mvallevand 118 41,665 2012-08-30, 11:25 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