gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.02k stars 323 forks source link

GoPro H11/12 upload fails at 4GB with ptp2 driver #990

Open mijoost opened 1 month ago

mijoost commented 1 month ago

Latest GoPro models (HERO12/11) split videos at ~12GB chunks/chapters on large (64GB and above) SD cards. File listing in gphoto2 limits the size at 4GB, and uploading with libgphoto2-2.5.31 truncates those files at 4GB, effectively corrupting them (missing important index info at the end).

There used to be a related issue: https://github.com/gphoto/libgphoto2/issues/582 but somehow that fix is not effective here (2.5.31).

I created a proof-of-concept patch to fix this issue against libgphoto2-2.5.31, which corrects both the displayed file sizes and the truncated uploading. This small patch "works for me"(TM), but hasn't been checked for possible side-effects. May the wizards have a look, and take, modify or create something else to the same effect. libgphoto2-2.5.31.gopro_64.patch