Recordings keep stopping

I did have another thread for this, but it seems to have disappeared?

Anyway, even after down grading to 1.3.2, our recordings our now stopping every couple of days. This is the last log file, any ideas?

(Information @ 00:12:55.850 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:12:55.853 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:12:55.865 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160530_235755_823.mp4 (00:15:00.9259000). Took 15 ms (Information @ 00:12:55.895 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160530_235755_823.mp4 (00:15:00.6719000). Took 47 ms (Information @ 00:12:56.224 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 15 ms (Information @ 00:12:56.249 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 46 ms (Information @ 00:27:56.260 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:27:56.273 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_001256_223.mp4 (00:15:00.6798000). Took 15 ms (Information @ 00:27:56.459 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:27:56.507 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 00:27:56.508 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_001256_248.mp4 (00:15:00.6568000). Took 47 ms (Information @ 00:27:56.647 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 00:42:56.559 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:42:56.592 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_002756_506.mp4 (00:15:00.4947000). Took 31 ms (Information @ 00:42:56.671 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:42:56.733 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 00:42:56.764 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_002756_647.mp4 (00:15:00.3047000). Took 94 ms (Information @ 00:42:56.912 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 00:57:56.778 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:57:56.806 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_004256_729.mp4 (00:15:00.5060000). Took 31 ms (Information @ 00:57:56.964 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 00:57:57.033 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 00:57:57.044 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_004256_911.mp4 (00:15:00.3720000). Took 15 ms (Information @ 00:57:57.288 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:12:57.029 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:12:57.065 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_005756_963.mp4 (00:15:00.5460000). Took 46 ms (Information @ 01:12:57.248 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:12:57.369 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:12:57.536 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_005757_288.mp4 (00:15:00.5030000). Took 171 ms (Information @ 01:12:57.740 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:27:57.333 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:27:57.634 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_011257_247.mp4 (00:15:00.8110000). Took 297 ms (Information @ 01:27:57.813 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:27:57.853 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:27:57.871 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_011257_739.mp4 (00:15:00.1300000). Took 47 ms (Information @ 01:27:58.031 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:42:57.898 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:42:57.916 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_012757_853.mp4 (00:15:00.7895808). Took 16 ms (Information @ 01:42:58.031 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:42:58.081 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:42:58.125 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_012758_030.mp4 (00:15:00.3125808). Took 94 ms (Information @ 01:42:58.247 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:57:58.103 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:57:58.117 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_014258_080.mp4 (00:15:00.4255752). Took 15 ms (Information @ 01:57:58.265 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 01:57:58.290 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 01:57:58.358 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_014258_247.mp4 (00:15:00.1105994). Took 62 ms (Information @ 01:57:58.516 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 15 ms (Information @ 02:12:58.359 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:12:58.498 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:12:58.746 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_015758_264.mp4 (00:15:00.8820792). Took 374 ms (Information @ 02:12:58.799 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_015758_495.mp4 (00:15:00.5080418). Took 297 ms (Information @ 02:12:59.580 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 02:12:59.591 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 15 ms (Information @ 02:27:59.651 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:27:59.710 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:27:59.877 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_021259_580.mp4 (00:15:01.7721682). Took 234 ms (Information @ 02:27:59.926 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_021259_580.mp4 (00:15:01.4271337). Took 219 ms (Information @ 02:28:02.035 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 16 ms (Information @ 02:28:02.045 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 31 ms (Information @ 02:43:02.057 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:43:02.058 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:43:02.238 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_022802_023.mp4 (00:15:00.2020112). Took 172 ms (Information @ 02:43:02.298 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_022802_022.mp4 (00:15:00.2690179). Took 234 ms (Information @ 02:43:02.927 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 02:43:02.927 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 02:58:02.946 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:58:02.950 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 02:58:03.062 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_024302_927.mp4 (00:15:01.2650717). Took 124 ms (Information @ 02:58:03.215 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_024302_927.mp4 (00:15:01.2830582). Took 265 ms (Information @ 02:58:04.006 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 02:58:04.006 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:13:04.096 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:13:04.105 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_025804_005.mp4 (00:15:01.4178000). Took 16 ms (Information @ 03:13:04.253 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:13:04.305 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_025804_005.mp4 (00:15:00.2978000). Took 62 ms (Information @ 03:13:05.825 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:13:05.825 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:28:05.842 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:28:05.864 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:28:05.881 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_031305_822.mp4 (00:15:01.9920742). Took 47 ms (Information @ 03:28:05.911 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_031305_822.mp4 (00:15:00.0770772). Took 47 ms (Information @ 03:28:06.321 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:28:06.321 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:43:06.374 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:43:06.422 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:43:06.469 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_032806_320.mp4 (00:15:00.8350745). Took 94 ms (Information @ 03:43:06.680 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_032806_320.mp4 (00:15:00.9260836). Took 265 ms (Information @ 03:43:06.923 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:43:06.923 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:58:07.325 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:58:07.325 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 03:58:09.481 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_034306_923.mp4 (00:15:03.1247000). Took 1981 ms (Information @ 03:58:09.649 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_034306_923.mp4 (00:15:03.2136735). Took 2293 ms (Information @ 03:58:17.327 Source(1).TimerInactivityElapsed Source(1) - Video Source Stopped due to inactivity (Information @ 03:58:17.327 Source(0).TimerInactivityElapsed Source(0) - Video Source Stopped due to inactivity (Information @ 03:58:37.235 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 03:58:37.285 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 47 ms (Warning @ 03:59:03.907 AVBuffer:DequeueAudioPacket() Desired PacketId: 0 not present in memory. Sent current PacketId: 18568980480 Total bytes in memory: 4096 (Information @ 04:13:37.252 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 04:13:37.254 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 04:13:37.340 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_035837_234.mp4 (00:15:00.0208180). Took 93 ms (Information @ 04:13:37.353 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_035837_234.mp4 (00:15:00.0348194). Took 109 ms (Information @ 04:13:38.520 Source(0).StartRecording Source(0) - Started File Recording [FileEncoder]. Took 0 ms (Information @ 04:13:38.618 Source(1).StartRecording Source(1) - Started File Recording [FileEncoder]. Took 110 ms (Information @ 04:28:38.551 Source(0).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 04:28:38.646 Source(0).StopRecording Source(0) - File recording completed for Recording_0_20160531_041338_518.mp4 (00:15:01.7959161). Took 94 ms (Information @ 04:28:38.652 Source(1).ImageReceived Recording for more than 00:15:00. Starting a new file... (Information @ 04:28:38.855 Source(1).StopRecording Source(1) - File recording completed for Recording_1_20160531_041338_519.mp4 (00:15:01.6028758). Took 203 ms (Information @ 04:28:48.547 Source(0).TimerInactivityElapsed Source(0) - Video Source Stopped due to inactivity (Information @ 04:28:48.653 Source(1).TimerInactivityElapsed Source(1) - Video Source Stopped due to inactivity (Error @ 04:29:48.657 VideoSource (0) Video / Audio threads must be aborted [3 minutes timeout]. (Error @ 04:29:48.732 VideoSource (1) Video / Audio threads must be aborted [3 minutes timeout]. (Critical @ 04:29:48.992 VideoSource (0) Video / Audio threads have been aborted. (Critical @ 04:29:49.002 VideoSource (1) Video / Audio threads have been aborted. (Error @ 04:30:31.400 LibraryManager Failed to add Item to the Library Exception Detail:Thread was being aborted.

Hi!
I am familiar with “(Error @ 04:30:31.400 LibraryManager Failed to add Item to the Library” . That happened to me when NCS could not save the file on the location of the Library. NCS did not have access to that storage space.
-Henrik

Why would that be the case though?

Why would it be fine for 2-3 days, sometimes a week, then just stop?

Well, that I do not know. Windows in general … However, is the location of the Library on the same computer as NCS is running or is it outside, must it use the network? Is the Library on a NAS or … ?
-Henrik

Do you have this also with the current 1.3.6 ?

Because we will not do investigate on older versions however if it still happens with the current release then we will do our best to solve the problem… I remember that I changed several things following your previous remarks.

Anyway after aborted threads which we see in your logs then the behavior of the software may be weird.

I had a problem with logs filling up the HDD on 1.3.5, which is why I downgraded and that went away.

Does 1.3.6 fix the log problem? Or is there a way to change the location the logs are stored (not C), or limit the size of the logs?

It is on the same PC, only a different partition.

Not from log perspecitve nothing has changed between 1.3.0 to 1.3.6 so exactly the same may occur in 1.3.6 as well as in your current 1.3.2

It’s true however that I should allow disabling loging to HDD in the future since it only makes the system slower.

I am also getting this issue.

Criticality Local / Server TimeStamp Source Description
09.06.2016 13:06:15.707 Source(27).StopRecording Stop recording received [MotionDetector] while recording is already Stopped
09.06.2016 13:06:15.467 Source(1).Encoder.FileEncoder.WorkerThreadFFMPEG “Exception in Loop
Exception Detail:Object reference not set to an instance of an object.”
09.06.2016 13:06:15.442 Source(1).StartRecording Started File Recording [MotionDetector]. Took 0 ms
09.06.2016 13:06:13.506 Source(4).StopRecording Stop recording received [MotionDetector] while recording is already Stopped
09.06.2016 13:06:13.201 Source(14).VideoSource.NetCam.WorkerThreadMJPEG “Exception using http://172.16.70.26:80/video/mjpg.cgi?profileid=3?quad=1&resolution=704x480
Exception Detail:The operation has timed out”
09.06.2016 13:06:13.201 Source(15).VideoSource.NetCam.WorkerThreadMJPEG “Exception using http://172.16.70.27:80/video/mjpg.cgi?profileid=3?quad=1&resolution=704x480
Exception Detail:The operation has timed out”
09.06.2016 13:06:12.946 Source(5).Encoder.FileEncoder.WorkerThreadFFMPEG “Exception in Loop
Exception Detail:Object reference not set to an instance of an object.”
09.06.2016 13:06:12.871 Source(5).StartRecording Started File Recording [MotionDetector]. Took 15 ms
09.06.2016 13:06:12.385 Source(33).StopRecording Stop recording received [MotionDetector] while recording is already Stopped
09.06.2016 13:06:12.275 Source(16).VideoSource.NetCam.WorkerThreadMJPEG “Exception using http://172.16.70.28:80/video/mjpg.cgi?profileid=3?quad=1&resolution=704x480
Exception Detail:The operation has timed out”
09.06.2016 13:06:11.480 Source(29).Encoder.FileEncoder.WorkerThreadFFMPEG “Exception in Loop
Exception Detail:Object reference not set to an instance of an object.”
09.06.2016 13:06:11.425 Source(29).StartRecording Started File Recording [MotionDetector]. Took 16 ms
09.06.2016 13:06:09.864 Source(2).Encoder.FileEncoder.WorkerThreadFFMPEG “Exception in Loop
Exception Detail:Object reference not set to an instance of an object.”
09.06.2016 13:06:09.779 Source(2).StartRecording Started File Recording [MotionDetector]. Took 15 ms

It is creating a 15ms recording and then stopping. It is recording to another drive on the same PC.

Can you please confirm that it’s also using the background encoding?

In the meantime, please remove it from the recording options.

Hi!
I am not sure, but if you are referring to this “09.06.2016 13:06:09.779 Source(2).StartRecording Started File Recording [MotionDetector]. Took 15 ms” it is the time from motion is detected by the system to the actual recording starts. In an ideal situation it should be 0 ms.
I have this also in all my versions of ncs and it is correct.
It is there with or without background recording.
-Henrik

I suppose it is related to problem writing to the target folder (Library), probably either because it’s a network disk or a full disk.

Anyway @twgs1, can you please provide the following info:

  • describe where you save the library (local hard disk, remote server, nas, …)
  • ensure that you have enough space + write access and that connectivity is up
  • confirm it’s only the MJPEG mode
  • report version number, if x86 / x64 and if licensed / registered version of netcam studio (I suppose so since I see more than 30 videos source but cannot find a corresponding license for you in our system)

I will add more verifications in this direction prior to start writing the video (which is done for the “standard” recording mode, not the new MJPEG one)

  • background encoding
    I turned this off and it has started to record again however still no videos in the web client library section (refering to other post issue that Steven beleives is linked to this issue)

  • describe where you save the library (local hard disk, remote server, nas, …)
    Videos being recorded to local HDD

  • ensure that you have enough space + write access and that connectivity is up
    2TB free

  • confirm it’s only the MJPEG mode
    Not sure what you mean by this sorry

  • report version number, if x86 / x64 and if licensed / registered version of netcam studio (I suppose so since I see more than 30 videos source but cannot find a corresponding license for you in our system)
    x64 1.3.6.5

Hi!

  1. Videos being recorded to local HDD - are there actually any videos stored on the HDD?
  2. If you use this link http://172.16.70.27:80/video/mjpg.cgi?profileid=3?quad=1&resolution=704x480 to the camera in the Custom URL you must add username and password so it look like this
    http://username:password@172.16.70.27:80/video/mjpg.cgi?profileid=3?quad=1&resolution=704x480
    Stream Tpe should be set to MJPEG.
    -Henrik

As already suggested, in the recording option, please check if you have the background-encoding mode option enabled.

If it’s the case please disable it since it’s probably the reason of your recording not working (at least the case for one other user at the begining of this forum post).

I’m guessing you missed that I did this. Thanks turning this off fixed the not recording issue.