NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 … 85 86 87 88 89 … 125 Next »
How to get the new name after renamerecordings

 
  • 0 Vote(s) - 0 Average
How to get the new name after renamerecordings
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#1
2005-12-11, 01:24 PM
This is an example of how to get the new name of a recording after renamerecordings did run in postprocessing.bat
It shows how you can run comskip and comclean after renamerecordings using the new name.
This is specially usefull when you use comclean2 because the input file used for cuttermaran includes the name of the mpeg file.

Warning: This has not been tested extensively!!!!!

Code:
Renamerecordings %1 >renamerecording.log

rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq  delims=: tokens=1,2" %%i in ("renamerecording.log") do call :processline "%%i" "%%j"
goto :afternewname

:processline
rem Remove
set arg=%~1
rem Skip useless lines
if NOT "%arg:~0,3%"=="New" goto :eof
set newname=%~2
Rem Skip the space at the start
set newname=%newname:~1,100%
goto :eof

:afternewname

echo New name = "%newname%"

Comskip "%newname%"
Call Comclean2 "%newname%"

:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2005-12-11, 04:39 PM
erik Wrote:This is an example of how to get the new name of a recording after renamerecordings did run in postprocessing.bat
It shows how you can run comskip and comclean after renamerecordings using the new name.
This is specially usefull when you use comclean2 because the input file used for cuttermaran includes the name of the mpeg file.

Warning: This has not been tested extensively!!!!!

This looks very good to me. I was just looking through the code and realized I would have to make a significant change. I currently run everything from parallelprocessing.bat so that I can run comskip concurrently with my recording. This drastically reduces my processing time and makes the file available sooner (I can't be expected to wait an extra 15 mintues afterall Smile ). Keeping comskip first in my parallelprocessing.bat would still work, except that it would generate the wrong info in the cuttermaran file, as you indicate above. I am still hopeful to get cuttermaran working, maybe after a full OS re-install which I already plan.

I know Sub likes to use the community to provide various support/enhancements. I wonder if he wouldn't consider allowing the user to configure the preferred name format used for recording. Maybe a new feature in an upcoming version. Just a wishlist item Sub.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#3
2005-12-12, 06:44 AM
erik Wrote:This is an example of how to get the new name of a recording after renamerecordings did run in postprocessing.bat
It shows how you can run comskip and comclean after renamerecordings using the new name.
This is specially usefull when you use comclean2 because the input file used for cuttermaran includes the name of the mpeg file.

Warning: This has not been tested extensively!!!!!

Code:
Renamerecordings %1 >renamerecording.log

rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq  delims=: tokens=1,2" %%i in ("renamerecording.log") do call :processline "%%i" "%%j"
goto :afternewname

:processline
rem Remove
set arg=%~1
rem Skip useless lines
if NOT "%arg:~0,3%"=="New" goto :eof
set newname=%~2
Rem Skip the space at the start
set newname=%newname:~1,100%
goto :eof

:afternewname

echo New name = "%newname%"

Comskip "%newname%"
Call Comclean2 "%newname%"

:eof

I am not very good with code. But my comskip nor comclean are launching. It does rename the file though.

Thanks.
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#4
2005-12-12, 07:49 AM
Make shure you are using comclean2!
If not, change the comclean line to

Call Comclean "%newname%"

COuld you test it with thhe following slightly different code?
And post the generated postprocessing.log file?


Code:
Renamerecordings %1 >renamerecording.log

rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq  delims=: tokens=1,2" %%i in ("renamerecording.log") do call :processline "%%i" "%%j"
goto :afternewname

:processline
rem Remove
set arg=%~1
rem Skip useless lines
echo %1 : %2 >>postprocessing.log
if NOT "%arg:~0,3%"=="New" goto :eof
set newname=%~2
Rem Skip the space at the start
set newname=%newname:~1,100%
goto :eof

:afternewname

echo New name = "%newname%" >>postprocessing.log

Comskip "%newname%" >>postprocessing.log
Call Comclean2 "%newname%"

:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#5
2005-12-13, 02:03 AM
erik Wrote:Make shure you are using comclean2!
If not, change the comclean line to

Call Comclean "%newname%"

COuld you test it with thhe following slightly different code?
And post the generated postprocessing.log file?

Thanks for the help. Using comclean so used as outlined.

Here is postprocessing.log

"File 'F" : "\Media\Video\Captures\Seinfeld\The Doll.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg' renamed to"
" 'F" : "\Media\Video\Captures\My Wife and Kids\The Truth Hurts.mpg'"
New name = ""F:\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg""
The commandline used was:
Comskip F:\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg

Usage:
comskip [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [--ini=<file>] [--logo=<file>] <file> [<file>]

-h, --help Display syntax
-w, --debugwindow Show debug window
-n, --playnice Slows detection down
--zpcut Outputs a ZoomPlayer cutlist
--zpchapter Outputs a ZoomPlayer chapter file
--videoredo Outputs a VideoRedo cutlist
--csvout Outputs a csv of the frame array
-d, --detectmethod=<int> An integer sum of the detection methods to use
-v, --verbose=<int> Verbose level
--ini=<file> Ini file to use
--logo=<file> Logo file to use
<file> Input file
<file> Output file

Detection methods available:
1 - Black Frame (required)
2 - Logo
4 - Scene Change
8 - Fuzzy Logic
16 - Closed Captions
32 - Aspect Ratio
255 - USE ALL AVAILABLE

Errors:
ComSkip: excess parameter "and"
ComSkip: excess parameter "Kids\My"
ComSkip: excess parameter "Wife"
ComSkip: excess parameter "and"
ComSkip: excess parameter "Kids_20051212_17301800.mpg"
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#6
2005-12-13, 07:50 AM
That helps.
Seems a problem with the quotes
Please try this

Code:
Renamerecordings %1 >renamerecording.log

rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq  delims=: tokens=1,2" %%i in ("renamerecording.log") do call :processline "%%i" "%%j"
goto :afternewname

:processline
rem Remove
set arg=%~1
rem Skip useless lines
echo %1 : %2 >>postprocessing.log
if NOT "%arg:~0,3%"=="New" goto :eof
set newname=%~2
Rem Skip the space at the start
set newname=%newname:~1,100%
goto :eof

:afternewname

echo New name = %newname% >>postprocessing.log

Comskip %newname% >>postprocessing.log
Call Comclean2 %newname%

:eof
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#7
2005-12-14, 12:10 AM
erik Wrote:That helps.
Seems a problem with the quotes
Please try this

tried it.

still looks like it is reverting back to the original name and then can't find it.
I ran a few more tests.

"File 'F" : "\Media\Video\Captures\Dangerman\The Eye of the Storm.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Bruce Springsteen.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Coldplay.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Green Day- American Idiot- Uncut.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Dave Matthews Band.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Lidias Italian-American Kitchen\Seaside Kitchen III.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Family Guy\Peter's Got Woods.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Seinfeld\The Doll.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg' renamed to"
" 'F" : "\Media\Video\Captures\My Wife and Kids\The Truth Hurts.mpg'"
New name = ""F:\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg""
The commandline used was:
Comskip F:\Media\Video\Captures\My Wife and Kids\My Wife and Kids_20051212_17301800.mpg

Usage:
comskip [-h|--help] [-w|--debugwindow] [-n|--playnice] [--zpcut] [--zpchapter] [--videoredo] [--csvout] [-d|--detectmethod=<int>] [-v|--verbose=<int>] [--ini=<file>] [--logo=<file>] <file> [<file>]

-h, --help Display syntax
-w, --debugwindow Show debug window
-n, --playnice Slows detection down
--zpcut Outputs a ZoomPlayer cutlist
--zpchapter Outputs a ZoomPlayer chapter file
--videoredo Outputs a VideoRedo cutlist
--csvout Outputs a csv of the frame array
-d, --detectmethod=<int> An integer sum of the detection methods to use
-v, --verbose=<int> Verbose level
--ini=<file> Ini file to use
--logo=<file> Logo file to use
<file> Input file
<file> Output file

Detection methods available:
1 - Black Frame (required)
2 - Logo
4 - Scene Change
8 - Fuzzy Logic
16 - Closed Captions
32 - Aspect Ratio
255 - USE ALL AVAILABLE

Errors:
ComSkip: excess parameter "and"
ComSkip: excess parameter "Kids\My"
ComSkip: excess parameter "Wife"
ComSkip: excess parameter "and"
ComSkip: excess parameter "Kids_20051212_17301800.mpg"
"File 'F" : "\Media\Video\Captures\Dangerman\The Eye of the Storm.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Bruce Springsteen.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Coldplay.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Green Day- American Idiot- Uncut.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Dave Matthews Band.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Lidias Italian-American Kitchen\Seaside Kitchen III.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Family Guy\Peter's Got Woods.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Seinfeld\The Doll.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\My Wife and Kids\The Truth Hurts.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Maya & Miguel\Maya & Miguel_20051213_15001530.mpg' renamed to"
" 'F" : "\Media\Video\Captures\Maya & Miguel\Friends Forever.mpg'"
New name = "F:\Media\Video\Captures\Maya & Miguel\Maya & Miguel_20051213_15001530.mpg"
The commandline used was:
Comskip "F:\Media\Video\Captures\Maya & Miguel\Maya & Miguel_20051213_15001530.mpg"

Opening F:\Media\Video\Captures\Maya & Miguel\Maya & Miguel_20051213_15001530.mpg
"File 'F" : "\Media\Video\Captures\Dangerman\The Eye of the Storm.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Bruce Springsteen.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Coldplay.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Green Day- American Idiot- Uncut.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Storytellers\Dave Matthews Band.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Lidias Italian-American Kitchen\Seaside Kitchen III.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Family Guy\Peter's Got Woods.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Seinfeld\The Doll.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\My Wife and Kids\The Truth Hurts.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Maya & Miguel\Friends Forever.mpg' has already been renamed"
"File 'F" : "\Media\Video\Captures\Hawaii Five-0\Hawaii Five-0_20051213_15001600.mpg' renamed to"
" 'F" : "\Media\Video\Captures\Hawaii Five-0\Presenting in the Center Ring -- Murder.mpg'"
New name = "F:\Media\Video\Captures\Hawaii Five-0\Hawaii Five-0_20051213_15001600.mpg"
The commandline used was:
Comskip "F:\Media\Video\Captures\Hawaii Five-0\Hawaii Five-0_20051213_15001600.mpg"

Opening F:\Media\Video\Captures\Hawaii Five-0\Hawaii Five-0_20051213_15001600.mpg
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#8
2005-12-14, 07:27 AM
The last two seem OK
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
tpgbpvr
Offline

Member

Posts: 58
Threads: 6
Joined: Jun 2005
#9
2005-12-15, 03:46 AM
erik Wrote:The last two seem OK

ERIK maybe I am missing something. comskip and comclean do not run after the rename. any idea?

Thanks
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#10
2005-12-15, 07:56 AM
When I look at these lines in the log file its seems comskip was activated

Quote:The commandline used was:
Comskip "F:\Media\Video\Captures\Maya & Miguel\Maya & Miguel_20051213_15001530.mpg"

and

Quote:The commandline used was:
Comskip "F:\Media\Video\Captures\Hawaii Five-0\Hawaii Five-0_20051213_15001600.mpg"

Remember to delete the postprocessing.log file if you run new tests because the output is always appended to the end of the file.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  renamerecordingS the..sleeper 1 1,611 2009-04-21, 08:36 PM
Last Post: David
  Episode Numbers - RenameRecordings or MyVideos? humpty 16 5,373 2006-08-18, 01:56 PM
Last Post: humpty
  Renamerecordings - any way to specify naming convention? linfor 1 1,073 2005-08-22, 04:05 PM
Last Post: reboot
  SA, Comclean, RenameRecordings... reboot 53 12,649 2005-08-20, 08:50 PM
Last Post: jam292
  RenameRecordings Problem BigT 3 1,829 2005-07-23, 02:57 PM
Last Post: afriend1
  Convert2wme and renamerecordings erik 0 1,693 2005-07-09, 12:52 PM
Last Post: erik

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

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

Linear Mode
Threaded Mode