Last active
March 24, 2022 16:20
-
-
Save ArnoldsK/eaf3d0cca4a24c212b0965be8df09685 to your computer and use it in GitHub Desktop.
70mai lite format fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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