High-speed video recording - codecs #2535
Replies: 2 comments 5 replies
-
|
Can you provide more details as to what codecs you have tried so far? Also, what are your hardware specs? Do you have access to GPU acceleration? If so, how many cores? This is largely not an issue with Bonsai. Provided you can find a ffmpeg codec you are happy with, we will likely be able to run it in bonsai. Have you tried to play with ffmpeg directly to find something you are happy with? |
Beta Was this translation helpful? Give feedback.
-
|
Hi Bruno, Thanks for your reply, and sorry it's taken a while to get back to me. I have tried FFV1, XVID and DIVX. FFV1 caused some problems at higher frame rates but I would prefer to use it. The computer specs are as follows:
I have not tried with FFmpeg directly - would you suggest just running the four cameras and then running four FFmpeg pipelines in four terminals? Any ideas about the pipe error? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I need some help with high-speed video recording.
I have four cameras recording at 200-400fps, onto one computer. The SSD drive can write plenty fast enough as recording without a codec goes fine with no skipped frames. Unfortunately it fills up 1TB of storage after ~10 minutes, and I need to be able to record at least 1 hour footage before moving it off the computer.
I am using the VideoWriter codec from Vision. I have tried using the FFmpeg codec but unfortunately this gives non-deterministic errors saying that it cannot find the pipe, which can only be solved by restarting the computer (restarting Bonsai is not enough).
I had to start recording in a hurry so I used the DIVX codec. This works fine when recording 700fps but moving up to 1000fps fills up the RAM after about 10 minutes. However, the CPU does not get above 20-25%.
So it seems that I have enough disc write speed and a fast enough processor, I just need to find a way to compress using more of the CPU so I don't back up the RAM? Either that or install more RAM (although this feels overkill...)?
I'd ideally like to move to a lossless compression too. Any suggestions about how to proceed?
Beta Was this translation helpful? Give feedback.
All reactions