Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add encode-to-webm to encode videos using best VOD settings
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
bdiff: diff huge files (several gigabytes, if needed), compile with -Wno-long-long | ||
encode-to-webm: encode a video to webm | ||
record-video: capture part of the screen as webm / git, requires github.com/lolilolicon/xrectsel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /usr/bin/zsh | ||
|
||
if [ $# -ne 2 ]; then | ||
echo "Usage: $(basename $0) <input.ext> <output.webm>" >&2 | ||
exit 1 | ||
fi | ||
|
||
yes y | \ | ||
ffmpeg -i $1 -c:v libvpx-vp9 -pass 1 -b:v 1M -threads 0 -speed 4 -tile-columns 6 -frame-parallel 1 -an -f webm /dev/null && \ | ||
ffmpeg -i $1 -c:v libvpx-vp9 -pass 2 -b:v 1M -threads 0 -speed 1 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -b:a 64k -f webm $2 |