Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4997

Other programming languages • Re: Getting recording to work with multiple USB cameras using C# .NET

$
0
0
I figured out why "VideoDevice_NewImageBufferReady" was not firing. It was because, I wasn't launching a new thread with the CaptureContinuous method. Now it's recording and the file is being populated.
Now, I came across another roadblock. The video captured appears to be a still image. I grabbed the video to my dev PC, and open its metadata to know which encoding is being used. It says JPEG. How's that possible? I asked to record with H264.

The method I call is, VideoConnectionSettings videoConnectionSettings = new VideoConnectionSettings(0, (1920, 1080), VideoPixelFormat.H264);

I have these libraries installed on Rp5
v4l-utils libc6-dev libgdiplus libx11-dev
I'm using a Raspberry Pi 5 in headless mode, so I have always a remote connection on to grab the files.

Anyone interested to help me out?
Thanks.
Screenshot 2024-03-03 010048.png

Statistics: Posted by menx — Sun Mar 03, 2024 1:01 am



Viewing all articles
Browse latest Browse all 4997

Trending Articles