Re: [FFmpeg-user] Multiply audio samples

2018-09-20 Thread Paul B Mahol
On 9/20/18, Michael Koch wrote: > >> >>> c://ffmpeg/ffmpeg -i ultrasonic.wav -f lavfi -i >>> "sine=frequency=15000:sample_rate=48000" -filter_complex >>>

Re: [FFmpeg-user] Multiply audio samples

2018-09-20 Thread Michael Koch
c://ffmpeg/ffmpeg -i ultrasonic.wav -f lavfi -i "sine=frequency=15000:sample_rate=48000" -filter_complex

Re: [FFmpeg-user] Multiply audio samples

2018-09-16 Thread Michael Koch
Am 16.09.2018 um 22:25 schrieb Paul B Mahol: On 9/16/18, Michael Koch wrote: Filter inputs will be auto-converted from any non-float formats to float or double one. Float/double formats are in [-1 .. +1] interval. Thank you very much for the amultiply filter, it works great! Here is an

Re: [FFmpeg-user] Multiply audio samples

2018-09-16 Thread Paul B Mahol
On 9/16/18, Michael Koch wrote: >> Filter inputs will be auto-converted from any non-float formats to >> float or double one. Float/double formats are in [-1 .. +1] interval. > > Thank you very much for the amultiply filter, it works great! > > Here is an example for an ultrasonic converter which

Re: [FFmpeg-user] Multiply audio samples

2018-09-16 Thread Michael Koch
Filter inputs will be auto-converted from any non-float formats to float or double one. Float/double formats are in [-1 .. +1] interval. Thank you very much for the amultiply filter, it works great! Here is an example for an ultrasonic converter which downconverts the 15kHz - 25kHz band to

Re: [FFmpeg-user] Multiply audio samples

2018-09-15 Thread Gyan
On Sat, Sep 15, 2018 at 2:14 PM Paul B Mahol wrote: > On 9/15/18, Michael Koch wrote: > > > That's not what I mean. > > Let's assume I want to multiply two 16-bit audio samples. The interval > > is [-2^15 ... +2^15]. > > After multiplication the interval would be [-2^30 ... +2^30], which is >

Re: [FFmpeg-user] Multiply audio samples

2018-09-15 Thread Paul B Mahol
On 9/15/18, Michael Koch wrote: > Am 15.09.2018 um 09:33 schrieb Gyan: >> On Sat, Sep 15, 2018 at 12:13 PM Michael Koch >> >> wrote: >> >>> Which other filter can I use to convert the input to -1..+1 interval, >>> and convert the output back to 16bit or 24bit interval? I saw that the >>>

Re: [FFmpeg-user] Multiply audio samples

2018-09-15 Thread Michael Koch
Am 15.09.2018 um 09:33 schrieb Gyan: On Sat, Sep 15, 2018 at 12:13 PM Michael Koch wrote: Which other filter can I use to convert the input to -1..+1 interval, and convert the output back to 16bit or 24bit interval? I saw that the multiply filter in sox has these normalizations already

Re: [FFmpeg-user] Multiply audio samples

2018-09-15 Thread Gyan
On Sat, Sep 15, 2018 at 12:13 PM Michael Koch wrote: > > Which other filter can I use to convert the input to -1..+1 interval, > and convert the output back to 16bit or 24bit interval? I saw that the > multiply filter in sox has these normalizations already included. > The aformat filter will

Re: [FFmpeg-user] Multiply audio samples

2018-09-15 Thread Michael Koch
yes, two inputs and one output. I think it would be best if it works independant of bit depth. First normalize the input signals to -1...+1 range, then multiply them so that the result is also in the -1...+1 range, then normalize back to 16bit or 24bit range. It will internally work with

Re: [FFmpeg-user] Multiply audio samples

2018-09-14 Thread Paul B Mahol
On 9/12/18, Paul B Mahol wrote: > On 9/12/18, Michael Koch wrote: >> Am 12.09.2018 um 09:55 schrieb Paul B Mahol: >>> Hi, >>> >>> On 9/12/18, Michael Koch wrote: Is it possible to multiply audio samples from two sources? I'd like to downconvert the 15kHz to 25kHz range to the 0 to

Re: [FFmpeg-user] Multiply audio samples

2018-09-12 Thread Paul B Mahol
On 9/12/18, Michael Koch wrote: > Am 12.09.2018 um 09:55 schrieb Paul B Mahol: >> Hi, >> >> On 9/12/18, Michael Koch wrote: >>> Is it possible to multiply audio samples from two sources? >>> I'd like to downconvert the 15kHz to 25kHz range to the 0 to 10kHz >>> range. First apply a strong 15kHz

Re: [FFmpeg-user] Multiply audio samples

2018-09-12 Thread Michael Koch
Am 12.09.2018 um 09:55 schrieb Paul B Mahol: Hi, On 9/12/18, Michael Koch wrote: Is it possible to multiply audio samples from two sources? I'd like to downconvert the 15kHz to 25kHz range to the 0 to 10kHz range. First apply a strong 15kHz highpass filter, then multiply the signal with a

Re: [FFmpeg-user] Multiply audio samples

2018-09-12 Thread Paul B Mahol
Hi, On 9/12/18, Michael Koch wrote: > Is it possible to multiply audio samples from two sources? > I'd like to downconvert the 15kHz to 25kHz range to the 0 to 10kHz > range. First apply a strong 15kHz highpass filter, then multiply the > signal with a 15kHz sine wave (which produces sum and

[FFmpeg-user] Multiply audio samples

2018-09-12 Thread Michael Koch
Is it possible to multiply audio samples from two sources? I'd like to downconvert the 15kHz to 25kHz range to the 0 to 10kHz range. First apply a strong 15kHz highpass filter, then multiply the signal with a 15kHz sine wave (which produces sum and difference signals), then apply a 10kHz