[FFmpeg-devel] [PATCH v5] avformat/pcm: decrease delay when reading PCM streams.

Michael Niedermayer michael at niedermayer.cc
Tue Mar 13 02:35:27 EET 2018


On Sat, Mar 10, 2018 at 03:55:06PM +0100, Paul B Mahol wrote:
> On 3/10/18, Philipp M. Scholl <pscholl at bawue.de> wrote:
> >   Thanks for the discussion. Here's the next version, now with /25 and
> > removed
> > ff_log2().
> >
> >   The blocksize of the PCM decoder is hard-coded. This creates
> > unnecessary delay when reading low-rate (<100Hz) streams. This creates
> > issues when multiplexing multiple streams, since other inputs are only
> > opened/read after a low-rate input block was completely read.
> >
> >  This patch decreases the blocksize for low-rate inputs, so
> > approximately a block is read every 40ms. This decreases the startup
> > delay when multiplexing inputs with different rates.
> >
> > Signed-off-by: Philipp M. Scholl <pscholl at bawue.de>
> > ---
> >  libavformat/pcm.c         | 13 ++++++++++---
> >  tests/ref/seek/lavf-alaw  | 42 +++++++++++++++++++++---------------------
> >  tests/ref/seek/lavf-mulaw | 42 +++++++++++++++++++++---------------------
> >  3 files changed, 52 insertions(+), 45 deletions(-)
> >
> 
> OK

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is what and why we do it that matters, not just one of them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180313/5cc80f2f/attachment.sig>


More information about the ffmpeg-devel mailing list