I have a directory tracks with 3 files track1.mp3, track2.mp3, track3.mp3. I want to select a random chunk of 10 seconds from each file and combine these chunks into a new file called sample.mp3. How do I do this using ffmpeg?
I am pretty new to ffmpeg and all I managed to do so far is splitting a file into chunks
ffmpeg -i track1.mp3 -f segment -segment_time 10 -c copy out%03d.mp3
Someone, please help. I am on Mac OSX high sierra and bash shell