
! -path "*$(basename "$WORKDIR")/*" -regextype posix-extended -regex '.*\.(mkv|mp4)$' -type f -print))ĪUDIOFORMAT=($(ffprobe -loglevel error -select_streams a:0 -show_entries stream=codec_name,channels -of default=nw=1:nk=1 "$f")) Within the -directory path or \$TEMPDIR.Įcho -e "*** DEBUG ***\n\$TEMPDIR = $TEMPDIR\n\$WORKDIR = $WORKDIR"įILENAME=($(find. Subdirectory named "working" will be used w| -workdir Writable working directory for FFmpeg. d| -directory Specify the directory to process. # Modify TEMPDIR and WORKDIR to suit your needs # Only associative arrays require declaration, but standardizing is a good thing # Declare variables (optionally) are indexed arrays # DESCRIPTION: Transcode with FFmpeg all (mkv, mp4) media files in specified directory,
