edgecase_datafeed1632020-08-09
This is the date at the time of creation of this datafeed article. A checkpoint article containing a hash of this datafeed article may be created on this date or at a later date.14492020-05-28bitcoinb27618deae05910f529240cc6960aeb87f017b12d302327253ee893825ce2bd46321001HtwyqFWNVDoSEVqZwjBRRAV2oEsi8aQXr13MfGs39pR5aEK4iKdoLjVYXKwi6Y3uyPqDownloading_some_ambiencestjohn_piano2020-08-09no
Recently, I found an ambience track that I quite like, which has helped me several times to sink into the undistracted trance-like state in which the best programming occurs.
Details:
- Title: "Rainy Night Coffee Shop Ambience with Relaxing Jazz Music and Rain Sounds - 8 Hours"
- Link:
hyperlinkhttp://www.youtube.com/watch?v=c0_ejQQcrwIwww.youtube.com/watch?v=c0_ejQQcrwI
- Channel: Calmed By Nature
- Date: May 3, 2020
I decided that I'd like to have my own copy. You never know when something will just disappear from the internet.
Also, I didn't want the entire 8-hour track. 1 hour on a loop is fine, and takes up less space.
Here's the approach I used:
0) Machine details.
- Windows 10
- Windows Subsystem for Linux (WSL): Ubuntu 16.04
I'm using the WSL Ubuntu terminal.
I already have the youtube-dl and ffmpeg tools installed.
1) Check the available formats on Youtube.
youtube-dl https://www.youtube.com/watch?v=c0_ejQQcrwI -F
2) Choose a format number. Download the video.
I chose format number 18 (mp4).
youtube-dl https://www.youtube.com/watch?v=c0_ejQQcrwI -f 18
The downloaded file was named "Rainy Night Coffee Shop Ambience with Relaxing Jazz Music and Rain Sounds - 8 Hours-c0_ejQQcrwI.mp4".
I renamed it to "ambience.mp4". It's 1.3 GB.
3) Extract the audio into its own file.
ffmpeg -i ambience.mp4 ambience.mp3
The audio file is 443 MB.
4) Split the audio file into hour-long segments. The last segment will contain any left-over portion of the track.
ffmpeg -i ambience.mp3 -f segment -segment_time 3600 -c copy out%03d.mp3
Source:
hyperlinkhttp://unix.stackexchange.com/a/283547unix.stackexchange.com/a/283547
Note: The -segment_time value is in seconds.
5) Keep the first segment. Delete the others. Also delete the original ambience.mp4 and ambience.mp3 files.
The first segment ends on a jazz resolution and some rain noise, which means it will loop without causing a distraction. If it had ended on a jarring note, I would have looked for a good ending point and used an audio editor (e.g. Audacity) to edit the file to end at that point.
I can use the VLC media player to play it on a loop.
The final file is named "out000.mp3". It's 55 MB.
Rename it to:
ambience_rainy_night_coffee_shop_with_jazz.mp3
iQIcBAABCgAGBQJfMEKaAAoJECL1OzZgiBhwZ/MP/iMRYWFAOpiNzDk4rQiWIZ3t
5BK7vt/OZsqC+qf+hczZTwWLh57LlrBIz88nwG6eqfZwuo7N1Av5u6bytyhw/T9v
pT7zDAQjoBnH3LbTPWXUBOTCXR6oQxNEA5wNfid0/3okrPor+Ke9k4lOtdYWNDmC
yxB8CKm914DDvHCYUcDX/wAjevKdXyKa1hnD3GE2R10pl2eYnW5+9e6DyEgZKM2Y
piA5L+IFd4GU4DGlkXJwOd/ZQbhWrAXql5Pka2ooA97pa0FDLx7FJSou4ZBBu/AG
a7bMcWhXl5Zw8keodXbDvvBZeCjQfQLj4C4I1V6rmru8qFoChjLDkncRn5ipVYM/
FmStW+8+0+TamP+ostZ+jqkx671LnagbGXRXxVB1sjQK7GjLyPzYWyfLG1uhn8k5
uVQMybfiPHfvyGLSjQbd0OJ1RVCHfOXXthRGPkAVbBqC3Z2gAxtv2m6IXB7v7Ssc
jkmFhvNDN8IVZChyy5NSaEovThnDVkurkGYnaQqN7xnIUCry5BB+RPNZ6pNTQ9AI
n45OzTvQmk77tbO/RcjQMxCdNNS7iUvJmJVAoMBjLDwNJn/tlhm5RptAFvuLbBi1
avGZf8RYHwh24RnrtLbbvRoHEENIv5fojnPjSUW6E8wlKp97o7ni78zHnjrSanuu
/Y3ZxW9YidNLZ0BFteRS
=MSQf