I have a very simple task. Given an audio track (aiff or mp3) I want to convert it in series of real numbers. I do some kind of analysis on this numbers to obtain another series of real numbers (Corresponding to another audio file of the same duration). At this point I want to convert it back to audio file. That you. Michele Monteferrante
If u8 is unsigned 8 bit and pcm32 is 32 bit (4 bytes) I am searching for pcm32. Many many Thanks Michele
On 6 Mar 2017, at 10:05, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
2017-03-06 4:22 GMT+01:00 Michele Monteferrante <m.montefer@gmail.com>:
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 ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
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
On 6 Mar 2017, at 10:05, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
2017-03-06 4:22 GMT+01:00 Michele Monteferrante <m.montefer@gmail.com>:
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 ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On 07 Mar 2017, at 03:43, Michele Monteferrante <m.montefer@gmail.com> 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 <ceffmpeg@gmail.com> wrote:
2017-03-06 4:22 GMT+01:00 Michele Monteferrante <m.montefer@gmail.com>:
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 ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
On Tue, 7 Mar 2017, Michele Monteferrante 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.
Would maybe SoX be a better tool for this? Something like the --plot option? Or, possibly using the .dat output mechanism? (I.E. sox infile.mp3 outfile.dat)
From the soxformat man page:
.dat Text Data files. These files contain a textual representation of the sample data. There is one line at the beginning that contains the sam- ple rate, and one line that contains the number of channels. Subsequent lines contain two or more numeric data intems: the time since the beginning of the first sample and the sample value for each channel. Values are normalized so that the maximum and minimum are 1 and -1. This file format can be used to create data files for external programs such as FFT analysers or graph routines. SoX can also convert a file in this format back into one of the other file formats. Example containing only 2 stereo samples of silence: ; Sample Rate 8012 ; Channels 2 0 0 0 0.00012481278 0 0
participants (4)
-
Bouke / VideoToolShed -
Carl Eugen Hoyos -
Luke Davis -
Michele Monteferrante