diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-03-04 11:50:10 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-03-04 11:50:10 +0100 |
commit | c74bfb6850f8101fbf9d5f33737be8cb1ca1f150 (patch) | |
tree | 04c3aafc03fc6a059e07385e17cba010455f2552 /config/essentials/shell/functions.sh | |
parent | 725c07dddebdd0c9505b25e25c8b358274ccbccf (diff) |
Change vidlen into function for format
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r-- | config/essentials/shell/functions.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |