Showing posts with label yutube to mp3. Show all posts
Showing posts with label yutube to mp3. Show all posts

Tuesday, June 14, 2016

Youtube video to mp3 music for your music player

I listen to a lot of music over youtube, and I feel, thats an awful waste of bandwidth.

If I could just get the MP3 downloaded and listened over and over. Well this is possible! Let me tell you how?


youtube-dl -https://github.com/rg3/youtube-dl
This is a Python code which is a downloader of the video - 

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dlsudo chmod a+rx /usr/local/bin/youtube-dlyoutube-dl https://www.youtube.com/watch?v=eKz6Jpg9op8

you can download a playlist as well in a folder and once the all are downloaded you can run this small shell script. Copy this in some file and run it

for i in *; do
f1=`sed 's/.\{4\}$//' <<< "$i"`;
echo ${f1}; f2="${f1}.mp3";
ffmpeg -i ${i} -q:a 0 -map a ${f2};
done

VIM issues with powerline

What to do if you get this annoying issue - vi requirements.txt ...