NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 319 320 321 322 323 … 433 Next »
NScriptHelper -rename making me insane

NScriptHelper -rename making me insane
TVHelp
Offline

Member

Posts: 84
Threads: 16
Joined: Sep 2011
#11
2011-10-13, 10:12 PM (This post was last modified: 2011-10-13, 10:17 PM by TVHelp.)
First: I have been using this code to rename my files. It has been working great, unless you are doing a manual recording, in which case you get just the first letter of the original name with --- after it since there is no actual show or episode information. If there is a way to add a fix for it to just skip these types or leave the original name in the future that it would be great. I don't have too many of these types of recordings - mostly do this when sports have delayed shows past original schedule and I through in a manual recording to capture a unique time frame for the recording.

Second (the real reason for this post): I would like to add a trigger to run my ccExtractor at the end of this code, since I want it to run automatically for each recording it would fit here perfectly. I have added the code to the end of the script but it appears that the the file name does not include the file directory so the ccExtractor is not finding the file - it is creating an empty .srt in the script folder.

Can anyone tell me how to get the full directory information to add to the file name so this will work?

I have added the following to the code....
set CCExtract=C:\Progra~2\CCExtractor\ccextractorwin.exe
%CCExtract% "%newname%%~x1" -out=srt -utf8 --nofontcolor -trim


When run manually the "%newname%%~x1" would be a full name like c:\\recordings\RecordingName.ts

Your help would be greatly appreciatedSmile

P.s. please disregard the space in the exe line above - that only appears in this forum - don't know why, I have retyped it several times. But it appears the code does run as an srt is being generated.
TVHelp
Offline

Member

Posts: 84
Threads: 16
Joined: Sep 2011
#12
2011-10-13, 11:46 PM
Quote:Can anyone tell me how to get the full directory information to add to the file name so this will work?

I have added the following to the code....
set CCExtract=C:\Progra~2\CCExtractor\ccextractorwin.exe
%CCExtract% "%newname%%~x1" -out=srt -utf8 --nofontcolor -trim

Ah, with a second look I see my error. The renaming needed %~dp1 in front (I did not know what this was then I saw it in another renaming batch file Rolleyes). My code is now automatically creating the closed caption srt file after the file is recorded. The new added code is:

set CCExtract=C:\Progra~2\CCExtractor\ccextractorwin.exe

%CCExtract% "%~dp1%newname%%~x1" -out=srt -utf8 --nofontcolor -trim

If anyone else is interested in automatic srt files - which you can then have displayed in playback in NPVR, you can get ccExtractor at http://ccextractor.sourceforge.net/

Ps. please remove extra space in e xe ...
BTJustice
Offline

Senior Member

Posts: 381
Threads: 61
Joined: Mar 2008
#13
2012-02-09, 01:57 PM
TVHelp Wrote:Ah, with a second look I see my error. The renaming needed %~dp1 in front (I did not know what this was then I saw it in another renaming batch file Rolleyes). My code is now automatically creating the closed caption srt file after the file is recorded. The new added code is:

set CCExtract=C:\Progra~2\CCExtractor\ccextractorwin.exe

%CCExtract% "%~dp1%newname%%~x1" -out=srt -utf8 --nofontcolor -trim

If anyone else is interested in automatic srt files - which you can then have displayed in playback in NPVR, you can get ccExtractor at http://ccextractor.sourceforge.net/

Ps. please remove extra space in e xe ...

I used your posts as a template for CCextractor and came up with this for PostProcessing.bat...

Code:
"C:\Program Files (x86)\CCExtractor\ccextractorwin.exe" "%~dp1%~n1.ts" -out=srt -utf8 --nofontcolor -trim

It works well IMO.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to get NextPVR to rename the recordings to S01E01 bader515 3 1,488 2019-04-21, 01:42 AM
Last Post: pkscout
  Skinning question - Adding more listings, making it fit Rage321 3 1,656 2019-04-21, 01:05 AM
Last Post: Rage321
  NScriptHelper Question scJohn 1 1,160 2018-06-12, 05:56 PM
Last Post: sub
  NScriptHelper KNet 2 1,575 2016-07-31, 12:29 AM
Last Post: KNet
  Easy way to rename channels rykr 2 1,542 2015-10-24, 04:39 PM
Last Post: rykr
  Rename to mkv extension removes recording listing Esteban 1 1,498 2015-10-11, 05:42 AM
Last Post: sub
  NScriptHelper documentation? Reddwarf 7 2,925 2015-09-06, 09:29 PM
Last Post: Reddwarf
  nscripthelper -rename removed recording from db NYPlayer 2 1,861 2014-11-18, 08:08 PM
Last Post: NYPlayer
  Rename or move based on Genre kitehigh 3 1,766 2014-03-10, 06:49 PM
Last Post: sub
  Add -start_time option to NScriptHelper??? rglover 1 1,242 2013-10-04, 11:40 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode