I found something for videos, which looks like this.ffmpeg -i * -c:v libx264 -crf 22 -map 0 -segment_time 1 -g 1 -sc_threshold 0 -force_key_frames expr:gte(t,n_forced*9) -f segment output%03d.mp4I tried using that for an audio file, but only the first audio file contained actual audio, the others were silent, other than that it was good, it made a new audio file for every second. Does anyone know what to modify to make this work with audio files, or another command that can do the same?
How do I split an audio file into multiple?
audio;ffmpeg
This worked for me when I tried it on a mp3 file.$ ffmpeg -i somefile.mp3 -f segment -segment_time 3 -c copy out%03d.mp3Where -segment_time is the amount of time you want per each file (in seconds).ReferencesSplitting an audio file into chunks of a specified length4.22 segment, stream_segment, ssegment - ffmpeg documentation