json - Merge audio by timestamps -
here example of json, src - path audio file, time - milliseconds, start audio should played.
so question, how can merge whese files in 1 wav or mp3, files played on it's timestamps? every file can play on same time another.
so, scheme, created mp3/wav should contain this:
-----|firstfile-0:02--|ended
----------|secondfile-0:03|ended
------------------------------------------|thirdfile-0:23---------|ended
-------------------------------|silence-|-------------
{ 0: { src: "/audio/drumnbass/hits/dnb_voicefx001_160_c_sl2.wav", time: 803 } 1: { src:"/audio/drumnbass/hits/dnb_voicefx001_160_c_sl2.wav" time:812 } 2: { src:"/audio/drumnbass/drums/rnb_beats006_160_x_sl2.wav" time:1317 } 3: { src:"/audio/drumnbass/drums/rnb_beats006_160_x_sl2.wav" time:1318 } 4: { src:"/audio/drumnbass/sinth/dnb_synth105_160_c_sl2.wav" time:2054 } 5: { src:"/audio/drumnbass/sinth/dnb_synth105_160_c_sl2.wav" time:2054 } 6: { src:"/audio/drumnbass/sinth/dnb_synth105_160_c_sl2.wav" time:2055 } 7: { src:"/audio/drumnbass/bass/dnb_bass018_160_c_sl2.wav" time:2290 } 8: { src:"/audio/drumnbass/bass/dnb_bass018_160_c_sl2.wav" time:2290 } }
console command of ffmpeg sufficient ))
Comments
Post a Comment