I found a workaround for my Canon EOS 200D: It works if you don't download the movie clip!
#record clip and leave the clip on the camera's SD card #before recording I cleared the SD card completely via #gphoto2 --delete-all-files --folder="/store_00020001/DCIM/100CANON" #then record to an empty SD card gphoto2 --set-config capturetarget=1 --wait-event=3s --set-config viewfinder=1 --set-config movierecordtarget=0 --wait-event=600s #interrupt recording process whenever you want sudo pkill -f gphoto2 #check camera's SD card for result – double check is necessary as checking only once gives wrong result (!) gphoto2 --list-files > NUL; sleep 3; gphoto2 --list-files; #then download file in a separate process gphoto2 --get-all-files --filename="/home/pi/video.mp4"; > On 21. Mar 2019, at 07:44, Marcus Meissner <mar...@jet.franken.de> wrote: > > Hi, > > On Tue, Mar 19, 2019 at 10:30:57PM +0100, Oliver Grünberg wrote: >> Hey ho, >> >> is there a way to stop an ongoing movie recording and keep the so far result? >> >> Calling 'gphoto2 --set-config movie=0' does not work because the below >> mentioned command already is in use. >> >> 'gphoto2 --set-config capturetarget=1 --wait-event=1s --set-config >> viewfinder=1 --set-config movierecordtarget=Card --wait-event=10s >> --set-config movierecordtarget=None --wait-event-and-download=2s >> --filename="video.mp4"' >> >> I'm currently interrupting gphoto2 by "sudo pkill -f gphoto2". But this also >> trashes any results. >> >> How can I gracefully stop the recording and keep the result? Can I send a >> signal? > > It is currently not possible, but it seems a good idea to abort wait-event on > a signal > for instance. > > Which granularity would be interesting? seconds? or 0.1 seconds or so? > > Ciao, Marcus
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel