mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.82k stars 423 forks source link

for CaptureMode, which is better? #308

Closed peteeU closed 8 months ago

peteeU commented 1 year ago

Hi, I want to ask which is better for CaptureMode,
enum CaptureMode { CAPTURE_LIVE555_THREAD = 0, CAPTURE_INTERNAL_THREAD, NOCAPTURE };

and what is the difference? If I want to capture 4K or higher vision, which performance is better? Thanks a lot!

mpromonet commented 1 year ago

Hi,

CAPTURE_LIVE555_THREAD use live555 mainloop to read frames CAPTURE_INTERNAL_THREAD use a dedicated thread to read frames and then post to live555 mainloop NOCAPTURE deosnot capture, this is usefull to allow lib user to implement capture loop

Best Regards, Michel.