Last active
April 13, 2025 05:20
-
-
Save mebaysan/b58df7a0c495577902742e29dec9f80f to your computer and use it in GitHub Desktop.
Ubuntu Screen Recorder WEBM to MP4
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
#! /bin/bash | |
# sudo apt-get install ffmpeg | |
# if ffmpeg is not installed, install it | |
if ! [ -x "$(command -v ffmpeg)" ]; then | |
sudo apt-get install ffmpeg | |
fi | |
# if no arguments are given, print usage | |
if [ $# -eq 0 ]; then | |
echo "Usage: convert <input> <output>" | |
exit 1 | |
fi | |
INPUT_FILE="$(pwd)/$1" | |
OUTPUT_FILE="$(pwd)/$2" | |
ffmpeg -i $INPUT_FILE -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" $OUTPUT_FILE |
webm is trash
webm is trash
Indeed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wish they just saved it as mp4!