On 07 Mar 2017, at 03:43, Michele Monteferrante <[email protected]> wrote: > > Sorry, > I was not clear. What I want is a function of time, a graph. > x: time in seconds > Y: amplitude in whatever format > This file must be a simple text file which,for example, I can plot with > Gnuplot and edit whit vim. > Ciao > Michele
Not sure if FFmpeg can do this, but if you hire a coder he’ll be done in no time. If the sound is uncompressed, it’s nothing more of finding the start of the actual sound data, and read the numbers. Creating a sound file from numbers (uncompressed) is pretty easy too. (Although it’s your task to make it sound like ‘something’ .:-) Now, since you want to do math on it, and you have already a nice format to store a couple of numbers (being X the position in the file, Y the value of the bits), why not stick to that as a file format as input? (And to plot, any half decent audio editor can plot a sound file…) hth Bouke >> On 6 Mar 2017, at 10:05, Carl Eugen Hoyos <[email protected]> wrote: >> >> 2017-03-06 4:22 GMT+01:00 Michele Monteferrante <[email protected]>: >>> I have a very simple task. >> >>> Given an audio track (aiff or mp3) I want to convert it in series of real >>> numbers. >> >> Are you searching for the pcm_s32be format? Or pcm_u8? >> >> Carl Eugen >> _______________________________________________ >> ffmpeg-user mailing list >> [email protected] >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> [email protected] with subject "unsubscribe". > > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
