commit 63846f53b20b22b5a3badb2af68eb1c461a97ba6
parent 0a32fe49ebe98208b5ea6d5ec29c91948c12166b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Mon, 19 Aug 2019 14:59:41 +0200
ffmpres: more presets
Former-commit-id: c1345ae56de38049f34b7108f5619a019a4d4bc9
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/ffmpres b/scripts/ffmpres
@@ -28,7 +28,7 @@ process_gif() {
done
}
process_video() {
- select to_fmt in "MP4" "MP3" "GIF"; do
+ select to_fmt in "MP4" "MP3" "GIF" "NO AUDIO"; do
case "$to_fmt" in
"MP4")
ffmpeg -i "$1" -qscale 0 "${1%%.*}.mp4"
@@ -42,6 +42,9 @@ process_video() {
ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y "$palette"
ffmpeg -v warning -i "$1" -i "$palette" -lavfi "$filters [x]; [x][1:v] paletteuse" -y "${1%%.*}.gif"
break;;
+ "NO AUDIO")
+ ffmpeg -i "$1" -an "silent-$1"
+ break;;
*)
;;
esac