[FFmpeg-devel] [PATCH] lavd: implement threaded NewTek NDI output

Marton Balint cus at passwd.hu
Wed Sep 6 11:42:04 EEST 2017

On Tue, 5 Sep 2017, Marton Balint wrote:

> On Tue, 5 Sep 2017, Maksym Veremeyenko wrote:
>> 04.09.2017 17:10, Maksym Veremeyenko пише:
>>> Hi,
>>> attached patch implemented threaded NDI output - separate output thread 
> for 
>>> each stream. it makes audio preview in my case more smooth.
>> updated patch allows running audio/video threads separately
> If I get this correctly, this patch is needed because you can only 
> schedule 1 frame to the NDI API, therefore especially for shorter audio 
> frames the buffer may underrun, right?. If that is the case, then I'd 
> describe this in a bit more detail in the docs and/or the commit message.

I've given this some more thought, and this only makes sense if NDI is 
throttling the output (e.g via clock_audio or clock_video). If not, then 
using threads should not make any difference, so something different might 
be going on. Do you have an idea what?


More information about the ffmpeg-devel mailing list