Regular crashes when recording


#1

I installed Netcam x64 v1.3.2.0 about a week ago. I am using RTSP for both cameras.
2 D-Link DCS-935L.
Both set for motion detection only (not audio)
FrameDifference Algorithm

At first I thought it was related to not having any video’s. Once I had one recordering per camera, it seemed fine. The next day it was not running. It seems to crash a couple times a day. No specific error and nothing in eventvwr.

I started NetCam, no history (IE: no video’s) which was odd because I had about 15 of them. I manually recorded one for five seconds worked fine. Did manual on second camera and Netcam crashed.

Started it back up, had one in history. Did a manual record on both and it works fine.

Very confused. The first couple nights I did get some recordings but at some point it crashes and I think it is around recording.


#2

One camera is using firmware 1.07, other was using 1.0.4. Dlink shows 1.0.6 as latest (odd). I upgraded 1.0.4 to 1.0.6. I rebooted which I might not have done after the install of netcam.

“Server” is a Windows 10 machine. Good memory and horsepower. Sit idle most of the time.

I did find an error in eventvwr from midnight last night… The error 5 is usually permission problems, not sure on what though.
Log Name: Application
Source: Application Error
Date: 3/16/2016 12:06:25 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: BEAVIS
Description:
Faulting application name: NetcamStudioX.exe, version: 1.3.2.0, time stamp: 0x56ce282b
Faulting module name: avcodec-56.dll, version: 56.29.101.0, time stamp: 0xa7d8a7d0
Exception code: 0xc0000005
Fault offset: 0x000000000000966b
Faulting process id: 0x1480
Faulting application start time: 0x01d17f3312cad0c3
Faulting application path: C:\Program Files\Netcam Studio - 64-bit\NetcamStudioX.exe
Faulting module path: C:\Program Files\Netcam Studio - 64-bit\avcodec-56.dll
Report Id: 158cd46b-21eb-4e5b-aa27-5cfb54b727ff
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
2
100
0x80000000000000

6014
Application
BEAVIS



NetcamStudioX.exe
1.3.2.0
56ce282b
avcodec-56.dll
56.29.101.0
a7d8a7d0
c0000005
000000000000966b
1480
01d17f3312cad0c3
C:\Program Files\Netcam Studio - 64-bit\NetcamStudioX.exe
C:\Program Files\Netcam Studio - 64-bit\avcodec-56.dll
158cd46b-21eb-4e5b-aa27-5cfb54b727ff





ALSO a .net error at same time
Log Name: Application
Source: .NET Runtime
Date: 3/16/2016 12:06:25 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: BEAVIS
Description:
Application: NetcamStudioX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at .avcodec_encode_audio2(g38GQRer89DCV.wOJuayI9edOQGyJCtyA1HoOPv9*, 8dnqlRUlLh.wrbeYKbaw5ayB2aHk57YFM8iR*, F5E9BLabm1JRr2kVM61lgpwi9.wGckHLYV9oqoIh*, Int32*)
at Moonware.FFMPEG.AudioVideoEncoder.AudioVideoEncoder.EncodeAudio(IntPtr, Int32, Int32)
at ..()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

Event Xml:
1026200x800000000000006013ApplicationBEAVISApplication: NetcamStudioX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at <Module>.avcodec_encode_audio2(g38GQRer89DCV.wOJuayI9edOQGyJCtyA1HoOPv9*, 8dnqlRUlLh.wrbeYKbaw5ayB2aHk57YFM8iR*, F5E9BLabm1JRr2kVM61lgpwi9.wGckHLYV9oqoIh*, Int32*)
at Moonware.FFMPEG.AudioVideoEncoder.AudioVideoEncoder.EncodeAudio(IntPtr, Int32, Int32)
at ..()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()


#3

Hi Tobin! Yes, here are things really going wrong. It seems to be a problem with the audio codec. A look in the specifications for the cam I see that it can delver AAC and G711 for audio. I know from experience that NCS have problems with AAC. I also see that you use rtsp, which is good, that delivers both video and audio. I suggest the following for testing:

  1. Go into the settings of the cam and make sure you use G711 for audio. Completely restart NCS and cam. Works?
    1a. change between play1.sdp and play2.sdp.
  2. Delete the cam from Custom URL.
  3. Add the cam using a predefined template and test it for D-link DCS-930L, 932L or 933L and use MJPEG and see if that works better. One of these templates also use G711 for audio.

Hopefully, number 1 will help.
-Henrik


#4

Thank you very much for the feedback. I removed all camera’s and tried to add them via the wizard under Network Camera. I have all the connection details correct but it always fails. I tried 930L,932L and 33L. I could only get it to work via Custom URL.

