Regards community,
I want to use ffmpeg to generate a file (txt, csv) from audio values. Any idea?
I use this code to generate the audio levels:
ffplay -f lavfi "amovie=input.aac, asplit [a][out1]; [a] showvolume=f=1:b=4:w=800:h=70 [out0]"
Thank you a lot
The command below will generate a CSV format where the first column represents the audio frame time in seconds, the second column the overall RMS dB volume for that frame, the 3rd column RMS volume for the first channel and the last column the RMS volume for the 2nd channel.
Output:
The
reset
determines how often the stats are calculated. I've set the value to1
i.e. calculated for each audio frame in isolation.