Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 19:30 schrieb Michael Glenn Williams: Wow that is so cool! Will ffmpeg generate ultrasound sounds to, or do we know of a plugin or other that could do that, then feed the signal to ffmpeg? Sure, you can generate ultrasound with FFmpeg. Try the first example in chapter 3.24.

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Glenn Williams
Wow that is so cool! Will ffmpeg generate ultrasound sounds to, or do we know of a plugin or other that could do that, then feed the signal to ffmpeg? Thank you! On Sat, Apr 18, 2020 at 9:48 AM Michael Koch wrote: > Am 18.04.2020 um 18:25 schrieb Ted Park: > > I don't know where I can find

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 18:25 schrieb Ted Park: I don't know where I can find bats nearby so I couldn't try it but how does it work? The book makes it sound like you can use any mic, even one built into a laptop for this? I suppose that's plausible looking at a typical mic's frequency response graph,

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Ted Park
I don't know where I can find bats nearby so I couldn't try it but how does it work? The book makes it sound like you can use any mic, even one built into a laptop for this? I suppose that's plausible looking at a typical mic's frequency response graph, they are just cut off at 20khz, and don't

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 16:52 schrieb Michael Glenn Williams: The subject line about ultrasound caught me eye on this thread that woke up from last year. Can anyone tell us what the original interest in ffmpeg and ultrasound is? Well, you can use FFmpeg to convert ultrasound to lower frequencies, for

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Glenn Williams
The subject line about ultrasound caught me eye on this thread that woke up from last year. Can anyone tell us what the original interest in ffmpeg and ultrasound is? Thank you! On Fri, Apr 17, 2020 at 3:55 PM Roger Pack wrote: > On Thu, Aug 22, 2019 at 3:16 PM Michael Koch > wrote: > > > >

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 08:41 schrieb Michael Koch: Am 18.04.2020 um 00:54 schrieb Roger Pack: In my test the FFT method has a shorter delay time than the amultiply method. I just found out that the delay can be minimized by setting -audio_buffer_size to a very small value (10ms). Delay is now about

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 00:54 schrieb Roger Pack: In my test the FFT method has a shorter delay time than the amultiply method. I just found out that the delay can be minimized by setting -audio_buffer_size to a very small value (10ms). Delay is now about 0.5 seconds. Short enough to see and hear the

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-17 Thread Roger Pack
On Thu, Aug 22, 2019 at 3:16 PM Michael Koch wrote: > > Hello Paul, > > > ffplay and using pipe gives you huge delay. By using mpv and filtergraph > > directly you would get much lesser delay. > > Default delay introduced by this filter is the one set by win_size in > > number of samples, which

Re: [FFmpeg-user] delay time in live ultrasound converter

2019-08-22 Thread Michael Koch
Hello Paul, ffplay and using pipe gives you huge delay. By using mpv and filtergraph directly you would get much lesser delay. Default delay introduced by this filter is the one set by win_size in number of samples, which is by default 4096. If you need less delay even than this one and can not

Re: [FFmpeg-user] delay time in live ultrasound converter

2019-08-22 Thread Paul B Mahol
On Thu, Aug 22, 2019 at 7:07 PM Michael Koch wrote: > Hello, > > I'm using the following batch file (Windows 7) for a live ultrasound > conversion. > > set "SR=44100" :: Sample rate > set "F=14000" :: Subtracted frequency > set "VOL=10" :: Volume factor >

[FFmpeg-user] delay time in live ultrasound converter

2019-08-22 Thread Michael Koch
Hello, I'm using the following batch file (Windows 7) for a live ultrasound conversion. set "SR=44100" :: Sample rate set "F=14000"  :: Subtracted frequency set "VOL=10"   :: Volume factor set /a "N=4096*%F%/%SR%"   :: N = 4096 * F / SR c:\ffmpeg\ffmpeg -f