Skip to content

Knifa/osd-dump-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hang on a minute!

This might not be what you need.

Give the OSD Overlay Tool a try first. It runs entirely in-browser on your own machine and will save you the effort of installing Python, etc.

This will become part of the official configurator soon.

osd-dump tools

Overlays msp-osd recordings over video files.

Requirements

  • Windows users should use WSL.

  • Python 3.8+ is required.

  • ffmpeg is required.

    # Debian and friends
    $ sudo apt install ffmpeg
    
    # macOS
    $ brew install ffmpeg

Setup

# Setting up a virtual environment is recommended, but not required.
python -m venv venv
source ./venv/bin/activate

# Install dependencies.
$ pip install -r requirements.txt

Usage

  • Place font files and video files in this directory.
# Check out the options.
$ python -m osd --help

  usage: __main__.py [-h] [--font FONT] [--wide] [--hd] video

  positional arguments:
    video        video file e.g. DJIG0007.mp4

  options:
    -h, --help   show this help message and exit
    --font FONT  font basename e.g. "font"
    --wide       is this a 16:9 video?
    --hd         is this an HD OSD recording?
    --fullhd     are you using full-hd or fake-hd in this recording?

# Convert your recording!
$ python -m osd --font font_inav --hd --wide DJIG0001.mp4

  INFO:__main__:loading OSD dump from DJIG0001.osd
  INFO:__main__:rendering 168 frames
  INFO:__main__:passing to ffmpeg, out as DJIG0001_with_osd.mp4
  ... etc ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages