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.
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.
Statistics: Posted by menx — Sun Mar 03, 2024 1:01 am