Blog de Javier Castañón – JavCastaPosts RSS Comments RSS

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

[audio http://www.javcasta.com/blog/wp-content/uploads/2010/05/Morethan.mp3]

Youtube2flv2mp3 o más que un sentimiento :-)

Vía: http://bitbucket.org/rg3/youtube-dl/wiki/Home

He encontrado un script en Python para descargar vídeos de youtube vía consola.

El script, vale para cualquier sistema que tenga instalado python.

- download: http://bitbucket.org/rg3/youtube-dl/raw/2010.04.04/youtube-dl

Tras bajarlo, le doy permisos de ejecución, en mi caso lo renombro a youtube-dl.py

Demo:

…$ ./youtube-dl.py http://www.youtube.com/watch?v=SSR6ZzjDZ94
[youtube] Setting language
[youtube] SSR6ZzjDZ94: Downloading video info webpage
[youtube] SSR6ZzjDZ94: Extracting video information
[download] Destination: SSR6ZzjDZ94.flv
[download] 100.0% of 3.87M at   39.71k/s ETA 00:00
Una vez obtenido el video en formato .flv , en mi caso lo he renombrado a MoreThanaFelling.flv, para pasarlo a mp3 (como es natural, solo me interesaba el audio):
Si no tienes instalado ffmpeg
…$ sudo apt-get install ffmpeg

Convertimos el .flv a .mp3
…$ ffmpeg -i MoreThanaFelling.flv -f mp3 -vn -acodec copy Morethan.mp3
Y voila.

Morethan
  • Share/Bookmark
Clika en el altavoz para oir el postAltavoz

Necesito trabajo, si tienes una propuesta de trabajo mail-me to: trabajo.job@javcasta.com

Soy técnico de sistemas, comunicaciones y soporte informático. (CV online). Formación

– realizo scripts por encargo. ver CustomScript


One Response to “Linux – scripting: Descargas vídeos de youtube por consola y pasarlos a mp3”

  1. on 20 May 2010 at 12:04Bitacoras.com

    Información Bitacoras.com…

    Valora en Bitacoras.com: [audio http://www.javcasta. Youtube2flv2mp3 o más que un sentimiento Vía: http://bitbucket.org He encontrado un script en Python para descargar víde……

Leave a Reply

Los enlaces en los comentarios pueden encontrarse libres de nofollow.

Powered by WP Hashcash

?>