FILE_RES = nb pixel hauteur

This commit is contained in:
qo-op 2021-01-29 01:12:29 +01:00
parent 6cec7028e0
commit c826068399
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ TITLE=$(zenity --entry --width 300 --title "Titre" --text "Indiquez le titre de
YEAR=$(zenity --entry --width 300 --title "Année" --text "Indiquez année de la vidéo. Exemple: 1972" --entry-text="")
# VIDEO RESOLUTION
FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${FILE}" | cut -d "x" -f 1)p
FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${FILE}" | cut -d "x" -f 2)p
RES=$(zenity --entry --width 300 --title="Résolution" --text="Indiquez la résolution de la vidéo" --entry-text="${FILE_RES}" 720p 1080p SD HD 4K)
# VIDEO SEASON or SAGA