pull out a half hour chunk from the start of an audio file:
ffmpeg -i your_audio_file.mp3 -acodec copy -t 00:30:00 -ss 00:00:00 half_hour_split.mp3
split an audio file (that is just under 5 hours long) into half an hour chunks using ffmpeg, into a folder called “split”
mkdir split; X=0; while( [ $X -lt 5 ] ); do echo $X; ffmpeg -i big_audio_file.mp3 -acodec copy -t 00:30:00 -ss 0$X:00:00 split/${X}a.mp3; ffmpeg -i big_audio_file.mp3 -acodec copy -t 00:30:00 -ss 0$X:30:00 split/${X}b.mp3; X=$((X+1)); done;
ffmpeg切割音频文件
最新推荐文章于 2024-05-16 16:01:36 发布