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

Python • Re: Smooth USB Webcam Stream

$
0
0
What ended up working for me was this ffmpeg line, and continuously opening and yielding the byte data from the generated image.

Its not 100% perfect, but its certainly better than other things I have been trying.

Code:

ffmpeg -f v4l2 -video_size {resolution[0]}x{resolution[1]} -y -i {camera} -vsync 0 -update 1 -qscale:v {quality} {image_file}

Statistics: Posted by arawra — Wed Sep 10, 2025 2:09 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles