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

Graphics, sound and multimedia • Re: Very basic question

$
0
0
I mean simply having access to the data from cameras, microphone, and not through file. Who cares about files ?

I dropped Python and switched to C due to memory speed.

I am aware of libraries, but using the APIs as described in my original post with some CLI command is one thing, using them with libraries is another.

As soon as you deal with libraries, you dig into complexity that is a nonsense for people like me.

Example using libcamera-vid : I am happy to see the effect of :

Code:

libcamera-vid --width 1024 --height 768 --codec yuv420 -t 10000 -o file.yuv420
and then ?

libcamera-vid has more than 30 options. Two of them seem interesting (at least that what I assume) for using in C like with picamera you mentioned : buffer-count and circular..... How to use them in a code ? They seems useless as :

" --circular [=arg(=4)] (=0) Write output to a circular buffer of the given size (in MB) which is saved on exit"

as if the circular buffer is used only for writing the file at the end of the process and hence is not accessible by another task....

also from some posts seen on the web, here and on github.

Statistics: Posted by Paul B65 — Tue Aug 13, 2024 2:43 pm



Viewing all articles
Browse latest Browse all 4792

Trending Articles