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
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
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-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
youtube-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
No comments:
Post a Comment