Re: [resolu]: Re: [CBLX] problème avec youtube-dl |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/carrefourblinux Archives
]
- To: carrefourblinux@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [resolu]: Re: [CBLX] problème avec youtube-dl
- From: Léa Gris <lea.gris@xxxxxxxxxxxx>
- Date: Thu, 12 Sep 2019 17:11:01 +0200
- Autocrypt: addr=lea.gris@xxxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQINBE8OHUcBEADQjtKQcz/T/msKQcvyWEmBz5aKFGYjdErVABpJAiGqNa9m7kr2P5i7iXR/ nuUswsPlVmRxeIWsAMxoU02cwicRoydEJgbZH6KwXMmAynersG70JIobOXF2g5W683pf1R35 PNjrw3sIiQJgpRi2idL0Fvhp8h78fvHkseaomRg8r8zvOQ4AnbWcywDwbZzDVLrMuEUi27Yh j86RaJDcv6P0ygmMiVFHYFyIDBpl2uVbePanpjT8lwzBCJ1MVzc0Bfyi2W0dYlK1dP5pWeQb kMmizpg4SqF0mMSH1Iq8q9AR+M+eN7K2yzpJ3Nez+GurpAkXEdomCF9CkKQbRRbR+AiZfl6n cJwg0+dhJn70vSwdEyRHlX/39ZZA9v4PC18Ukjf9nY9Bb3vl8M5Mo/g9zHertjPlQcGwOubn 05fuehh7H4kUAPhT0w/6R05gT/lw2e89i7TP/Qxixc00DU6mJX3OEWg23fGt8m22mA92+XQx ZEvAviZSjvj+xL7wP7u9r+4RfNT9N1Ebs9tGXFYIpbBZSKaPFTmzJHILuya+otaFs9DKXRWI 9R3W8sP0YHCEfZpYHoAFfofmC4hZds40z7/msqVJ+2XaPfXsmXCL/juWpYJF3LbPdN87r5UY fqmx3ezTYRofa1pxzZn60fmkFuSUH7qqvKKIdheDlqZI6D3+aQARAQABtC9Mw6lhIEdyaXMg KExhIE5vaXJhdWRlKSA8bGVhLmdyaXNAbm9pcmF1ZGUubmV0PokCOwQTAQIAJQIbAwYLCQgH AwIGFQgCCQoLBBYCAwECHgECF4AFAlAAB+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a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=noiraude.net; s=noiraude; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=egbf7+uzS6Nka6yh83YeITQTanyMBQO1RXIa/Q0YxLY=; b=oVhyUg2lCbYHYjANORuFTiX9JV beLEe+nDLQwfBETTpQO0PSDfdaPdtxdU/YKjyQ5zarZn/9PkK+OfvApHF67z/v2xBdPkGJFDLOwKf zylj1lCMWatbjde1/CbtlhDTuqRIZ7OBLu0BQbhdSkECIj2qZKcVAvIJoaqJEfk2KqbVjzZjqTKL0 H5i3bOPVemKxlXnuI87zmjQ5rrGUZJotsk7YPt5LtILEz7Hng2xUdczgZ2lPlj76a/T3kLejGtd/v A9HI1XueNPAktwGMF4hAdSnGQ6ttJq7p6kn6RfE/dqYBbkKDx3h20leaKg+YRcj88h7nRSWM/f7zG aP6bMGqA==;
- Openpgp: id=2A931E283F202EE5BFCC4F7070946F168078ED52; url=https://www.noiraude.net/8078ED52.asc
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/