Skip to content

Commit

Permalink
Rename CLI version to superview-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Niek committed Jul 11, 2020
1 parent cde9812 commit cf5bbb5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,31 @@ Credits for the idea go to _Banelle_, who wrote the [initial (Python) implementa

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

![alt text](sample.gif "Sample of the scaling result")
![alt text](.github/sample.gif "Sample of the scaling result")

## Requirements

This program requires FFmpeg in your `PATH`, please install it using one of these ways:
This program requires FFmpeg to be installed on your computer. If needed, please install it using one of these ways:

- Linux: install from your local package manager, for example: `apt instal ffmpeg`
- Windows: Download from https://ffmpeg.zeranoe.com/builds/
- macOS: Download from https://ffmpeg.zeranoe.com/builds/ or install using Homebrew: `brew install ffmpeg`
- **Linux**: install from your local package manager, for example: `apt instal ffmpeg`
- **Windows**: Download from https://ffmpeg.zeranoe.com/builds/ and extract the ZIP file in the same directory as superview
- **macOS**: Download from https://ffmpeg.zeranoe.com/builds/ and put in the same folder as superview, or install using Homebrew: `brew install ffmpeg`

## Installation

Download a recent release from the [releases page on GitHub](https://github.com/Niek/superview/releases). There are two versions: a command line program called `superview` and a graphical version called `superview-gui`.
Download the latest release from the [releases page on GitHub](https://github.com/Niek/superview/releases). There are two versions: a command line program called `superview-cli` and a graphical version called `superview-gui`.

## Usage

To run `superview-gui`, simply double-click the icon. Choose an input video file, optionally change some settings and click "Encode". The program will ask you where to save the output.

To run the CLI program, launch `superview` program with the `-i` (input file) parameter. Optionally, you can provide a `-o` (output) and `-b` (bitrate) parameter. Full usage instructions:
![alt text](.github/sample-gui.png "Sample of GUI")

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

```
Usage:
superview [OPTIONS]
superview-cli [OPTIONS]
Application Options:
-i, --input=FILE The input video filename
Expand All @@ -47,7 +49,7 @@ Help Options:

## Development

If you want superview from source, run `go build superview.go common.go`. To build the GUI version, run `go build superview-gui.go common.go`. See [build.sh](/build.sh) for an example how to cross-compile.
If you want superview from source, run `go build superview-cli.go common.go`. To build the GUI version, run `go build superview-gui.go common.go`. See [build.sh](/build.sh) for an example how to cross-compile.

## Contributors ✨

Expand Down
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ if [ $# -ne 1 ]; then
fi

if ! command -v fyne-cross &> /dev/null; then
echo "This build script requires fyne-cross to be installed:"
echo "go get github.com/lucor/fyne-cross/cmd/fyne-cross"
echo "This build script requires fyne-cross v2 to be installed:"
echo "go get github.com/lucor/fyne-cross/v2/cmd/fyne-cross"
exit
fi

Expand All @@ -19,13 +19,13 @@ echo "Build packages with version number ${VERSION}"
platforms=("windows/amd64" "windows/386" "darwin/amd64" "linux/386" "linux/amd64")
files=()

for program in "superview" "superview-gui"; do
for program in "superview-cli" "superview-gui"; do
for platform in "${platforms[@]}"; do
platform_split=(${platform//\// })
GOOS=${platform_split[0]}
GOARCH=${platform_split[1]}

if [ "$program" == "superview" ]; then
if [ "$program" == "superview-cli" ]; then
output_name="build/${program}-${GOOS}-${GOARCH}-v${VERSION}"
if [ $GOOS == "windows" ]; then
output_name+=".exe"
Expand Down
File renamed without changes.

0 comments on commit cf5bbb5

Please sign in to comment.