Skip to content

Instantly share code, notes, and snippets.

@cellularmitosis
Last active November 2, 2019 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cellularmitosis/e6da18f8d2a8e94bf188c45f1dbb241f to your computer and use it in GitHub Desktop.
Save cellularmitosis/e6da18f8d2a8e94bf188c45f1dbb241f to your computer and use it in GitHub Desktop.
Script: Audio-only version of the SICP lectures

Blog 2019/10/25

<- previous | index | next ->

Script: Audio-only version of the SICP lectures

I'm about to take a road trip to Chicago to attend two of David Beazley's courses, and in preparation I wanted to listen to the original SICP lectures while driving.

Here's a pair of scripts which will download the lectures and then extract just the audio into AAC files.

You will need to brew install ffmpeg id3v2 or apt-get install ffmpeg id3v2.

#!/bin/bash
set -e
for i in 1a 1b 2a 2b 3a 3b 4a 4b 5a 5b 6a 6b 7a 7b 8a 8b 9a 9b 10a 10b
do
wget http://www.archive.org/download/MIT_Structure_of_Computer_Programs_1986/lec${i}.mp4
done
#!/bin/bash
set -e
track=1
for i in 1a 1b 2a 2b 3a 3b 4a 4b 5a 5b 6a 6b 7a 7b 8a 8b 9a 9b 10a 10b
do
ffmpeg -i lec${i}.mp4 -vn -acodec copy lec${i}.m4a
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment