ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

alias: download youtube video as mp3 audio file with youtube-dl and ffmpeg

(1/1)

Nod5:
This alias lets you enter

--- ---yt https://www.youtube.com/watch?v=dQw4w9WgXcQin FARR to download that youtube content to an mp3 audio file.

This requires the tools youtube-dl (to download the youtube content) and ffmpeg (to convert to mp3).
youtube-dl , http://rg3.github.io/youtube-dl/download.html
ffmpeg , http://ffmpeg.zeranoe.com/builds/ (get the Static build)

alias name

--- ---youtube-dl to mp3regular expression pattern

--- ---^(?:y|yt|you) (.*(?:youtu.be|youtube.com).*)$Results

--- ---youtube-dl mp3 $$1 | C:\folder\youtube-dl.exe --restrict-filenames -o "C:\output\`%(title)s.`%(ext)s" --write-thumbnail --ffmpeg-location "C:\folder\ffmpeg.exe" -f "bestaudio[ext=m4a]" -x --audio-format mp3 --audio-quality 0 --embed-thumbnail $$1
Note: change the two instances of "C:\folder\" to where you have put youtube-dl.exe and ffmpeg.exe (and ffprobe.exe and ffplay.exe from the same package) and change "C:\output\" to what folder you want the mp3 file to end up in.

I also made a short video tutorial on how to do these setup steps, view it here
https://www.youtube.com/watch?v=dQw4w9WgXcQ

tomos:
Looking forward to trying this.

I also made a short video tutorial on how to do these setup steps, view it here
https://www.youtube.com/watch?v=dQw4w9WgXcQ
-Nod5 (January 05, 2016, 07:35 AM)
--- End quote ---
did I just get rickrolled  :tellme: ;D

the only reason I ask is: The uploader has not made this video available in your country.
Sorry about that.
Edit// but I guess if it looks like a duck, it probably walks sings like one too ;-)

mouser:
thanks for the alias -- that's useful!  as tomos points out, the video is not correct (or was a joke?).

Nod5:
did I just get rickrolled  :tellme: ;D
-tomos (January 05, 2016, 02:51 PM)
--- End quote ---
Hehe. I first needed a youtube url to simply illustrate the command and that was the first one that came to mind. But then I thought, when I already have it at hand why not ... roll with it?  8)

tomos:
^ it's been a while :D :Thmbsup:

Navigation

[0] Message Index

Go to full version