From be9442ddbfde18da8f3790bac24d10f699489f30 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 11 Feb 2023 01:30:25 +0100 Subject: [PATCH] Redid ffmpeg scripts --- zsh/ffmpeg | 68 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/zsh/ffmpeg b/zsh/ffmpeg index bdfdac9..2ed6ceb 100644 --- a/zsh/ffmpeg +++ b/zsh/ffmpeg @@ -5,16 +5,19 @@ # ffmpeg-recontainer # source: https://yohanes.gultom.me/2016/05/21/bash-script-to-batch-convert-mkv-to-mp4-linux/ function ff-mp4() { - findpath=$1 - : "${findpath:="."}" - find "$findpath" \( -iname '*.mkv' -o -iname '*.flv' -o -iname '*.mov' \) | while read -r f ; do - dir=$(dirname "$f"); - file=$(basename "$f"); - # ext="${filename##*.}"; - name="${file%.*}"; - ffmpeg -i "$f" -map 0 -c copy -movflags faststart "$dir/$name.mp4"