News for hackers. Stuff that matters.
Re:Video Stabilization with FFmpeg and VidStab by orbital-decay on Tuesday August 09, 2022 @11:07PM (#32407471)
Here's a 2022-era guide on much better quality DIY video stabilization:

- Capture the gyro and accelerometer data along with your video (slap a smartphone on your camera if it doesn't have its own sensors)

- Feed both video and sensor data to gyroflow [1], synchronize and stabilize it.

The sensor-based stabilization is easy and looks uncannily good compared to pure software stabilization which is typically hit-and-miss. A good 3 axis gimbal is still better as it also compensates for parallax, but for deshaking the results are really similar.

[1] https://gyroflow.xyz/

Re:Video Stabilization with FFmpeg and VidStab by blacklion on Wednesday August 10, 2022 @06:03AM (#32409735)
It is mystery for me, why doesn't DLSR/System cameras doesn't store this information in video and photos. It can be useful for both - for video stabilization and for photos, taken with long exposure times, de-convolution... It is very simple technical solution, but no, nothing from Canon, Nikon, Fuji...
Re:Video Stabilization with FFmpeg and VidStab by braveyellowtoad on Wednesday August 10, 2022 @07:15AM (#32410154)
You have a good point and this does seem to be evolving industry practice. Sony does this in a few of their recent cameras. And Blackmagic just released a new firmware for certain Blackmagic Pocket Cinema Cameras where gyro data is stored in BRAW and then Davinci Resolve has gyro-based stabilisation. It’s not perfect, it’s not magic, it’s not a substitute for a gimbal, and there are some real limitations but that aside the results are shocking. My understanding is that rotations can be very well corrected (as it’s same camera position) but translations are not as successful. Also you typically need to shoot with higher frame rates and there is a significant crop on the resulting image. All that being said I use this frequently and my handheld casual shots are much much nicer now.
Re:Video Stabilization with FFmpeg and VidStab by Ruthalas on Wednesday August 10, 2022 @12:15AM (#32407796)
Is there an app you'd recommend to capture that motion data?

I heard about this at one point, by was stymied by not knowing what I could use to record that data in a useful format for gyroflow.

Re:Video Stabilization with FFmpeg and VidStab by orbital-decay on Wednesday August 10, 2022 @12:33AM (#32407880)
Yes, the compatible apps are listed on their github:

https://github.com/gyroflow/gyroflow#supported-gyro-sources

Re:Video Stabilization with FFmpeg and VidStab by cwillu on Wednesday August 10, 2022 @12:26AM (#32407857)
There are a few apps listed at the very bottom of the link: “Mobile apps: Sensor Logger, G-Field Recorder, Gyro”