Does anyone know if there is a "best practice" to concatenate mp3 files to create new files, while preserving the original files?
I am working on a CentOS Linux machine, in command line. I will eventually call the command line from a PHP script.
I have been doing research and I have come up with a process that I think could work. It combines general advice from different forums, blogs, and sources like this one.
So here I go:
I'm thinking that this course of action might be best because I can't necessarily control the quality of the original "source" mp3s.
The only other option I could think of would be to create a script that would perform a similar process upon files being added to the system leaving only the files with the "proper" format and removing the original "erroneous" file.
Hopefully you can see that I have put some thought into this and that I'm trying to leverage the collective knowledge of this community to choose the best direction.
Perhaps there is a better path that I could take?
By concatenate, I mean to join together in sequence to create a new audio file from the "concatenated files."
I currently have the following installed: - Sox - FFMpeg
I'm currently using the sox like this:
sox file1.mp3 file2.mp3 newfile.mp3
By using 'cat' command? This will mangle the mp3 file format by "creating an array" (as it were) of mp3 files within a single mp3 file, with the resultant mp3 working only if the player software is smart enough. So, if you can find and install mp3wrap you could:
mp3wrap output.mp3 `ls -1 *.mp3 | sort`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With