NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 46 47 48 49 50 … 101 Next »
Automatically copy recordings to NAS when complete?

 
  • 0 Vote(s) - 0 Average
Automatically copy recordings to NAS when complete?
itm2
Offline

Member

Posts: 58
Threads: 16
Joined: Sep 2016
#11
2022-02-15, 06:57 PM (This post was last modified: 2022-02-15, 06:58 PM by itm2.)
(2022-02-15, 04:07 PM)sub Wrote:
(2022-02-15, 03:42 PM)itm2 Wrote:
(2022-02-15, 03:28 PM)sub Wrote:
(2022-02-15, 03:04 PM)itm2 Wrote: Thanks for the suggestion.
I've since read about the PostProcessing.bat option, but my initial attempt at using it to copy the recordings didn't succeed (I put the script in the NPVR scripts folder but it didn't seem to execute). Is this option now obsolete?
It'll still run C:\Users\Public\NPVR-data\scripts\PostProcessing.bat if it exists.

If you don't think it was run, post the logs showing a recording, and I'll confirm if it saw your batch file and tried to run it.

One complication to consider is that the recording service runs as the 'localsystem' account, which may not be able to get to your share.

Thanks. I attach the only log that was created since the last recording started ("Dickinsons Real Deal" at 3pm)...
The attempt to run postprocessing.bat would be in nrecord.log

Hmmm...this is strange...this is what was reported in nrecord.log:
Code:
2022-02-15 15:02:00.482    [DEBUG][9]    Starting: C:\Users\Public\NPVR-Data\scripts\PostProcessing.bat "c:\users\ian manning\Videos\Dickinsons Real Deal\Season 13\Dickinsons.Real.Deal.S13E76.ts" 103 1168 23 "Dickinson's Real Deal"
2022-02-15 15:02:00.522    [DEBUG][168]    >
2022-02-15 15:02:00.522    [DEBUG][168]    > C:\Users\Public\NPVR-Data\scripts>copy   & 1 J:\TV\_Mediacentre_recordings\News\
2022-02-15 15:02:00.523    [DEBUG][168]    > The syntax of the command is incorrect.
2022-02-15 15:02:00.524    [DEBUG][24]    > '1' is not recognized as an internal or external command,
2022-02-15 15:02:00.524    [DEBUG][24]    > operable program or batch file.
2022-02-15 15:02:00.524    [DEBUG][168]    >
...but this is what's in my PostProcessing.bat file:
Code:
copy &1 J:\TV\_Mediacentre_recordings\News\
Do I need to be using escape characters in PostProcessing.bat to ensure that the "&1" gets interpreted correctly?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#12
2022-02-15, 07:05 PM
I don't help with scripts but perhaps read more about what to use for parameters in batch files.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#13
2022-02-15, 07:05 PM
Isn't it supposed to be %1
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,772
Threads: 954
Joined: May 2006
#14
2022-02-15, 07:07 PM (This post was last modified: 2022-02-15, 07:08 PM by mvallevand.)
Yes and on other NextPVR non-Windows platforms $1

Martin
itm2
Offline

Member

Posts: 58
Threads: 16
Joined: Sep 2016
#15
2022-02-15, 07:16 PM
(2022-02-15, 07:05 PM)sub Wrote: Isn't it supposed to be %1

Ah yes it should indeed have been %1 - thanks.

I now have a different issue...I've added this line to PostProcessing.bat:
Code:
ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"
But when it gets executed I get this error:
Code:
2022-02-15 15:02:00.524    [DEBUG][168]    > C:\Users\Public\NPVR-Data\scripts>ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"
2022-02-15 15:02:00.535    [DEBUG][24]    > ERROR: The specified directory does not exist.
If I execute exactly the same command from a Command Prompt, from the same directory, it works fine:
Code:
C:\Users\Public\NPVR-Data\scripts>ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"


C:\Users\Public\NPVR-Data\scripts>
(and it correctly removes files older than 2 days from J:\TV\_Mediacentre_recordings\News

???
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#16
2022-02-15, 07:58 PM
(2022-02-15, 07:16 PM)itm2 Wrote: I now have a different issue...I've added this line to PostProcessing.bat:
Code:
ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"
But when it gets executed I get this error:
Code:
2022-02-15 15:02:00.524 [DEBUG][168] > C:\Users\Public\NPVR-Data\scripts>ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"
2022-02-15 15:02:00.535 [DEBUG][24] > ERROR: The specified directory does not exist.
If I execute exactly the same command from a Command Prompt, from the same directory, it works fine:
Code:
C:\Users\Public\NPVR-Data\scripts>ForFiles /p "J:\TV\_Mediacentre_recordings\News" /s /d -2 /c "cmd /c del @file"

C:\Users\Public\NPVR-Data\scripts>
I'm guessing the service isn't seeing your J: drive mapping. Try running as your account rather than localsystem. If that doesn't get you going, try changing to UNC paths \\server\share\_Mediacentre_recordings\News
itm2
Offline

Member

Posts: 58
Threads: 16
Joined: Sep 2016
#17
2022-02-15, 09:37 PM
Hmm...that's odd. The NextPVR service is already running under my user account (I had modified it a while ago).

In any case, I changed PostProcessing.bat to use the UNC path, but for some reason the older version of my PostProcessing.bat file is still being used. Is this file cached by NextPVR?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#18
2022-02-15, 09:55 PM
(2022-02-15, 09:37 PM)itm2 Wrote: In any case, I changed PostProcessing.bat to use the UNC path, but for some reason the older version of my PostProcessing.bat file is still being used. Is this file cached by NextPVR?
No - it's just telling windows to run your batch file. Maybe double check you updated the right one.
« 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
  Failed recordings "Operation timed out" Stanno 8 379 2025-04-27, 07:26 PM
Last Post: Nick017
  Can't delete scheduled recordings Druhl 3 151 2025-04-22, 09:10 PM
Last Post: mvallevand
  Since v7: EPG mostly "no listings", and channels change during recordings :'( rightbryce 37 2,604 2025-04-20, 12:41 AM
Last Post: rightbryce
  Manual Recurring Recordings jcole998 3 164 2025-04-17, 09:10 PM
Last Post: mvallevand
  NPVR Windows recordings folder cleanup.... Colincam 21 2,780 2025-04-16, 07:38 PM
Last Post: mvallevand
  Portions of recordings are missing MovieBuff 6 404 2025-04-14, 03:15 PM
Last Post: MovieBuff
  Recordings not displaying Jakesty 4 202 2025-04-12, 01:15 PM
Last Post: mvallevand
  Scheduled Late Night through-midnight recordings suddenly stop at midnight Andre_Mikulec 4 293 2025-03-29, 12:56 AM
Last Post: mvallevand
  postprocessing tsduck on recordings Druhl 3 255 2025-03-07, 02:24 AM
Last Post: mvallevand
  Deleting recordings leaves .MP4 files ronsfsd 8 525 2025-02-20, 04:53 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode