tFix output naming with dots in file name - adamsgaard.dk - my academic webpage
(HTM) git clone git://src.adamsgaard.dk/adamsgaard.dk
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 5b74834ab0d5bb546c96734bf5fa36c6b2c7353b
(DIR) parent f7ede02933c6a0d9151da545c67c793b4a66bd0e
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 17 Mar 2020 12:27:22 +0100
Fix output naming with dots in file name
Diffstat:
M pages/004-screencasts.html | 2 +-
M pages/004-screencasts.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/pages/004-screencasts.html b/pages/004-screencasts.html
t@@ -88,7 +88,7 @@ encode() {
ffmpeg -y -i "$1" \
-c:v libx264 -threads 0 -preset faster -pix_fmt yuv420p \
-c:a aac -crf 10 \
- "${1%%.*}_out.mp4"
+ "${1%.*}_out.mp4"
}
for f in "$@"; do
(DIR) diff --git a/pages/004-screencasts.txt b/pages/004-screencasts.txt
t@@ -83,7 +83,7 @@ encode() {
ffmpeg -y -i "$1" \
-c:v libx264 -threads 0 -preset faster -pix_fmt yuv420p \
-c:a aac -crf 10 \
- "${1%%.*}_out.mp4"
+ "${1%.*}_out.mp4"
}
for f in "$@"; do