reconfigured for squishing downloaded movies
This commit is contained in:
parent
657c57e433
commit
10b07786be
1 changed files with 6 additions and 10 deletions
|
@ -1,14 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for d in */; do
|
#for d in */; do
|
||||||
cd $d
|
# cd $d
|
||||||
for i in *.mp4; do
|
for i in *.mp4; do
|
||||||
vid_format=$(mediainfo --Inform="Video;%Format%" "$i")
|
ffmpeg -hide_banner -i "$i" -c:v libvpx-vp9 -c:a libopus -crf 30 -row-mt 1 -cpu-used 2 "$i.mkv"
|
||||||
#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"
|
trash "$i"
|
||||||
mv output.mp4 "$i"
|
# mv output.mkv "$i.mkv"
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
cd ..
|
# cd ..
|
||||||
done
|
#done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue