Created
July 26, 2012 17:50
-
-
Save sandys/3183458 to your computer and use it in GitHub Desktop.
Combining many mp3s into a single file
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
sudo apt-get install libavcodec-extra-53 | |
#This method re-encodes the audio. This method is slow, and lossy (mostly noticeable when using low bitrates), but the resulting mp3 file is properly playable in most media players. There are ways to merge mp3s without re-encoding, but the duration of the files can often not be properly detected by most players. | |
cvlc aa.mp3 bb.mp3 cc.mp3 --sout "#transcode{acodec=mp3,ab=<bitrate>,channels=2}:std{access=file,mux=raw,dst=1.mp3}" --sout-keep | |
#much faster | |
sudo apt-get install vbrfix libid3-tools libav-tools | |
cat 1.mp3 2.mp3 3.mp3 > tmp.mp3 | |
#OR | |
ffmpeg -i concat:file1.mp3\|file2.mp3 -acodec copy tmp.mp3 | |
id3cp 1.mp3 tmp.mp3 | |
vbrfix --XingFrameCrcProtectIfCan tmp.mp3 final.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment