we're working on it...

This commit is contained in:
Stefen Auris 2023-02-12 18:19:40 -05:00
parent 27df0fd6ac
commit b4cea704b1

View file

@ -0,0 +1,14 @@
#!/bin/bash
for d in */; do
cd $d
for i in *.mp4; do
vid_format=$(mediainfo --Inform="Video;%Format%" "$i")
#echo video format is $vid_format
if [[ "$vid_format" != "HEVC" ]]; then
ffmpeg -hide_banner -loglevel error -hwaccel cuda -i "$i" -vcodec libx265 -crf 26 -c:a copy -movflags +faststart -x265-params log-level=0 output.mp4
trash "$i"
mv output.mp4 "$i"
fi
done
cd ..
done