forked from axiom-team/astrXbian
encode h265 avant import? Option de réduction de la taille du fichier video
This commit is contained in:
parent
4e1c0c6cf5
commit
1aee58a6d6
|
@ -537,6 +537,13 @@ echo "new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_N
|
|||
|
||||
timestamp=$(date -u +%s%N | cut -b1-13)
|
||||
echo "MEDIAKEY=${MEDIAKEY}
|
||||
echo \"Encoder ${FILE_NAME} en h265 avant import ? Tapez sur ENTER pour continuer sans...\"
|
||||
read reponse
|
||||
if [[ $reponse ]]; then
|
||||
ffmpeg -i $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME} -vcodec libx265 -crf 28 /tmp/output.mp4
|
||||
mv $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME} /tmp
|
||||
mv /tmp/output.mp4 $HOME/astroport/${CAT}/${MEDIAID}/${FILE_NAME}
|
||||
fi
|
||||
~/.zen/astrXbian/zen/new_file_in_astroport.sh \"$HOME/astroport/${CAT}/${MEDIAID}/\" \"${FILE_NAME}\"
|
||||
rm -f /tmp/\${MEDIAKEY}.pass
|
||||
rm -f /tmp/\${MEDIAKEY}.dunikey ## REMOVE KEYS
|
||||
|
|
Loading…
Reference in New Issue