Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Conversation de video en masse provenant de Nvidia record gaming en fichier MKV sans perte de qualité
# 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}
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment