Correctifs script de conversion de musique
This commit is contained in:
parent
5e4498b2d7
commit
fec4d3ccc7
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ do
|
|||
continue
|
||||
fi
|
||||
|
||||
if [[ "${file}" =~ .flac$ ]]
|
||||
if [[ "${file}" =~ .flac$ ]] || [[ "${dir}" == "Vidéos/" && "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ video/ ]]
|
||||
then
|
||||
dstfile="$(basename -s .flac "$file").opus"
|
||||
|
||||
|
@ -49,7 +49,7 @@ do
|
|||
|
||||
(
|
||||
echo " $file"
|
||||
ffmpeg -n -loglevel error -i "$file" "file:${dstdir}${dstfile}"
|
||||
ffmpeg -n -loglevel error -i "file:$file" "file:${dstdir}${dstfile}"
|
||||
echo "[${green} OK ${reset}] $file"
|
||||
) &
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue