Skip to content

Instantly share code, notes, and snippets.

@vivekn
Last active May 23, 2016 01:19
Show Gist options
  • Save vivekn/94080cafe921a0f50d7c67c958809588 to your computer and use it in GitHub Desktop.
Save vivekn/94080cafe921a0f50d7c67c958809588 to your computer and use it in GitHub Desktop.
PREFIX='http://mediastream2.brown.edu/media/_definst_/vreserves/harrison_ampa2610/mp4:'
for i in `seq 1 36`
do
file=`curl http://brown.edu/cis/sta/dev/harrison_ampa2610/lecture_$i.html | grep mp4 | awk '{print substr($2, 2, length($2)-3)}'`;
ffmpeg -i $PREFIX$file/playlist.m3u8 -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment