9 lines
439 B
Bash
Executable file
9 lines
439 B
Bash
Executable file
#!/bin/bash
|
|
for i in `fdfind -d=1 --extension=mp4`; do
|
|
if [[ (( $(ffprobe -show_streams "$i" 2>&1 | grep fps | awk '{split($0,a,"fps")}END{print a[1]}' | awk '{print $NF}') > 30 )) ]]; then
|
|
snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc -filter:v fps=30 "${i}_30.mp4"
|
|
else
|
|
echo " << no edit for "$i""
|
|
fi
|
|
done
|
|
echo "Dont forget to run the purge program! fps_purge.sh"
|