Building a YouTube MP3 Downloader with Exodus, FFmpeg, and AWS Lambda
intoli.com
intoli.com
youtube-dl --extract-audio --audio-format mp3 youtube.com/watch?v=00000000
[1] https://rg3.github.io/youtube-dl/For local work, https://www.npmjs.com/package/ytdl is a CLI powered by the same module. There is also a python-based youtube-dl command https://rg3.github.io/youtube-dl/ that supports a ton of sites
@ "Download YouTube Videos as MP4" did that, but author removed that script from the internet (got google nastygram maybe?). Iv got a copy at https://github.com/raszpl/smplayer4YT
http://m.youtube.com/watch?v=XxXxXx&layout=mobile&ajax=1
There you have all stream files in a nice json format, which means opus and m4a for audio files.
I have a python project which is very quick to gather metadata, because I wanted to have a responsive YouTube app without using the browser. Had no time for it recently, though.
Wouldn't ogg be a viable alternative too?
Support for Opus is unfortunately still somewhat sparse, but AAC support is essentially universal on modern devicese. So I can't think of any reason to favor this approach over:
youtube-dl -f bestaudio[ext=m4a] "$URL"
Even YouTube's 128 kb/s copies won't satisfy audiophiles.[1] - https://github.com/awslabs/aws-serverless-express
[2] - https://github.com/intoli/exodus
I’m just so tired of the algorithmic hooks to waste my time.
There are 5-6 channels I really enjoy but get tired of the effort needed to fend off the constant temptation tailored to my tastes.
In regards to algorithmic hooks (nice shorthand, I'm borrowing that), there are various extensions available on the major browsers which block comments, the sidebar, videos loading in the player at the end of the video, etc.
I am finally quite happy with my defence kit, I should write about it somewhere. /r/nosurf has plenty of tips anyway.
4C. You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate.
Is https://www.youtube.com/watch?v=[videoID] a "video playback page"?
Most "YouTube downloaders", just like any popular web browser, access the Content through these pages.
These pages contain the (escaped) URLs for the video in various formats.
Do the terms restrict the software, e.g. HTTP client, one can use to access to these URLs?
For example, "You agree not to access Content through any software other than Google Chrome, official Google mobile app, etc."
If a user prefers some other http client not approved by Google, is that a violation of the ToS?
If it’s just a github repo project not making any money then unless it gets crazy popular you should be fine.
Some uploaders are also simply unskilled; I'm mostly after video game soundtracks to listen to in my car, and especially for newer soundtracks you have to watch out for the uploaders trying to be "first" to gain the popularity, while sometimes using poor settings or a bad rip. There's nothing youtube can do to improve bad source audio.