Giter VIP home page Giter VIP logo

webvids's Introduction

webvids

Terminal app to create optimized videos for the web.

TUI example gif

Installation

Please install / update ffmpeg first as the program requires it.

Run the command below or download the correct binary for your system on the releases page.

One liner

curl -sL "https://github.com/henrygd/webvids/releases/latest/download/webvids_$(uname -s)_$(uname -m | sed 's/x86_64/amd64/' | sed 's/i386/386/' | sed 's/aarch64/arm64/').tar.gz" | tar -xz -O webvids | sudo tee /usr/local/bin/webvids >/dev/null && sudo chmod +x /usr/local/bin/webvids && ls /usr/local/bin/webvids

Manual

# Download the latest release archive
curl -L -o webvids.tar.gz "https://github.com/henrygd/webvids/releases/latest/download/webvids_$(uname -s)_$(uname -m | sed 's/x86_64/amd64/' | sed 's/i386/386/' | sed 's/aarch64/arm64/').tar.gz"

# Extract the binary from the archive
tar -xzf webvids.tar.gz webvids

# Make the binary executable
chmod +x webvids

# Move the binary to /usr/local/bin
sudo mv webvids /usr/local/bin/

Usage

Run the webvids command. You may specify an input file or use the built-in file picker.

webvids input.mp4

The video(s) will be written to a folder named optimized in the current directory.

Use both videos in HTML with source tags:

<video controls>
	<source type="video/webm" src="output.webm" />
	<source type="video/mp4" src="output.mp4" />
</video>

Command line options

webvids can run without interaction by passing in a file and form options:

webvids --crf 26 --preview=false --strip-audio input.mp4

The following options are available:

Flag Description
--crf Constant rate factor
-h, --help Show help
--preview Converts only the first 3 seconds
--skip-av1 Skip AV1 conversion
--skip-x265 Skip x265 conversion
-s, --speed Priority of conversion speed over quality (0-5)
--strip-audio Remove audio track from output
-u, --update Update to the latest version
-v, --version Print version and exit

Uninstall

sudo rm /usr/local/bin/webvids

Todo

  • check that libsvtav1 codec is available
  • allow multiple files to be passed in
  • add flag for optimized settings for animated videos

webvids's People

Contributors

henrygd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.