jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
366 stars 59 forks source link

Is live data acquisition available in the library? #170

Open uguraltinsoy opened 7 months ago

uguraltinsoy commented 7 months ago

I want to watch the data I read live over USB with ffmpeg or flask with udp or http from my phone, is this possible? So is "gphoto2 --stdout --capture-movie" included in this library?

jim-easterbrook commented 7 months ago

python-gphoto2 provides an interface to the libgphoto2 library that is used by the gphoto2 command line program. There are a couple of example programs that do live preview, but they are very camera dependent. If you look at the source code of the gphoto2 command line program you can see which library functions it uses to do live capture and then call the same functions from your Python program.