I am using ARM processor (DM8168).
The total memory available is 256 MB.
Also, there are several other processes going on in the system like live 
streaming of 4 streams.

In this scenario system does not always have enough memory to support 138 MB 
allocation.
Thanks,
Tithi
________________________________________
From: [email protected] <[email protected]> on behalf 
of Carl Eugen Hoyos <[email protected]>
Sent: Friday, September 5, 2014 6:11 PM
To: [email protected]
Subject: Re: [FFmpeg-user] MJPEG encoder large memory allocation issue

Tithi Patel <tithi.patel <at> einfochips.com> writes:

> Output #0, image2, to 'out.jpg':
>   Metadata:
>     encoder         : Lavf54.29.104
>     Stream #0:0: Video: mjpeg, yuvj422p, 4000x2992

This image has 250 x 187 macroblocks.
Currently (since nearly ten years), FFmpeg assumes a
theoretical maximum size for one macroblock of
3000 bytes (see libavcodec/mpegvideo.h line 75).
A small overhead for safety is added in
libavcodec/mpegvideo_enc.c line 1702.

Could you explain your usecase? I would assume that
on a modern system where you want to encode 4k a
100 MB allocation (that does not leak) is no
problem or am I wrong?

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
*************************************************************************************************************************************************************
 eInfochips Business Disclaimer: This e-mail message and all attachments 
transmitted with it are intended solely for the use of the addressee and may 
contain legally privileged and confidential information. If the reader of this 
message is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution, copying, or other use of this message or its 
attachments is strictly prohibited. If you have received this message in error, 
please notify the sender immediately by replying to this message and please 
delete it from your computer. Any views expressed in this message are those of 
the individual sender unless otherwise stated. Company has taken enough 
precautions to prevent the spread of viruses. However the co
 mpany accepts no liability for any damage caused by any virus transmitted by 
this email. 
*************************************************************************************************************************************************************
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to