Skip to content

Instantly share code, notes, and snippets.

@d-a-n
Created April 15, 2014 23:24
Show Gist options
  • Save d-a-n/10788366 to your computer and use it in GitHub Desktop.
Save d-a-n/10788366 to your computer and use it in GitHub Desktop.
# join/combine HLS segments to one file and convert it to mp3
cd /dir/with/segments
cat `ls -1v *.ts` > stream.m4a
ffmpeg -i stream.m4a -ab `ffmpeg -i stream.m4a 2>&1 | grep Audio | awk -F', ' '{print $5}' | cut -d' ' -f1`k stream.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment