Created
January 1, 2015 19:52
-
-
Save brampersandon/6d80188bc8b6ba85fc22 to your computer and use it in GitHub Desktop.
Download the Internet Archive's KhanAcademyVideos torrent, and then run this script to convert things. See http://brndn.xyz/khan for more info.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getKhan() { | |
for i in *; do | |
if [ -d $i ]; then | |
echo "$i" | |
(cd $i; getKhan) | |
fi | |
if [[ $i =~ \.7z$ ]]; then | |
7z x $i | |
fi | |
if [[ $i =~ \.flv$ ]]; then | |
ffmpeg -i $i -ar 22050 -vcodec libx264 -strict -2 $i.m4v | |
fi | |
done | |
} | |
getKhan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment