[FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

Zhao Zhili quinkblack at foxmail.com
Thu Mar 13 14:50:10 EET 2025


On Mar 13, 2025, at 19:30, 姚靖威 <joneyao6 at gmail.com> wrote:
> 
> protocols like local socket and local file.  In our product, I set
> avio-buffer-size
> value to 1024 in order to reduce memory.The OS we use is based on nuttx, it
> can be used in very small resource chips.

How about runtime option like this?

https://ffmpeg.org/pipermail/ffmpeg-devel/2025-March/341107.html

Please don’t top-posting.

> 
> [image: image.png]
> 
> 
> Zhao Zhili <quinkblack-at-foxmail.com at ffmpeg.org> 于2025年3月13日周四 18:26写道:
> 
>> 
>> 
>>> On Mar 13, 2025, at 17:40, 姚靖威 <joneyao6 at gmail.com> wrote:
>>> 
>>> The purpose of this patch is to modify the default buffer size of the
>> avio
>>> module during compilation.
>>> On some resource-constrained devices to save memory, the current default
>>> value (32K), it can also be set to a smaller value.
>> 
>> Which protocol? And what’s the value used to replace the default 32KB?
>> 
>>> 
>>> Nicolas George <george at nsup.org> 于2025年3月11日周二 19:55写道:
>>> 
>>>> joneyao6 at gmail.com (HE12025-03-11):
>>>>> From: Jingwei Yao <joneyao6 at gmail.com>
>>>>> 
>>>>> Signed-off-by: Jingwei Yao <joneyao6 at gmail.com>
>>>>> ---
>>>>> configure             | 6 ++++++
>>>>> libavformat/aviobuf.c | 2 +-
>>>>> 2 files changed, 7 insertions(+), 1 deletion(-)
>>>> 
>>>> Thanks for the patch. It is missing the explanations about why.
>>>> 
>>>> Regards,
>>>> 
>>>> --
>>>> Nicolas George
>>>> _______________________________________________
>>>> ffmpeg-devel mailing list
>>>> ffmpeg-devel at ffmpeg.org
>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>> 
>>>> To unsubscribe, visit link above, or email
>>>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>>>> 
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>> 
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>> 
> 
> <image.png>_______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> 



More information about the ffmpeg-devel mailing list