ksseverson57 / campy

Python package for streaming video from multiple cameras to disk. Features real-time compression and debayering using FFmpeg.
MIT License
37 stars 18 forks source link

Memory error when using FLIR cameras #13

Closed josephbima closed 1 year ago

josephbima commented 2 years ago

Hi there, I am trying to use campy to record simultaneously using two flir cameras.

Error

I have the following errors when trying out using the default 1 camera flir config file (campy_config_1cam_flir.yaml) and a two camera config file which is just a modified version of the 1 camera config setup.

This happens more often than not, but sometimes the program just runs until it makes a directory and then throws the same memory error, creating a corrupted file as video. Here is the output :

WAMade directory ./test\Camera1. Opened: ./test\Camera1\0.mp4 using CPU to compress the stream. RNING: QApplication was not created inWAOpened: ./test\Camera2\0.mp4 using CPU to compress the stream. RNING: QApplication was not created in the main() thread. the main() thread. Trigger source set to None... Width not available... Height not available... Height set to 3000... ERROR:root:Error setting pixel format to rgb24: Spinnaker: GenICam::AccessException= Node is not writable. : AccessException thrown in node 'PixelFormat' while calling 'PixelFormat.SetIntValue()' (file 'EnumerationT.h', line 83) [-2006] Shutter time set to 1500 us... Gain set to 1 dB. Gamma correction disabled. Buffer count now set to: 100 BufferMode has been set to Oldest First

and here is the 2 camera flir config that I made.


# using ffmpeg's X264 codec

# Recording parameters
videoFolder: "./test"
videoFilename: "0.mp4"
frameRate: 80
recTimeInSec: 30

# Camera parameters
numCams: 2
cameraSelection: [0,1]
cameraNames: ["Camera1","Camera2"]
cameraMake: "flir"
frameWidth: 1280
frameHeight: 1024

# Flir settings
cameraTrigger: "None" # "Line3"
bufferSize: 100
cameraExposureTimeInUs: 1500
cameraGain: 1
disableGamma: True

# Compression parameters
gpuID: -1
pixelFormatInput: "rgb24"
pixelFormatOutput: "rgb0"

# Display parameters
displayFrameRate: 10```

I have the flir wheel and Spinakker app downloaded, do you know what might be causing this issue? Thanks in advance!