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 … 216 217 218 219 220 … 433 Next »
Batch file not running

Batch file not running
k03klve
Offline

Junior Member

Posts: 1
Threads: 1
Joined: Aug 2012
#1
2014-05-04, 11:15 AM
Hi all,

Thanks for a great program.

I have placed the following bat file under scripts in the data directory (windows 7).

PostProcessing.bat:

cd\
cd C:\Program Files (x86)\Cypheros\TSDoctor\
tsdoctor.exe "d:\video\*.ts" AUTOFIX "d:\temp\"
del d:\video\*.*

rem /Q

What I would like it to do is run the program and use the TSDoctor AUTOFIX metod to correct recordings for commercial removal and or errors then move it to a second location. Second all data in the recording directory is to be deleted.

But it ain´t working it has been tested from cmd promt and there it worked.

I have attacted logs for this date as well.

Loking forward to a reply.

Kind Regards,
Klaus
christheman
Offline

Member

Posts: 104
Threads: 14
Joined: Apr 2014
#2
2014-05-04, 03:05 PM (This post was last modified: 2014-05-04, 03:44 PM by christheman.)
k03klve Wrote:Hi all,

Thanks for a great program.

I have placed the following bat file under scripts in the data directory (windows 7).

PostProcessing.bat:

cd\
cd C:\Program Files (x86)\Cypheros\TSDoctor\
tsdoctor.exe "d:\video\*.ts" AUTOFIX "d:\temp\"
del d:\video\*.*

rem /Q

What I would like it to do is run the program and use the TSDoctor AUTOFIX metod to correct recordings for commercial removal and or errors then move it to a second location. Second all data in the recording directory is to be deleted.

But it ain´t working it has been tested from cmd promt and there it worked.

I have attacted logs for this date as well.

Loking forward to a reply.

Kind Regards,
Klaus


Hi. Here is a bit of code I put together that I use myself for TSDoctor and launch from a different program, but it should also work here in NPVR. I tailored it a bit for your needs. It uses the first command line argument, filename, sent by NextPVR (%1), and plugs that into the first argument for TSDoctor. Then it substitutes the NPVR file path for your path and plugs that into the second argument for TSDoctor.

Also I put a REM on your DEL command so you can safely test it first without deleting anything.

Code:
SET _orig=%1
SET _tsdoc=%_orig:d:\video\=d:\temp\%

"C:\Program Files (x86)\Cypheros\TSDoctor\TSDoctor.exe" %_orig% Autofix %_tsdoc%

REM    DEL %_orig%

After doing it my way, differences I noticed that we don't need to use wildcards (*.*) for TSDoctor, since NPVR supplies its own filename. Also the path for TSDoctor.exe needed to be in quotes due to the spaces it has. Finally, I used your path for TSDoctor. My original one is for Windows XP and didn't have the "(x86)" bit in the path.

Chris
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#3
2014-05-05, 11:17 AM
TSDoctor does not really work that well in a batch, I had a long email exchange with the author a while ago, the problem seems to be when the batch is started from a service (NPVR Recordig Service in this case). The author said that he had no way of testing this method of starting a batch, so he could not fix it. In the end I gave up using TSDoctor regularly and reverted to run it manually for problem recordings. For commercial removal the donator version of Comskip is far better than TSDoctor.

"I'd rather have a bottle in front of me than a frontal lobotomy"
christheman
Offline

Member

Posts: 104
Threads: 14
Joined: Apr 2014
#4
2014-05-05, 06:26 PM
Reddwarf Wrote:TSDoctor does not really work that well in a batch, I had a long email exchange with the author a while ago, the problem seems to be when the batch is started from a service (NPVR Recordig Service in this case). The author said that he had no way of testing this method of starting a batch, so he could not fix it. In the end I gave up using TSDoctor regularly and reverted to run it manually for problem recordings. For commercial removal the donator version of Comskip is far better than TSDoctor.

I don't use the comskip or any of the other features that require outside resources, so that may be the reason I don't have any problems. I only use it's internal correction capabilities. It works flawlessly for me in batch mode, every single time.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  incorrect frequency in adelaide .ini file spin35 5 3,135 2023-02-01, 05:40 PM
Last Post: sub
  Auto Update EPG not running as scheduled? BairStrokes 2 1,844 2021-03-26, 12:02 PM
Last Post: NumberFive
  ts file shows length too long? SuttonWillow 2 2,009 2021-03-15, 01:56 PM
Last Post: mvallevand
  Recording service stopped or not running at scheduled time MattInetroit 3 1,981 2021-01-08, 12:03 AM
Last Post: mvallevand
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,469 2020-10-29, 09:40 PM
Last Post: mvallevand
  Auto Update EPG not running as scheduled Bobbybear 10 3,833 2020-10-24, 09:24 AM
Last Post: Bobbybear
  ts file shows length too long SamM 4 2,404 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  EPG displaying small subset of xmltv file. Esteban 9 3,119 2020-07-18, 10:07 PM
Last Post: Esteban
  Max File Size jrockow 2 1,575 2020-04-21, 02:38 PM
Last Post: jrockow
  Recording service not running at recording time Ricknextpvr 18 6,724 2020-03-26, 03:56 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