merci pour le scrip amelioré ! Was: Re: [resolu]: Re: [CBLX] problème avec youtube-dl

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]


Juste pour vous dire merci, Léa et Philippe.
Le script fonctionne et j'ai juste ajouté la ligne:
# YTD.sh - YouTube Downloader - version de Lea Gris - 12 sep 2019

A+
Aldo. 

On Thu, Sep 12, 2019 at 05:11:01PM +0200, Léa Gris wrote:
> Le 12/09/2019 à 16:48, Aldo écrivait :
> >Je l'ai découvert en reprenant ma commande à la main et en rajoutant une à
> >une les options à passer à youtube-dl;
> >puis j'ai modifié l'ancien script et ... ça ne fonctionnait pas !
> >
> >Alors j'en ai réécrit un qui fonctionne:
> 
> J’ai un peu amélioré et corrigé ton script :
> 
> cat >./YTD.sh <<'FinYTD' && chmod +x ./YTD.sh
> #!/usr/bin/env bash
> 
> declare -a mplayer_common_options=(
>   -vo null
>   -vc dummy
>   -nomouseinput
>   -nojoystick
>   -nolirc
> )
> 
> clear
> cat <<EOF
> YTD - YouTube Downloader !
> 
> Downloading from http://www.youtube.com/watch?v=$1
> EOF
> youtube-dl \
>   --ignore-errors \
>   --ignore-config \
>   --prefer-insecure \
>   --youtube-skip-dash-manifest \
>   --format mp4 \
>   "http://www.youtube.com/watch?v=$1";
> echo "..... "
> ls -lrt ./*.mp4
> /bin/stty cols 80 rows 40
> /usr/bin/mplayer "${mplayer_common_options[@]}" -ao pcm ./*.mp4
> ls -lrt ./audiodump.wav
> lame -b 192 ./audiodump.wav ./z.mp3
> cp ./audiodump.wav ./a.wav
> cp ./z.mp3 ./zz.mp3
> /usr/bin/normalize-audio ./a.wav
> /usr/bin/normalize-mp3 \
>   --force-encode \
>   --mp3 \
>   --bitrate 192 \
>   ./zz.mp3
> /usr/bin/mplayer "${mplayer_common_options[@]}" -cache-min 2 ./z*.mp3
> /bin/stty cols 80 rows 25
> exit
> FinYTD
> 
> 
> -- 
> Léa Gris
> 
> 
> --
>   CBLX - CarrefourBLinuX MailingListe
>   Pour obtenir de l'aide, envoyez le sujet  help  à:
>   carrefourblinux-request@xxxxxxxxxxxxxxxxxxx
>   Archives:
>   http://listengine.tuxfamily.org/lists.tuxfamily.org/carrefourblinux
>   ou
>   http://www.mail-archive.com/carrefourblinux@xxxxxxxxxxxxxxxxxxx/
> 

-- 
  |  Verstuurd vanaf mijn GNU/Linux  |  Envoyé de mon GNU/Linux  | 
  |  -----------------  Sent from GNU/Linux  ------------------  | 

-- 
   CBLX - CarrefourBLinuX MailingListe 
   Pour obtenir de l'aide, envoyez le sujet  help  à: 
   carrefourblinux-request@xxxxxxxxxxxxxxxxxxx
   Archives: 
   http://listengine.tuxfamily.org/lists.tuxfamily.org/carrefourblinux
   ou 
   http://www.mail-archive.com/carrefourblinux@xxxxxxxxxxxxxxxxxxx/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/