amélioration des paramètres ffmpeg dans convertMKV

This commit is contained in:
Cédric Abonnel 2023-12-23 17:13:51 +01:00
parent eb8bf3ed38
commit 516df5809c
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,4 @@
convertMKV.sh
castopod_update.sh castopod_update.sh
mkv_extract.sh mkv_extract.sh
podcast_convertImage.sh podcast_convertImage.sh
@ -6,4 +7,3 @@ play_tophaire.sh
generate_playlist.sh generate_playlist.sh
convertPDF.sh convertPDF.sh
check_domain_cert.sh check_domain_cert.sh
convertMKV.sh

View File

@ -220,7 +220,8 @@ echo -e "==> Traitement des vidéos en cours...\n"|tee -a $logFile
# cmd_exec="${cmd_exec} -map 0:v -map 0:a? -map 0:s?" # cmd_exec="${cmd_exec} -map 0:v -map 0:a? -map 0:s?"
cmd_exec="${cmd_exec} -map 0" cmd_exec="${cmd_exec} -map 0"
# cmd_exec="${cmd_exec} -c:a libvorbis -qscale:a 4" # cmd_exec="${cmd_exec} -c:a libvorbis -qscale:a 4"
cmd_exec="${cmd_exec} -c:a aac -b:a 128k -ac 2 -af loudnorm=I=-18:TP=-1:LRA=11:print_format=summary" # cmd_exec="${cmd_exec} -c:a aac -b:a 128k -ac 2 -af loudnorm=I=-18:TP=-1:LRA=11:print_format=summary"
cmd_exec="${cmd_exec} -c:a eac3 -b:a 256k -ac 2 -af loudnorm=I=-18:TP=-1:LRA=11:print_format=summary"
cmd_exec="${cmd_exec} -c:v libx264" cmd_exec="${cmd_exec} -c:v libx264"
cmd_exec="${cmd_exec} -filter:v \"${vf_option}\"" cmd_exec="${cmd_exec} -filter:v \"${vf_option}\""
cmd_exec="${cmd_exec} ${color_params}" cmd_exec="${cmd_exec} ${color_params}"
@ -229,8 +230,9 @@ echo -e "==> Traitement des vidéos en cours...\n"|tee -a $logFile
cmd_exec="${cmd_exec} -preset slower" cmd_exec="${cmd_exec} -preset slower"
cmd_exec="${cmd_exec} -bf 5" cmd_exec="${cmd_exec} -bf 5"
cmd_exec="${cmd_exec} -crf ${param2} -b:v $bitrate -pix_fmt yuv420p -maxrate $maxrate -bufsize $bufsize" cmd_exec="${cmd_exec} -crf ${param2} -b:v $bitrate -pix_fmt yuv420p -maxrate $maxrate -bufsize $bufsize"
# cmd_exec="${cmd_exec} -crf 23 -maxrate 3000k -bufsize 6000k -b:v 3000k -pix_fmt yuv420p" # cmd_exec="${cmd_exec} -crf 23 -maxrate 4500k -bufsize 6000k -b:v 3000k -pix_fmt yuv420p"
cmd_exec="${cmd_exec} -profile:v high -level 4.2" # cmd_exec="${cmd_exec} -profile:v high -level 4.2"
cmd_exec="${cmd_exec} -profile:v main -level 4.1 -tune film"
cmd_exec="${cmd_exec} -movflags +faststart" cmd_exec="${cmd_exec} -movflags +faststart"
cmd_exec="${cmd_exec} -tune fastdecode+zerolatency" cmd_exec="${cmd_exec} -tune fastdecode+zerolatency"
cmd_exec="${cmd_exec} -max_muxing_queue_size 1024 -ss 00:00:00 -t $duration" cmd_exec="${cmd_exec} -max_muxing_queue_size 1024 -ss 00:00:00 -t $duration"