Récupérer un extrait musical Youtube
Attention, c’est du dense et orienté Ubuntu :
si besoin, installer youtube-dl
sudo apt-get install youtube-dl
youtube-dl http://www.youtube.com/watch?v=nX1YzS_CYIw
si besoin installer avconv (remplaçant de ffmpeg)
sudo apt-get install libav-tools
avconv -i nX1YzS_CYIw.flv -vn -acodec copy nX1YzS_CYIw.aac
si le flux audio n’est pas en aac, adapter l’extension du fichier de sortie… (cf le log de avconv)
si besoin installer audacity
sudo apt-get install audacity
utiliser audacity pour récupérer l’extrait souhaité 🙂
Categorised as: Linux
C’est probablement relativement récent, mais youtube-dl a maintenant une option (-x) pour le faire: https://github.com/rg3/youtube-dl/blob/master/README.md#post-processing-options