Skip to content

Instantly share code, notes, and snippets.

@ArnoldsK
Last active March 24, 2022 16:20
Show Gist options
  • Save ArnoldsK/eaf3d0cca4a24c212b0965be8df09685 to your computer and use it in GitHub Desktop.
Save ArnoldsK/eaf3d0cca4a24c212b0965be8df09685 to your computer and use it in GitHub Desktop.
70mai lite format fix
#!/bin/bash
# Fix the audio
for FILE in *; do
if [[ $FILE == *.MP4 ]]; then
NEWFILE=$(shuf -zer -n10 {A..Z} {a..z} {0..9})
echo "Working on ${FILE}..."
ffmpeg -v error -i $FILE -c:v libx264 -crf 22 "${NEWFILE}-audio-fix.mp4"
echo "Done"
fi
done
#!/bin/bash
# Fix the audio and crop the video
for FILE in *; do
if [[ $FILE == *.MP4 ]]; then
NEWFILE=$(shuf -zer -n10 {A..Z} {a..z} {0..9})
echo "Working on ${FILE}..."
ffmpeg -v error -i $FILE -filter:v "crop=1920:1010:0:70" -c:v libx264 -crf 22 "${NEWFILE}.mp4"
echo "Done"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment