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 … 352 353 354 355 356 … 433 Next »
stupid PostProcessing.bat question..

stupid PostProcessing.bat question..
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#1
2011-07-24, 02:14 AM
Ok, the end goal is to do a bit of post processing with handbrake and then copy the newly created .mp4 to a network share.

I've found several scripts which would fit the bill and with a bit of modification, they work great for renaming and post processing to .mp4. Got all that working fine.

The copy part has me stumped. For the life of me, I can't get it to copy the file to the network share.

Just to eliminate all the variables, I made a completely stripped down PostProcessing.bat with just the copy command and a little logging so i could track it. I got it to work form the command line, but it doesn't work from the post processing after recording a file. The output from the log file works fine in cmd too, so I think it's right.

What am I doing wrong?


PostProcessing.bat
----------------------------------
@ECHO on
ECHO postprocessing started on %date% %time% >> postprocessing.log

set NSHelper=C:\Progra~1\NPVR\NScriptHelper.exe

ECHO xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV" >> postprocessing.log

xcopy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV"

ECHO Post Processing finished on %date% %time% >> postprocessing.log

:end
echo Finished.
----------------------------------


postprocessing.log results
----------------------------------
postprocessing started on Sat 07/23/2011 21:50:01.04
xcopy "D:\Manual Recordings\Default_20110723_21492150.ts" "Z:\Movies-Video-DVDs\Recorded_TV"
Post Processing finished on Sat 07/23/2011 21:50:01.09
----------------------------------
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#2
2011-07-24, 02:26 AM
Your Z: drive is probably not mapped on the Local System account that the NPVR Recording Service uses. Maybe try \\ip\sharename instead of Z:

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2011-07-24, 07:03 AM
I added a note about this to the scripts section of the tech support sticky.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#4
2011-07-24, 06:26 PM
Well, I've figured out it's a permissions problem with NRecord.exe running as a "SYSTEM" user. (Win XPSP3) The Folder "Recorded_TV", which I'm trying to copy to, is shared on "Server", a Win2000 box.

I've tried multiple combinations of the copy command.

copy "%~f1" "Z:\Movies-Video-DVDs\Recorded_TV" (mapped to the drive letter)
copy "%~f1" "\\Server\Recorded_TV" (the share name)
copy "%~f1" "\\Server\500gb\Movies-Video-DVDs\Recorded_TV" (the literal path)
copy "%~f1" "\\192.168.1.100\500gb\Movies-Video-DVDs\Recorded_TV" (the IP just for giggles)

The first 3 work from the command prompt, but not from PostProcessing.bat. (The IP choked the command prompt)

I've also tried multiple variations of the net user command to map the drive as another user with no luck.

Any other ideas?
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#5
2011-07-24, 09:13 PM
you need to grant "Everyone" Full Access permissions to BOTH the directory and the share on the Win2000 box.

mapping the drive as a different user won't help at all.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#6
2011-07-25, 01:29 AM
I've got both shared to "everyone" with full permissions. Maybe there's another way around this... is there a way to call an external .bat from the PostProcessing.bat that would run as the local user???
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#7
2011-07-25, 02:25 AM
You have other options, you can change the recording service to run as another user, and I have written a utility called ShareHelper (search these forums for it) that runs as a service that allows you to use mapped drives and named shares at the Local System level.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  changing channels in guide - stupid user question mt900spg 2 1,549 2019-12-19, 01:30 PM
Last Post: mvallevand
  postprocessing batch to escape special characters donbrew 3 1,687 2019-11-06, 11:29 PM
Last Post: JavaWiz
  Question about Channel Changing hdpvr-doug8796 6 2,339 2019-10-09, 06:24 PM
Last Post: hdpvr-doug8796
  PostProcessing.bat not executing MiyoshiSaki 13 4,538 2019-09-03, 10:36 PM
Last Post: sub
  Series/Episode question Bobins 4 1,662 2019-06-27, 08:50 PM
Last Post: sub
  Archive question Bobins 3 1,490 2019-05-23, 12:30 PM
Last Post: ElihuRozen
  Another Skinning question - Ready Recordings bar Rage321 11 2,811 2019-04-26, 12:51 PM
Last Post: mvallevand
  Skinning question - Adding more listings, making it fit Rage321 3 1,431 2019-04-21, 01:05 AM
Last Post: Rage321
  Rebuilt on New Hardware // Decoder Question rowle1jt 8 2,332 2019-03-14, 12:06 PM
Last Post: rowle1jt
  Weird Question // Cutting Commercials rowle1jt 2 1,345 2019-02-01, 10:57 PM
Last Post: meccano

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

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

Linear Mode
Threaded Mode