new scripts

This commit is contained in:
Stefen Auris 2024-02-19 12:27:52 -05:00
parent 5f8bc83090
commit f581c15066
4 changed files with 30 additions and 2 deletions

View file

@ -1,8 +1,8 @@
#!/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"
#&& \ rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
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" && \
rm --verbose "$i" ; mv --verbose "${i}_30.mp4" "$i"
else
echo " << no edit for "$i""
fi