When I joined the forum in July there was a version with an "s" on the end (renamerecordings) which I have been using ever since. Who's version is that?
Well, I've consolidated the various versions of RenameRecordings. This includes all of the changes that ZaDDaZ had, plus the addition of Adding the title to the name.
Usage:
RenameRecording -t %1 > rename.log
That will include the Title in the name
If you just want the sub title:
RenameRecording %1 > rename.log
Features:
* Renames the video and all supporting files (*.dat, *.txt, etc).
* Updates the GBPVR database with the new name.
* Optional parameter to include Title along with the SubTitle in the following format:
Title - Subtitle.ext
* If a program already exists with the new name, it will try to increment the name until it gets a unique name:
Title - Subtitle1.ext
This version so 1.1 and has a Build date of 2005-12-19.
Please refer to the Build version when reporting errors.
I get the entire path less the slashes in the rename.
"F-MediaVideoCapturesEverybody Loves RaymondEverybody Loves Raymond - The Thought That Counts.mpg"
* Fixes Title Issue
* Adds: Program will try to set an Environement variable called RENAME. This is so that other external utilites that need to run after RenamRecording can get the new name.
* Fixes Title Issue
* Adds: Program will try to set an Environement variable called RENAME. This is so that other external utilites that need to run after RenamRecording can get the new name.
KingArgyle - it works. I did 3 tests. The order, 1st had an episode name, 2nd did not, 3rd did. The 3rd did something funny.
The commandline used was:
comskip "F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg"
Opening F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg
Using comskip.ini for initiation values.
Commercials were not found.
Resulting cutpoints:
C:\Program Files\devnz\gbpvr>"c:\Program Files\devnz\gbpvr\mpgtx.exe" -j -f -o "F:\Media\Video\Captures\South Park\South Park_20051222_00000030_clean.mpg" "F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg" [-]
Resulting cutpoints:
RenameRecording v1.1 beta build20051221
Title: South Park
Argument: -t F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg
Episode name: South Park - Woodland Critter Christmas
Episode Oid: 461
Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.log
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.log
Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.logo.txt
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.txt
Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.mpg
Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.txt
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.txt
System.ApplicationException: Error renaming program 'F:\Media\Video\Captures\South Park\South Park_20051222_00000030.mpg' to 'South Park - Woodland Critter Christmas' (oid 461) ---> System.IO.IOException: Cannot create a file when that file already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecordingClass.RenameRecording(String sEpisodeName, Int32 iEpisodeOid)
--- End of inner exception stack trace ---
at RenameRecording.RenameRecordingClass.RenameRecording(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecordingClass.RenameRecordingTitle(String sEpisodeName, Int32 iEpisodeOid)
at RenameRecording.RenameRecordingClass.DoMain()
System.IO.IOException: Cannot create a file when that file already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.__Error.WinIOError()
at System.IO.FileInfo.MoveTo(String destFileName)
at RenameRecording.RenameRecordingClass.RenameRecording(String sEpisodeName, Int32 iEpisodeOid)
Any ideas?
And what does the Environement variable called RENAME mean?
tpgbpvr Wrote:Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.logo.txt
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.txt
Renaming file: F:\Media\Video\Captures\South Park\South Park_20051222_00000030.txt
to: F:\Media\Video\Captures\South Park\South Park - Woodland Critter Christmas.txt
It looks like the .logo.txt is being renamed to just .txt causing the dupe. Did this kick off while comskip was still running?
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
The RENAME environment variable can be used by other utilities down stream in the PostProcessing.bat file, meaning that Rename doesn't have to be the last entry in the batch file. Those programs that take paramaters should be able to get the new name from the environment variable.
So if something needed the new file it could be given in theory by: