Last active
December 25, 2015 17:59
-
-
Save leejunkit/7017376 to your computer and use it in GitHub Desktop.
This file contains 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
# 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