Skip to content
A small program that takes a 4:3 aspect ratio video file, and transforms it to a 16:9 video using the GoPro SuperView method
Go Shell
Branch: master
Clone or download

Latest commit

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added progress+duration info + interrupt handling Jul 8, 2019
LICENSE Added GPL v3 license Dec 18, 2019
README.md
build.sh Update build script, push release to GitHub Jul 10, 2019
sample.gif Updated sample image May 30, 2019
superview.go Enforce AAC audio codec in output, fixes #6 Mar 2, 2020

README.md

Superview

This is a small Go program that takes a 4:3 aspect ratio video file, and transforms it to a 16:9 video using the GoPro SuperView method. This means that the image is not naively scaled, but a dynamic scaling is applied where the outer areas are stretched more while the center parts stay close to the original aspect rate.

This is not a 1-1 copy of the GoPro algorithm, but an attempt to reach similar quality of output using the open-source FFmpeg encoder.

Credits for the idea go to Banelle, who wrote the initial (Python) implementation.

Here is a quick animation showing the scaling, note how the text in the center stays the same:

alt text

Requirements

This program requires FFmpeg in your PATH, please install it using one of these ways:

Installation

Download a recent release from the releases page on GitHub. Or build from source using go build.

Usage

To run the program, launch the superview program with the -i (input file) parameter. Optionally, you can provide a -o (output) and -b (bitrate) parameter. Full usage instructions:

Usage:
  superview [OPTIONS]

Application Options:
  -i, --input=FILE         The input video filename
  -o, --output=FILE        The output video filename (default: output.mp4)
  -b, --bitrate=BITRATE    The bitrate in bytes/second to encode in. If not specified, take the same bitrate as the input file

Help Options:
  -h, --help               Show this help message
You can’t perform that action at this time.