dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit ba6aa9cc1d0be4bef2b20a12326e57221966c0b0
parent 070ae598862e27f2412475e1306cf1f6ad1718c2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 17 Mar 2020 12:33:47 +0100

Fix function name and extention handling

Diffstat:
M.local/bin/ffmpeg-delay-audio | 6+++---
M.local/bin/ffmpeg-encode | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.local/bin/ffmpeg-delay-audio b/.local/bin/ffmpeg-delay-audio @@ -1,14 +1,14 @@ #!/bin/sh -encode() { +synchronize() { ffmpeg -y -i "$1" \ -itsoffset 0.300 \ -i "$1" \ -map 0:v -map 1:a \ -c copy \ - "${1%%.*}_out.${1##*.}" + "${1%.*}_out.${1##*.}" } for f in "$@"; do - encode "$f" + synchronize "$f" done diff --git a/.local/bin/ffmpeg-encode b/.local/bin/ffmpeg-encode @@ -4,7 +4,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