we're working on it...
This commit is contained in:
parent
27df0fd6ac
commit
b4cea704b1
1 changed files with 14 additions and 0 deletions
14
scripts/server_bin/squishyVid.sh
Executable file
14
scripts/server_bin/squishyVid.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue