NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 3 4 5 6 7 56 Next »
Yet Another RenameRecordings Batch files

 
  • 0 Vote(s) - 0 Average
Yet Another RenameRecordings Batch files
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#21
2011-07-19, 07:42 PM
sub Wrote:See if this version helps.
Legend!

Ooh. Does this do clever checks to see what the OS is etc? Any other improvements?
JimF
Offline

Member

Posts: 217
Threads: 19
Joined: Oct 2005
#22
2011-07-19, 07:47 PM
Progress!

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>C:\Progra~2\NPVR\NScriptHelper.exe -title "F:\Sid the Scienc
e Kid\Sid the Science Kid_20110719_11001130.ts"
Sid the Science Kid

C:\Windows\system32>

So using that second set of commands at least provides the show name; I am recording a show now and will see if it actually renames. I don't know if this show actually has a subtitle (they usually do), but will post back when I get something more definitive.
HDHomeRun Prime, Win7 64-bit, NPVR 3.4.8
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#23
2011-07-19, 07:55 PM
JimF Wrote:Progress!

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>C:\Progra~2\NPVR\NScriptHelper.exe -title "F:\Sid the Scienc
e Kid\Sid the Science Kid_20110719_11001130.ts"
Sid the Science Kid

C:\Windows\system32>

So using that second set of commands at least provides the show name; I am recording a show now and will see if it actually renames. I don't know if this show actually has a subtitle (they usually do), but will post back when I get something more definitive.
So is that using the new file that Sub posted? You should be able to use the renamerecordings batch file on that video now if you've updated the set command as I posted.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,627
Threads: 767
Joined: Nov 2003
#24
2011-07-19, 08:03 PM
SANGER_A2 Wrote:Ooh. Does this do clever checks to see what the OS is etc? Any other improvements?
I forgot to force earlier versions of this exe to 32 bit only, which is required for the database library dependencies. This newer version forced 32 bit.
JimF
Offline

Member

Posts: 217
Threads: 19
Joined: Oct 2005
#25
2011-07-19, 08:48 PM
Yes!

It now renames properly (e.g., Martha Speaks - TD's Magic; Scaredy Cat.ts).

I have attached the RenameRecording script that works for me. Hopefully it can all be combined in a single version that works for all Windows versions.

=> Thanks to SANGER_A2 and to sub for all their work on this. It make NPVR really work for me now.
gEd
Offline

Posting Freak

London
Posts: 3,513
Threads: 100
Joined: Jan 2005
#26
2011-07-19, 10:15 PM
cool !! - looking forward to test driving this. It will be nice to have nicely named shows again.

so.....

how does one return the new file name (or the old one if unchanged) back to the calling batch file.
After renaming my recording, in postprocessing.bat, I want to :-

comskip %file% to locate advert breaks
contig %file% to make file contiguous
"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 to download a poster image of the show

If it can't be easily done, the other option might be to rename showname.txt showname.edl showname.jpg etc.

Points and gratitude who can me out with this and I know it will be needed by others as well.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#27
2011-07-19, 10:28 PM
imageGrabLite doesn't care about the filename, that is why I choose the -oid

Martin
JimF
Offline

Member

Posts: 217
Threads: 19
Joined: Oct 2005
#28
2011-07-20, 01:48 AM
gEd Wrote:how does one return the new file name (or the old one if unchanged) back to the calling batch file.
After renaming my recording, in postprocessing.bat, I want to :-

comskip %file% to locate advert breaks
contig %file% to make file contiguous
"C:\Program Files (x86)\NPVR\imageGrabLite.exe" --oid %3 to download a poster image of the show

I was able to get comskip to run (it is in the NPVR directory) by adding the following at the end of postprocessing.bat:

cd C:\Program Files (x86)\NPVR\
comskip.exe --ini=comskip.ini %newfile%
:eof

It might work for the others you want to run too.

(I haven't had any luck calling RenameRecording.bat from PostProcessing.bat, so I just include it all in PostProcessing.bat)
HDHomeRun Prime, Win7 64-bit, NPVR 3.4.8
gEd
Offline

Posting Freak

London
Posts: 3,513
Threads: 100
Joined: Jan 2005
#29
2011-07-20, 09:36 AM
ah ok,
I generally prefer to keen the code separate (Like *nix, one tool to do one job) but (at least for now) I will incorporate the RR code in postprocessing.

NScriptHelper does make life a heck of a lot easier! - I spend ages trying to get this working by running manual SQL queries against the database. Not easy for my aging brain...

Thanks again for doing this, much appreciated.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
ouradu
Offline

Junior Member

Posts: 17
Threads: 1
Joined: Jul 2011
#30
2011-07-24, 12:09 AM
My problem is like JimF's, but I'm having trouble with NScriptHelper. When I run those lines in command prompt, I get an error from Windows that says NScriptHelper has stopped working. In the command prompt I get this error message after I tell windows to stop looking for a solution:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one o
f its dependencies. The system cannot find the file specified.
File name: 'NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at NScriptHelper.Program.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].


Any ideas what's wrong with NScriptHelper.exe?
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (6): « Previous 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Generate NextPVR import XML from recorded TV .wtv files from WMC Jimixter 5 5,265 2021-05-06, 03:34 PM
Last Post: a1blues
  Generate missing thumbnails for video files imported into NextPVR Jimixter 0 2,574 2019-12-16, 07:28 PM
Last Post: Jimixter
  Files plugin tmrt 13 7,299 2014-01-09, 11:16 PM
Last Post: mvallevand
  Manual RenameRecording Batch File SANGER_A2 0 2,175 2011-10-08, 11:11 AM
Last Post: SANGER_A2
  NPVR Rename Recordings Batch File raceviper13 8 7,959 2011-04-23, 11:52 PM
Last Post: raceviper13
  Search DB batch util pBS 4 2,480 2009-09-03, 10:01 AM
Last Post: pBS
  Updated BDA scan files MixMan 1 2,180 2009-08-12, 08:19 PM
Last Post: martint123
  PostProcessing Dvr-MS files to remove comercial breaks crlorentzen 0 1,546 2008-09-13, 08:38 PM
Last Post: crlorentzen
  Batch to surely Hibernate & Update EPG dfdario 1 1,731 2008-03-09, 02:32 PM
Last Post: cakes
  NEW PLUG-IN: Files McBainUK 13 4,034 2007-06-05, 06:47 PM
Last Post: cybershaman

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

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

Linear Mode
Threaded Mode