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

Graphics, sound and multimedia • Re: Very basic question

$
0
0
thank you jamesh.

Nothing new, I already posted here what I am looking for :

1/ capturing uncompressed data (YUV4:2:0 is perfect) from the camera
2/ capturing PCM audio from one microphone
3/ having the two "streams" synced
4/ process them with my application in real-time (that is why I posted a message related to experienced long times memory access).

I achieved the above using CLI commands (arecord and libcamera command) and having data written to files : separate audio and video uncompressed files. BTW, video comes 2s in advance compared to audio....another observation is that "--lens-position" parameter in libcamera-vid command doesn't work perfectly. Would have a look later on these two issues.

Next step, is achieving the same, but through some simple C code lines and data written to buffer in order to process them.

I am not a SW guy, so after Python, I "switched to C" in few days, and not C++.

BTW, switching from python to C solved me the issue of long time memory access.

Statistics: Posted by Paul B65 — Tue Aug 13, 2024 4:14 pm



Viewing all articles
Browse latest Browse all 5901

Trending Articles