80% of frames dropped when recording

Discussions of using SharpCap for Planetary Imaging
Post Reply
1stSolo
Posts: 4
Joined: Thu Jun 08, 2023 7:11 am

80% of frames dropped when recording

#1

Post by 1stSolo »

I have ASI662MC, 64GB RAM (16GB sharpcap buffer), licensed version, fast SSD that tests 1600-2400fps write speed.
Sharpcap v4 April 2023 build, latest ZWO drivers and ASCOM platform 6.6 SP1.
The title bar in windows shows ASI662MC USB3.
"Turbo USB" is set to "Auto", but I tried "80" also.
Video format is SER.
In preview, the camera is streaming 186fps for AOI 800x600 with 2ms exposure, gain=300.
But when I start recording the fps drops to 36fps and when 5000 frames are saved it shows 32K dropped. Also it's not using the high speed cache.
What could be the reason for 80% dropped frames?
User avatar
admin
Site Admin
Posts: 13347
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: 80% of frames dropped when recording

#2

Post by admin »

Hi,

the best thing to do is to check the log while capturing, since SharpCap will record some info in the log about what is causing the dropped frames. There will be lines in the log like

Code: Select all

Dropped Frames : 500 of type XXXXX
It's the type that is important - it tells me where in the code they are being recorded and that will help understand what is going on.

Based on your description that the memory buffer is not being used, then I am thinking of two possibilities

1) The frames are being dropped before they are getting to SharpCap - somewhere in the ZWO code

2) The CPU level is hitting 100% when saving and that is meaning that SharpCap cannot keep up with the frames coming from the camera.

One thing worth checking - if your SSD is connected over USB then that could be the problem - if it shares a USB hub with the camera (even an internal hub), then as soon as you start saving it will start using bandwidth on the USB and affect the frame rate from the camera.

cheers,

Robin
1stSolo
Posts: 4
Joined: Thu Jun 08, 2023 7:11 am

Re: 80% of frames dropped when recording

#3

Post by 1stSolo »

Hi, Robin. I'll check the logs.
The SSD is a nvme board. The CPU is barely used - it's a 12-core 24-thread AMD Ryzen 9 chipset with 64GB RAM at 3.1GHz.
As I mentioned, the speed test on that drive estimates 1600+ fps write capability.
Frames aren't dropped in preview, but only when recording.
I had a slower computer before which was always filling up the buffer first before beginning to drop frames due to slow SSD. This one used to work perfectly - I could get 138fps at 1960x1080 before, so something changed...
I'll update ZWO drivers for Windows and ASCOM, and I already upgraded ASCOM platform to 6.6 SP1.
1stSolo
Posts: 4
Joined: Thu Jun 08, 2023 7:11 am

Re: 80% of frames dropped when recording

#4

Post by 1stSolo »

Screenshot 2023-06-08 213605.jpg
Screenshot 2023-06-08 213605.jpg (500.11 KiB) Viewed 6844 times
I'm attaching the screenshot.

At first I thought I found a problem: after unplugging from power source my laptop drops CPU speed to 500Mhz. Still it was using only 2-5% CPU when recording video. Then I rebooted the laptop and now it's at 2.91GHz (95% power per current Windows Power Plan). And still CPU is 2% utilization.
Hard drive (SSD) is not too busy and neither is nVidia card with 2300+ CUDA cores.
The log is showing a small fraction of frames dropped due to "ZWOFromSDK", but majority - 80% - are dropped due to "PreviousFrameNotProcessed"

Please advise. When not recording the camera is showing 180+ fps with ~2ms exposure, 800x600, or 76fps at 1980x1080.

I attached the log.
Attachments
Log_2023-06-08T21_18_20-18508.log
(115.78 KiB) Downloaded 74 times
1stSolo
Posts: 4
Joined: Thu Jun 08, 2023 7:11 am

Re: 80% of frames dropped when recording

#5

Post by 1stSolo »

I switched to the latest ASIStudio/ ASICap and able to capture 185-186fps (2ms exposure) with 0 (zero) dropped frames with that software, directly to disc without memory buffering.
Seems like a bug in the most recent SharpCap.
User avatar
admin
Site Admin
Posts: 13347
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: 80% of frames dropped when recording

#6

Post by admin »

Hi,

thanks for testing and sending the results. Not what I expected! The frames are coming through from the camera, but are being dropped internally by SharpCap quite early in the processing flow.

There are a couple of things that could cause this

* One or more of the processing options being turned on in the SharpCap 'preprocessing' control blocks - these can take time and will cause frames to be dropped if it hasn't finished by the time the next frame arrives

* Any actiive tools while you are capturing (but from the look of the log you have turned them off).

I would suggest that you try opening the camera with the CTRL key pressed down which will reset all the camera controls and turn off any pre-processing ones that may have been turned on previously and remembered by SharpCap re-loading previous settings when you open the camera.

It's also worth having a look at SharpCap 4.1 beta to see if the same problem happens there - I am no longer updating SharpCap 4.0, and in fact the only changes in it in the last 6 months or so have been SDK updates from camera manufacturers, so they are unlikely to cause the issue you are seeing.

cheers,

Robin
Post Reply