Script to download white noise mp3 from YouTube
I have a script to make it an MP3, which assumes you have both youtube-dl
and ffmpeg
.
youtube-dl https://www.youtube.com/watch?v=nMfPqeZjc2c --output whitenoise.mp4
ffmpeg -i whitenoise.mp4 -q:a 0 -map a whitenoise.mp3
Now, you can use the MP3 file anywhere. It's 10 hours long, and should do the trick.
(Nothing particularly creative about this one, but I just thought it'd be a great computer hack.)
See also:
How to install youtube-dl
To install youtube-dl
, first ensure that you have a Python installed in your computer. Then, go ahead and install youtube-dl
using pip
.
Life and computer hacks
Life hacks:
Computer hacks:
White noise is surprisingly effective to help newborns sleep
Tried playing a YouTube video containing white noise, and used it in conjunction with a remote controllable red light bulb and swaddling to get the kid to bed.
If you have an old iPhone, then this is a great use case for it: sacrifice the phone and use it to play white noise on demand.
How to install ffmpeg
ffmpeg
is installable using Homebrew, which is my preferred package manager for macOS. The commands:
brew install ffmpeg
Done! Homebrew will install all of the necessary dependencies for you.