dotfiles

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

commit 932977e1944dfc12166bce5bc98f4d57a5e0f868
parent 5fcb4e8dc4812a523c43894f1a0602869be8a8a1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 23 Feb 2021 06:07:13 +0100

mediapres: fix on openbsd

Diffstat:
M.local/bin/backup | 2+-
M.local/bin/mediapres | 7+++++--
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.local/bin/backup b/.local/bin/backup @@ -42,7 +42,7 @@ while :; do break ;; -?*) - die 'Error: Unknown option specified' + die 'error: Unknown option specified' ;; *) # No more options break diff --git a/.local/bin/mediapres b/.local/bin/mediapres @@ -44,7 +44,7 @@ time_to_sec() if [ "$(uname)" = Linux ]; then date -d "$1" '+%s' else - date -j '+%s' "$1" + date -j '+%s' "$(printf "$1" | sed 's/://;s/:/./')" fi } @@ -75,6 +75,9 @@ while read -r tend file useaudio; do out="${tmpfile%.*}.${ext}" if test ! -f "$out"; then + if test ! -r "$file"; then + die "couldn't read $file" + fi case "$(file -ib "$file")" in video/*) recodevid "$file" "$duration" "$out";; @@ -93,7 +96,7 @@ done < "$timestampfile" ffmpeg -y \ -f concat -safe 0 -i "$files" \ - -max_muxing_queue_size 4096 \ + -max_muxing_queue_size 9999 \ $ffmpegcodec \ "$outvideofile" </dev/null