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.
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.
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.
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.
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.â
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)
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.â
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].