Converts Betaflight blackbox gyro to MP4 GoPro Meta data so it can be used with ReelSteady GO

Related tags

Video BlackboxToGPMF
Overview

Here are a bunch of scripts that I created some time ago as a proof of concept that Betaflight blackbox gyro data can be converted to GoPro Metadata Format (GPMF) and embedded into a MP4 file that is shot with non-GoPro camera.

The goal of this is that the file thus produced can be used in ReelSteady GO to achieve image stabilization (similar to GoPro HyperSmooth functionality).

There is a discussion here which gives some basic idea how the scripts can be used.

These scripts are not a finished product and if one wants to use them he'll have to dig in and modify them according to his needs.

Currently I don't plan to develop this project any further but I'm placing it here so that anyone who finds it interesting can base his own work on it.

Currently the active branch of the project is https://github.com/Cleric-K/BlackboxToGPMF/tree/gui It is entirely developed by @attilafustos

Comments
  • Failed to execute script gp.exe

    Failed to execute script gp.exe

    I tried to open gp.exe and Fatal error was detected with information: Failed to execute script gp.exe

    Could somebody help because it is what I looking for year and now I cannot try it :(

    opened by t0ffi 4
  • Optional axis flipping

    Optional axis flipping

    You may end up in the need of flipping axis values like I did on my custom rig. (not sure of the reason, however 2 out of 2 test rigs needed it) so now there is a switch for that. Actually 3 switches

    opened by kcsajtai 1
  • 24fps not working

    24fps not working

    Looks like the tool will get stuck if you use file less than 30fps. Is there a fix for this? I'd really like to use 24fps footage with this. Thanks!

    opened by noobtoob4lyfe 0
  • Shaky result with Gopro 6 profile

    Shaky result with Gopro 6 profile

    Hi ! I'm testing bb to gpmf but i have a problem :

    I got a 4K 16/9 - 60 fps footage from ma dji cam.

    • Using the Gopro 6 profile is pretty shaky (perhaps worse than original) after processing with rsgo
    • Using the Gopro 5 Session profile with the same footage re-encoded in 30fps, result is "perfect"

    I used the same offsets/angle on both processes, the same blackbox fiel, and at then end RSGo detects the right key points on both, good point. But the shaky style with Gopro 6 profile makes me think that one or several gyro axis are inverted and/or swapped each other. That results in additional noise / undesirable movement.

    => Could Gopro 6 profile give wrong information about gyro axis orientation mapping ?

    Thx for your help !

    opened by esprit-dev 0
  • MP4 ATOM is not found for some cameras

    MP4 ATOM is not found for some cameras

    @Cleric-K

    There is a known problem, some cameras produce mp4 headers than are not handled properly by the script. I tried to debug it but my mp4 knowledge is far from yours. It's been a while when I tried to debug it, but I think it was this line return struct.unpack('>I4s', buf) The SMO, InstaOne has this problem. Also people reported unsupported content exported from Premiere. If/when you have some time and want to take a look I can send you some samples.

    opened by attilafustos 16
  • Error

    Error "struct.error" when trying to use video

    Hello, i execute the script, drag the videofile (from a caddx orca) in the console and click enter and following error appears. also happens with gui version video is 2704x1520 59,95fps. A video file called ..._correctedfps.mp4 is created

    Drag the video source file here and press Enter: d:\tmp\betaflight\NORM0009.MP4 Traceback (most recent call last): File "d:/tmp/betaflight/BlackboxToGPMF-master/gp.py", line 16, in <module> numer, denom = fps.get_fps(ffps) File "d:\tmp\betaflight\BlackboxToGPMF-master\fps.py", line 6, in get_fps mp4.find_atom(f, b'moov') File "d:\tmp\betaflight\BlackboxToGPMF-master\mp4.py", line 87, in find_atom size, fourcc2 = peek_header(f) File "d:\tmp\betaflight\BlackboxToGPMF-master\mp4.py", line 76, in peek_header return struct.unpack('>I4s', buf) struct.error: unpack requires a buffer of 8 bytes

    opened by MasterTim17 0
Owner
null
A python generator that converts youtube videos to ascii art in your console.

Video To ASCII A python generator that converts youtube videos to ascii art in your console. This has not been tested for windows! Example Normal mode

Julian Jones 24 Nov 2, 2022
A python program which converts images and video into excel spreadsheets.

image2excel A program which converts images and video into Excel spreadsheets. Usage examples can be found in examples Videos can take a long time to

Oscar Peace 2 Aug 9, 2021
A pure python media player that can be used in AI media API development.

A pure python media player that can be used in AI media API development.

YDOOK 1 Dec 4, 2021
Video-to-GIF-Converter - A small code snippet that can be used to convert any video to a gif

Video to GIF Converter Project Description: This is a small code snippet that ca

Hassan Shahzad 3 Jun 22, 2022
This plugin generates json files used by deovr allowing you to play 2d and 3d video's using the player

deovr-plugin This plugin generates json files used by deovr allowing you to play 2d and 3d video's using the player. Deovr looks for an index file /de

null 10 Sep 29, 2022
MoviePy is a Python library for video editing, can read and write all the most common audio and video formats

MoviePy is a Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects. See the gallery for some examples of use.

null 10k Jan 8, 2023
Automatically logs into VTOP and can perform certain tasks

VTOP_Login Automatically logs into VTOP and can perform certain tasks To run the

Jatin 1 Jan 30, 2022
Terminal-Video-Player - A program that can display video in the terminal using ascii characters

Terminal-Video-Player - A program that can display video in the terminal using ascii characters

null 15 Nov 10, 2022
FLIR/DJI IR Camera Data Parser, Python Version

FLIR/DJI IR Camera Data Parser, Python Version Parser infrared camera data as NumPy data. Usage Clone this respository and cd thermal_parser. Run pip

null 14 Dec 23, 2022
Unofficial GoPro API Library for Python - connect to GoPro via WiFi.

GoPro API for Python Unofficial GoPro API Library for Python - connect to GoPro cameras via WiFi. Compatibility: HERO3 HERO3+ HERO4 (including HERO Se

Konrad Iturbe 1.3k Jan 1, 2023
Fully Automated YouTube Channel ▶️with Added Extra Features.

Fully Automated Youtube Channel ▒█▀▀█ █▀▀█ ▀▀█▀▀ ▀▀█▀▀ █░░█ █▀▀▄ █▀▀ █▀▀█ ▒█▀▀▄ █░░█ ░░█░░ ░▒█░░ █░░█ █▀▀▄ █▀▀ █▄▄▀ ▒█▄▄█ ▀▀▀▀ ░░▀░░ ░▒█░░ ░▀▀▀ ▀▀▀░

sam-sepiol 249 Jan 2, 2023
A python CLI app that converts a mp4 file into a gif with ASCII effect added.

Video2ASCIIgif This CLI app takes in a mp4 format video, converts it to a gif with ASCII effect applied. This also includes full control over: backgro

Sriram R 6 Dec 31, 2021
Read music meta data and length of MP3, OGG, OPUS, MP4, M4A, FLAC, WMA and Wave files with python 2 or 3

tinytag tinytag is a library for reading music meta data of MP3, OGG, OPUS, MP4, M4A, FLAC, WMA and Wave files with python Install pip install tinytag

Tom Wallroth 577 Dec 26, 2022
Read music meta data and length of MP3, OGG, OPUS, MP4, M4A, FLAC, WMA and Wave files with python 2 or 3

tinytag tinytag is a library for reading music meta data of MP3, OGG, OPUS, MP4, M4A, FLAC, WMA and Wave files with python Install pip install tinytag

Tom Wallroth 435 Feb 17, 2021
Python application that can be used to generate video thumbnail for mp4 and mkv file types.

Thumbnail Generator ?? What is This This is a Python application that can be used to generate video thumbnail for mp4 and mkv file types. Installation

Tharindu N. 13 Jan 3, 2023
Extract GoPro highlights and GPMF data.

Python script that parses the gpmd stream for GOPRO moov track (MP4) and extract the GPS info into a GPX (and kml) file.

Chris Auron 2 May 13, 2022
This pyhton script converts a pdf to Image then using tesseract as OCR engine converts Image to Text

Script_Convertir_PDF_IMG_TXT Este script de pyhton convierte un pdf en Imagen luego utilizando tesseract como motor OCR convierte la Imagen a Texto. p

alebogado 1 Jan 27, 2022
A simple python script and it's used for mp4 type video downloading from youtube.

This is a simple python script and it's used for mp4 type video downloading from youtube. also, it's used inbuilt python module pytube. Furthermore, I know we have so many apps and online websites to do the same thing so it's just an experiment to study how to do those things in python.

Yousaf K Hamza 1 Jan 10, 2022
Binary check tool to identify command injection and format string vulnerabilities in blackbox binaries

Binary check tool to identify command injection and format string vulnerabilities in blackbox binaries. Using xrefs to commonly injected and format string'd files, it will scan binaries faster than Firmware Slap.

Christopher Roberts 3 Nov 16, 2021