Created
September 30, 2022 15:44
-
-
Save Cobesz/e56ffb051c3fac426861e8fc1c198c41 to your computer and use it in GitHub Desktop.
Gnome screenshot tool allows you to record screencasts in webm format. For some usecases (documentation for example) I want to convert this screencast to a mp4 format so I can easily share it to contacts in Whatsapp/Telegram/Signal or some other application that doesn't support webm playback.
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 | |
INPUT="$1" | |
OUTPUT="$(basename "${INPUT%.*}")" | |
ffmpeg -i "${INPUT}" \ | |
-vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" \ | |
"${OUTPUT}.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment