Hi,
I use Open Camera 1.55, which is the latest F-Droid offers me for my Fairphone 2 (Fairphone Open OS, AOSP 10.23). The Fairphone does, if a power glitch occurs (that can happen with a worn battery), i.e. under heavy load situations (like taking videos), occasionally reboot spontaneously, thus leaving no time for Open Camera to regularly terminate a recording via the safety stop feature that already exists. At times this does leave a corrupt file. I believe it could be possible to create the obviously necessary temporal file in such a format where a premature termination does not render the entire file illegible, but rather shortened, i.e. a "raw file". Upon a restart of Open Camera, OC could detect such a file and then created a proper, but shortened,, MPEG from that. This would be very helpful, as there are no new Fairphone batteries obtainable, just "compatibles" which also show signs of ageing (Lithium batteries age from the moment of production, even at the dealer, and I guess even the compatibles aren't freshly produced).
Thanks alot
Yours
Oliver
Anonymous
Remark to that: If the phone makes a cold boot, the remaining file oftentimes is very large and bears the termination .mp3, but is unplayable. The size indicates to me that lots of frames have been store in there, so I deem a sanitization should be possible. So far I haven't had the time to try one of the many "MPEG doctor" programs out there, but I gues as long as at leaste one i-frame and a couple of p- and b-frames survive, it must be feasible, but I do not know the manner in which Open Camera stores temporary data.