I have looked at the two different setting options and I do not see a way to change the audio. (edit video source and configure features)

I decided to re-add them via Custom URL tab, I changed to play2 and changed stream type of MPEG which lines up with camera settings.


#5

removed logs, rebooted computer, started everything up (Custom URL, MPEG stream), manually pressed record, 2 seconds later…

Log Name: Application
Source: Application Error
Date: 3/17/2016 10:14:19 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: BEAVIS
Description:
Faulting application name: NetcamStudioX.exe, version: 1.3.2.0, time stamp: 0x56ce282b
Faulting module name: avcodec-56.dll, version: 56.29.101.0, time stamp: 0xa7d8a7d0
Exception code: 0xc0000005
Fault offset: 0x000000000000966b
Faulting process id: 0x112c
Faulting application start time: 0x01d180bbd459c406
Faulting application path: C:\Program Files\Netcam Studio - 64-bit\NetcamStudioX.exe
Faulting module path: C:\Program Files\Netcam Studio - 64-bit\avcodec-56.dll
Report Id: afac8b2b-a0c8-4d9f-b644-2941fc87b81b
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
2
100
0x80000000000000

6249
Application
BEAVIS



NetcamStudioX.exe
1.3.2.0
56ce282b
avcodec-56.dll
56.29.101.0
a7d8a7d0
c0000005
000000000000966b
112c
01d180bbd459c406
C:\Program Files\Netcam Studio - 64-bit\NetcamStudioX.exe
C:\Program Files\Netcam Studio - 64-bit\avcodec-56.dll
afac8b2b-a0c8-4d9f-b644-2941fc87b81b





Log Name: Application
Source: .NET Runtime
Date: 3/17/2016 10:14:19 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: BEAVIS
Description:
Application: NetcamStudioX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at .avcodec_encode_audio2(g38GQRer89DCV.wOJuayI9edOQGyJCtyA1HoOPv9*, 8dnqlRUlLh.wrbeYKbaw5ayB2aHk57YFM8iR*, F5E9BLabm1JRr2kVM61lgpwi9.wGckHLYV9oqoIh*, Int32*)
at Moonware.FFMPEG.AudioVideoEncoder.AudioVideoEncoder.EncodeAudio(IntPtr, Int32, Int32)
at ..()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()

Event Xml:
1026200x800000000000006248ApplicationBEAVISApplication: NetcamStudioX.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at <Module>.avcodec_encode_audio2(g38GQRer89DCV.wOJuayI9edOQGyJCtyA1HoOPv9*, 8dnqlRUlLh.wrbeYKbaw5ayB2aHk57YFM8iR*, F5E9BLabm1JRr2kVM61lgpwi9.wGckHLYV9oqoIh*, Int32*)
at Moonware.FFMPEG.AudioVideoEncoder.AudioVideoEncoder.EncodeAudio(IntPtr, Int32, Int32)
at ..()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()


#6

I checked the web console of the DLink camera to review settings directly on the camera and there does not appear to be a way to set a particular audio codec.


#7

OK, I am getting out of ideas here, but …
0. If I understand correct even when you change to play2.sdp, which is MJPEG, NCS crashes?

  1. You have two 935L cams. Same problem with both cams?
  2. Can you test with another cam (model, brand)?
  3. What happens when you run NCS as a Service. Same problem?
  4. Uninstall NCS completely. Also remove the 3 files in ProgramData that is not removed. Install again and test.

-Henrik


#8

Uninstalled, removed programdata moon directory, rebooted, reinstalled.
Could not add camera’s based on model, always failed the when I pressed the button labeled: test.
tried multiple times to add via custom url and mpeg (on play 2), only ever showed black image
successfully got them both added via RTSP TCP (not mpeg) in custom URL with play 1.

I pressed manual record and it would start but couldn’t stop it which had happened before. Stopped Server. It seems that it has problems for the very first recordings. Once you get past those and have one for each camera, seems to work fine.

No crashes, but a few things.

  1. In history, there is no thumb nail. The video plays
  2. Both cameras (which are less than 6 months old) sometimes are flashing towards very bright which in turn causes recordings to start. It is recording every few minutes which it was not doing before.

#9

Hi Tobin! Thanks for all the testing. I am actually gettings more suspicious of the cams.

  1. When you use play1 or play2 it should be added using rtsp and rtsp_tcp. I tested on my D-link cams.
  2. The behavior of the cams seems very odd. The latest firmware as you say is 1.06. I would download and install that again.
  3. Are you running NCS on a laptop? If so can you add the built in webcam. Or if you have a webcam around, please add that one and remove the d-link cams. Use local source/webcam.

  4. -Henrik