[FFmpeg-devel] [PATCH] avformat/file: increase max packet size to 256k for written files

Marton Balint cus at passwd.hu
Sun Jun 18 17:55:29 EEST 2017


On Sat, 17 Jun 2017, Michael Niedermayer wrote:

> On Mon, Jun 05, 2017 at 07:16:57PM +0200, Marton Balint wrote:
>> Another huge performance improvement when using SMB/CIFS as output.
>>
>> Signed-off-by: Marton Balint <cus at passwd.hu>
>> ---
>>  libavformat/file.c | 5 +++++
>>  1 file changed, 5 insertions(+)
>
> is this intended to cause any change in output ?
>
> the following changes:
> ./ffmpeg-old -i ~/videos/matrixbench_mpeg2.mpg -vb 100k -f hds -t 3  hdstest-old
>
> hdstest-new:
> total 404
> drwxr-x---   2 michael michael   4096 Jun 17 21:35 ./
> drwxr-xr-x 168 michael michael 393216 Jun 17 21:35 ../
> -rw-r-----   1 michael michael    760 Jun 17 21:35 index.f4m
> -rw-r-----   1 michael michael    106 Jun 17 21:35 stream0.abst
> -rw-r-----   1 michael michael      4 Jun 17 21:35 stream0Seg1-Frag1
>
> hdstest-old:
> total 492
> drwxr-x---   2 michael michael   4096 Jun 17 21:35 ./
> drwxr-xr-x 168 michael michael 393216 Jun 17 21:35 ../
> -rw-r-----   1 michael michael    760 Jun 17 21:35 index.f4m
> -rw-r-----   1 michael michael    106 Jun 17 21:35 stream0.abst
> -rw-r-----   1 michael michael  93406 Jun 17 21:35 stream0Seg1-Frag1
>

That seems to be aviobuf related. I will re-post the full patch series 
again soon, as I made some changes locally in aviobuf as well.

Thanks,
Marton


More information about the ffmpeg-devel mailing list