From c74bfb6850f8101fbf9d5f33737be8cb1ca1f150 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 4 Mar 2024 11:50:10 +0100 Subject: Change vidlen into function for format --- config/essentials/shell/functions.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'config/essentials/shell/functions.sh') diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 22064e4..11b16c8 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -76,6 +76,7 @@ ngenable() { ln -sf /etc/nginx/sites-available/$1 /etc/nginx/sites-enabled/; } remove_audio() { ffmpeg -i "$1" -cpu-used -$(nproc) -deadline realtime -c copy -an "${2:-out.mp4}"; } nasg() { smbclient //192.168.178.24/Public/ -D ENFANTS/Luca/tmp -N -c "get $1"; } trll() { printf "%s\n" "$1" | trl 2>/dev/null; } +vidlen() { date -d @"$(ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i "$1" | cut -d'.' -f1)" +'%T'; } ipc() { -- cgit v1.2.3