gozfree / gear-lib

Gear-Lib, C library for IOT Embedded Multimedia and Network
MIT License
2.97k stars 805 forks source link

Fetching live camera stream #77

Closed AryanSethi closed 2 years ago

AryanSethi commented 2 years ago

Can I use libjpeg-ex or libavcap: audio/video capture api (v4l2/uvc/esp32/dshow) to fetch live camera stream from my web cam in linux ?

gozfree commented 2 years ago

yes, you can use libavcap to capture audio/video frame in two methods: "avcap_query_frame": sync call with one-by-one frame "avcap_start_stream": with async on_stream callback to get stream refer to test_libavcap.c

gozfree commented 2 years ago

libjpeg-ex is wrapper of libjpeg, aim to convert easily between yuv and jpeg.