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

2018-03-10 Thread Philipp M. Scholl
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 --- libavform

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

2018-03-07 Thread Philipp M. Scholl
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 --- libavformat/pcm.c |

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

2018-02-28 Thread Philipp M. Scholl
Anything holding this patch back from being applied? cheers, -phil On Fri, Feb 16, 2018 at 02:13:16PM +0100, Tomas Härdin wrote: > On 2018-02-16 14:04, Philipp M. Scholl wrote: > > Version 3 of the PCM delay patch with further feedback included. > > > > Still not sure ab

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

2018-02-16 Thread Philipp M. Scholl
hen multiplexing inputs with different rates. Signed-off-by: Philipp M. Scholl --- libavformat/pcm.c | 16 +--- tests/ref/seek/acodec-pcm-f32be | 54 - tests/ref/seek/acodec-pcm-f64be | 54 - tests/

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

2018-02-15 Thread Philipp M. Scholl
On Thu, Feb 15, 2018 at 01:54:17AM +0100, Michael Niedermayer wrote: [..snip..] > breaks fate > I was unsure about the ramifications of a changed blocksize. Maybe you can comment on that? > > [...] > > --- a/tests/ref/seek/lavf-alaw > > +++ b/tests/ref/seek/lavf-alaw > > @@ -1,53 +1,53 @@ > > -r

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

2018-02-15 Thread Philipp M. Scholl
On Wed, Feb 14, 2018 at 03:41:18PM +0100, Tomas Härdin wrote: [..snip..] > FFMAX(codec->sample_rate/25, 1) would be nicer > agree. > > +size = FFMIN(size, RAW_SAMPLES * codec->block_align); > > +size = 1 << ff_log2(size); > > -size= RAW_SAMPLES*s->streams[0]->codecpar->block_align; > >

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

2018-02-14 Thread Philipp M. Scholl
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 --- libavf

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

2018-02-13 Thread Philipp M. Scholl
the blocksize for low-rate inputs, so approximately a block is read every 10ms. This decreases the startup delay when multiplexing inputs with different rates. Signed-off-by: Philipp M. Scholl --- libavformat/pcm.c | 41 +++ tests/Makefile |