Skip to content

Instantly share code, notes, and snippets.

@leejunkit
Last active December 25, 2015 17:59
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 leejunkit/7017376 to your computer and use it in GitHub Desktop.
Save leejunkit/7017376 to your computer and use it in GitHub Desktop.
# Rip the cd to a single 64kbps AAC-HE v2 file
$ cdparanoia -q 1- - | ffmpeg -i - -c:a libfdk_aac -profile:a aac_he_v2 -b:a 64k output64_2.m4a
# ...or mp3 (with --preset voice)
$ cdparanoia -q 1- - | lame --abr 56 -mm - <output.mp3>
# Concat the resulting m4a files if there is more than one disc
$ ffmpeg -f concat -i <(for f in *.m4a; do echo "file '$(pwd)/$f'"; done) -c copy combined.m4a
# Segment the combined.m4a file for HLS in segment001.aac, segment002.aac etc
$ ffmpeg -i combined.m4a -codec copy -map 0 -f segment -segment_list segments.m3u8 segments/segment%03d.aac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment