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 … 204 205 206 207 208 … 433 Next »
PostProcessing.bat and VideoReDo TvSuite4

PostProcessing.bat and VideoReDo TvSuite4
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#1
2013-01-27, 06:19 PM (This post was last modified: 2013-01-27, 10:15 PM by Wakalaka.)
SOLVED: http://forums.nextpvr.com/showthread.php...post450831

Attached is Scripts.7z, which has my comskip.ini, ParallelProcessing.bat, PostProcessing.bat, and support tools. I have comskip run in ParallelProcessing.bat, and PostProcessing.bat waits until the .VPrj file is created, fixes it up, then runs VideoReDo to remove commercials and create a cleaned MPG file. I will manually run transcode.bat for files I want to convert the cleaned MPG to MP4 with Handbrake, and I will manually run wipecleanmpg.bat to delete the cleaned MPG files because NextPVR doesn't delete these files (by design). It works out because you can delete the recording from NextPVR, but be left with the cleaned MPG file if you ever want to transcode and save it.


Problem statement
I have this in my PostProcessing.bat (which is also attached):
cscript //nologo "C:\Program Files (x86)\VideoReDoTVSuite4\vp.vbs" "%~dpn1.VPrj" "%~dpn1_clean.mpg" /na /q "/p:MPEG2 Transport Stream"


When PostProcessing.bat is called by NextPVR, it appears that Video ReDo is exiting without doing its work, and thus I can't take the cleaned MPG file and convert it to MP4 with Handbrake at the end of my PostProcessing.bat.

When I open a command window and run PostProcessing.bat, Video ReDo is able to do its work and thus Handbrake can convert the cleaned MPG file to MP4.

Any idea why VideoReDo is behaving differently, even though the same commands are being executed?
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#2
2013-01-27, 06:22 PM
Maybe something to do with the scripts being called by a service that runs as a different 'user' from you?

Iain
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#3
2013-01-27, 06:58 PM
I remember trying this a couple of years ago and giving up. There's something "odd" about the vbs script I think.
you could try using the short form of "C:\Program Files (x86)\" - "C:\PROGRA~2\"

as Iain said, the environment that the service runs in might be wrong.
let me know if you ever figure it out.
(sorry)
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
Wakalaka
Offline

Posting Freak

Posts: 926
Threads: 161
Joined: Jan 2007
#4
2013-01-27, 07:37 PM (This post was last modified: 2013-01-28, 01:23 AM by Wakalaka.)
Get SysinternalsSuite for psexec app and other cool apps

This solved my problem. VideoReDo was being run as a service in a different user account. I opened a command window with admin rights, ran "psexec -s -i cmd.exe", then ran VideoReDo.exe. It wanted to prompt me for a bunch of things. I answered the prompts, closed the command window, then set a recording so PostProcessing.bat would be called. I'm watching postprocessing.log be updated, and I can see the timestamps for VideoReDo are now a minute apart which means commercial cutting did occur, my cleaned MPG is present, and now Handbrake is running to convert the cleaned MPG to MP4.
NPVR 4.1.0.180302 o Kodi 17.6 o EventGhost 0.5.0.rc4 o SAF 6.3.2 o SchedulesDirect
[SIZE="1"]
Case: Apevia X-Qpack HTPC o Motherboard: Asus P8H67-MLE o CPU: Intel Core i3-2100 o RAM: 8 GB o OS: Win7 64-bit
Tuner: HDHomeRun dual tuner o Leaf SkyHDTV antenna o Remote: Microsoft MCE
Hard drives: Samsung 500 GB SSD, Seagate 2 TB SATA2, Samsung 540 GB SATA2 o Input: Logitech USB keyboard & mouse
Video: ATI Radeon 7750 o Monitor: Viewsonic 27" VX2703MH-LED, LG 55" LCD TV
[/SIZE]
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#5
2013-01-28, 09:04 AM
nice job! tx for posting the info.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
kcmcdona
Offline

Junior Member

Posts: 26
Threads: 4
Joined: May 2008
#6
2013-01-29, 05:05 PM
Several years ago, I ran into the same problem when using GBPVR. I stumbled onto a similar solution, but slightly different. Perhaps this information will be useful if you continue to have problems. I think it describes what is causing the problem, and some registry entries that fixed it for me. I posted this on the VideoRedo Forum several years ago.

[URL="http://www.videoredo.net/msgBoard/showthread.php?26082-vp-vbs-only-works-when-called-from-command-prompt-doesn-t-work-when&p=84749&highlight=kcmcdona#post84749"]http://www.videoredo.net/msgBoard/showthread.php?26082-vp-vbs-only-works-when-called-from-command-prompt-doesn-t-work-when&p=84749&highlight=kcmcdona#post84749
[/URL]

kcmcdona
SickBoy
Offline

Senior Member

Posts: 340
Threads: 53
Joined: May 2005
#7
2014-10-06, 03:52 PM
Thanks! This helped me out a lot. I had a PostProcessing script all worked out and tested out (which I was testing by running it manually from the command line) and it was working fine there but wasn't working when being invoked by nPVR.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#8
2014-10-06, 07:11 PM
I can't remember what I did to get it to work!. Something like logging on as the SYSTEM user and running videoredo and answering the install questions - which I guess went into the registry to that user and were remembered. Iwas going round in circles for a long time trying to get it running.
SickBoy
Offline

Senior Member

Posts: 340
Threads: 53
Joined: May 2005
#9
2014-10-06, 08:03 PM
martint123 Wrote:I can't remember what I did to get it to work!. Something like logging on as the SYSTEM user and running videoredo and answering the install questions - which I guess went into the registry to that user and were remembered. Iwas going round in circles for a long time trying to get it running.

yup, that was it, using psexec to do it got me there.
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#10
2014-10-06, 10:40 PM
It is no big deal to let the recording service run as your own account, I do it all the time to avoid permission issues and it works just fine.

"I'd rather have a bottle in front of me than a frontal lobotomy"
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  postprocessing batch to escape special characters donbrew 3 1,776 2019-11-06, 11:29 PM
Last Post: JavaWiz
  PostProcessing.bat not executing MiyoshiSaki 13 4,854 2019-09-03, 10:36 PM
Last Post: sub
  VideoReDo vs Comskip drmargarit 2 1,582 2019-02-07, 12:08 AM
Last Post: drmargarit
  PostProcessing and PostCancel.bat being triggered but not working antenna 4 1,898 2018-08-05, 07:40 PM
Last Post: antenna
  PostProcessing.bat doesn't run wscrivens 23 8,054 2016-04-08, 06:30 PM
Last Post: Handy.Man
  Show CMD window while executing PostProcessing.bat uspino 6 2,923 2015-12-08, 11:41 PM
Last Post: mvallevand
  Havng trouble using VideoRedo in Batch (Postprocessing.bat) ????? puck64 0 1,528 2015-11-14, 10:39 AM
Last Post: puck64
  PostProcessing failing Quaraxkad 22 7,248 2015-10-19, 10:43 AM
Last Post: puck64
  PostProcessing.bat not run on Recording Cancel arrmo 9 2,681 2015-08-10, 01:31 PM
Last Post: arrmo
  Strange problem with PostProcessing and PsExec Reddwarf 8 2,721 2015-06-10, 07:39 PM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode