Created
May 2, 2020 09:40
-
-
Save gamersalpha/30297319e36becfe2825d6da993467e6 to your computer and use it in GitHub Desktop.
Conversation de video en masse provenant de Nvidia record gaming en fichier MKV sans perte de qualité
This file contains hidden or 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 | |
# envoie de la liste des fichier dans une variable database | |
#database=$(find /mnt/FlexGoHome/record/ -type f \( -iname "*.mp4" ! -iname "*.TRT" \)) | |
# boucle utilisant la variable database | |
for db in ${database} | |
do | |
echo "${db}" | |
ffmpeg -i ${db} -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p ${db}.".TRT.mkv" | |
mv "${db}" "${db}"'.TRT' | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment