test ffmpeg

ajout commentaire bashrc
This commit is contained in:
Djan GICQUEL 2022-07-26 21:34:29 +02:00
parent 69a5c3780e
commit 2292230b6b

View File

@ -64,6 +64,11 @@ EOF
f_TouchePourContinuer
clear
if ! which ffmpeg ; then
echo "ffmpeg n'est pas installé, mais est requis.";exit
exit
fi
#---------------------------------------------------------
# Installation youtube-dl
#---------------------------------------------------------
@ -76,6 +81,7 @@ f_youtubedlinstall
echo "Ajout dans bashrc...";sleep 2
cat << "EOF" >> $HOME/.bashrc
### YOUTUBE-DL ###
alias dl_video="~/bin/yt-dlp -f 'bestvideo[height<=480]+bestaudio/best[height<=480]' --restrict-filenames --output \"%(title)s\""
alias dl_video_original="~/bin/yt-dlp --restrict-filenames --output \"%(title)s\""
alias dl_musique="~/bin/yt-dlp --extract-audio --audio-format mp3 --restrict-filenames --output \"%(title)s.%(ext)s\""