Segment video with FFMPEG using custom filenames for output

Viewed 53

I'm trying to segment a video and name the cropped files in a specific way. Right now I'm using

ffmpeg -i input.mp3 -f segment -segment_time 59 output_%03d.wav

and looping over created files, parsing their filenames and renaming them accordingly. I have an array which contains

array=[1650027545, 1650027300, 1650026502, ...]

and want the output files to be in;

output_1650027545.wav
output_1650027300.wav
output_1650026502.wav

format. Since there's no loop, I can't figure out how to implement such a naming scheme. Any help is appreciated!

0 Answers
Related