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 … 22 23 24 25 26 … 102 Next »
Post Record action advice?

 
  • 0 Vote(s) - 0 Average
Post Record action advice?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#31
2023-09-09, 03:58 AM
If you only want to move file to your NAS after recording you can use the Archive function, it will also remove folders when appropriate.

The noise probably isn't related to switches.

Martin
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#32
2023-09-09, 04:48 AM
I will look into the archive function, thanks.

I think that xcopy switch combination does indeed have an effect, as the NAS goes bonkers with those original switches active.
(my enclosure literally starts rattling from the vibrations, so not sure what's  occurring, but the noise from seeking is 'loud', and ONLY does it when those switches are active)
I was thinking it was doing verify at the same time as it was copying, don't know.

Perhaps it is the order, rather than the switches themselves?

I found another postprocessing.bat file on the forums, and used the xcopy switches from that thread.
The difference is night and day.  (oddly enough some switches are the same, but capitalized, so maybe thats the difference.)
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#33
2023-09-10, 06:02 PM
(2023-09-09, 03:03 AM)three6zerocool Wrote: Also discovered that these xcopy switches  /z /j /y /i /h    in the script make my NAS go mental and make the loudest seeking noises imaginable and takes an eternity to actually copy the files.
I changed them to /e /f /J /Y and the file copy is now virtually silent, and it copies the files super-fast. (like a 16GB recording in less than 30 seconds)

It was probably the /z flag which "Copies over a network in restartable mode." that was causing the problem. it sounds like it was writing a block of data and also writing a checkpoint record that was causing the problem
https://learn.microsoft.com/en-us/window...ands/xcopy

(2023-09-09, 03:03 AM)three6zerocool Wrote: As Martin pointed out, watching show whilst recording prevents the script from shifting to the NAS.

This issue may be addressable. I've got some logic in another script that will retry deleting the original source folder (multiple times with a delay) if the first attempt to delete it fails (due to an in progress watching of the show)

(2023-09-09, 03:03 AM)three6zerocool Wrote: Of course it still leaves the folder behind, so, that's the one little issue to clean up.

Should be fixable if we use the rmdir command as this only works on empty folders (source: https://learn.microsoft.com/en-us/window...ands/rmdir)
I'll have a think...
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#34
2023-09-10, 07:39 PM (This post was last modified: 2023-09-10, 07:39 PM by mvallevand.)
Because the actual reason for needing this whole process has never been determined I wouldn't take out the /z it should only be handling network errors without exiting.

Martin
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#35
2023-09-10, 08:45 PM
(2023-09-10, 07:39 PM)mvallevand Wrote: Because the actual reason for needing this whole process has never been determined I wouldn't take out the /z it should only be handling network errors without exiting.

Martin

The OP confirmed that removing /z fixed his performance problem (it can only be this switch, the /e and /f switches don't do anything important). My initial suspicion was that it was /j (Copies files without buffering. Recommended for very large files. This parameter was added in Windows Server 2008 R2) but given that he is getting good performance with this switch still set, rules this out I believe.

There are plenty of posts on the web where people have indicated that using /z kills performance such as this one for roboocopy (which I presume has a similar restart mechanism as xcopy).
The /Z switch writes a header block to the file to track how far it has gotten in the copy. It has to update this header after every write, which is slow. Without restarts the header doesn't have to be written, thus the copy is much faster.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#36
2023-09-10, 09:43 PM
I am not saying the /z isn't having problems. What I was meaning is I think there could be other problems and the /z may not be the cause but an effect. We still don't know why he can't write directly given the performance stats presented.

Granted xcopy was replaced and obsolete 16 years ago and who knows how it works these days with new technology.

I probably should not have got involved in this thread anyway so I will sign off now.

Martin
three6zerocool
Offline

Member

Posts: 237
Threads: 33
Joined: Jul 2019
#37
2023-09-10, 10:14 PM
I would like to thank both you and Martin for your insights.

I have taken both of your advice, especially Martin's advice regarding checking the network configuration, as it should be capable of recording directly to the NAS to begin with.

Looking into both the Virtual NextPVR hosted Windows-11,  and my second NextPVR running on Windows 10 bare metal,   I noticed that the Windows 10 machine seems to work much better in terms of recording and playback from the NAS.

Did a few speed tests, and got near identical results from both machines accessing the same NAS.
Perhaps Windows 11 has issues in this regard.

Anyway, input from both of you highly appreciated.

I have my primary NextPVR server using the NAS as a normal recording destination, and my 2nd NextPVR server using the postprocessing.bat configuration, so will experiment with it.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording Glitches - Debug Advice? andrewj 7 311 2025-06-23, 08:19 PM
Last Post: mvallevand
  Not picking unused tuner to record while watching live tv dlindyds 5 271 2025-06-21, 10:34 PM
Last Post: dlindyds
  Won't Record & Won't Forward & Minute Forward Missing suezew 2 269 2025-05-18, 07:36 PM
Last Post: sub
  How to remove multiple record failures bass_gas 1 217 2025-05-13, 03:59 PM
Last Post: mvallevand
  Installed V7 - unable to record. Dave48167 6 496 2025-05-11, 08:02 PM
Last Post: Dave48167
  How many IPTV streams should i be able to record at the same time? sharkbite 6 718 2025-03-27, 01:26 AM
Last Post: sharkbite
Photo NextTVPI and Titan Record Not Working N88yanks 18 1,000 2025-02-03, 09:21 PM
Last Post: N88yanks
  7.0.1.241229 Back end status stuck in record mode PIPE... eastavin 3 414 2025-01-28, 05:10 PM
Last Post: mvallevand
  7.0.0.241105 Back end status stuck in record mode PIPE... eastavin 1 363 2024-12-11, 10:54 PM
Last Post: Bobins
  NextPVR won't record from Ceton InfinitiTV 6 DavidNYC78 3 660 2024-08-06, 06:11 PM
Last Post: DavidNYC78

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

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

Linear Mode
Threaded Mode