FREE RAM DECREASES

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

FREE RAM DECREASES

Nidheesh V
video data is comming to a fifo. The ffmpeg is made to take the fifo data
and copy it to my sdcard when ffmpeg is used to copy the data,the free ram
decreases

tried using different versions of ffmpeg,but same issue

ffmpeg -f h264 -i /tmp/file.h264 -c:a copy -c:v copy /tmp/sdcard/video.avi
This command was used to perform the process

ram free memory should not decrease as time goes.

Is this a memory leak?

how to fix this


*With regards,NIDHEESH V**VVDN Technologies Pvt Ltd*
Cell: +91 8129732556

--
_Disclaimer: _© 2019 VVDN Technologies Pvt. Ltd. This e-mail contains
PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the
addressee(s). If you are not the intended recipient, please notify the
sender by e-mail and delete the original message. Further, you are not to
copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful.__
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FREE RAM DECREASES

Moritz Barsnick
Hi Nidheesh,

On Fri, Sep 20, 2019 at 09:43:02 +0530, Nidheesh V wrote:
> video data is comming to a fifo. The ffmpeg is made to take the fifo data
> and copy it to my sdcard when ffmpeg is used to copy the data,the free ram
> decreases
[...]
> ffmpeg -f h264 -i /tmp/file.h264 -c:a copy -c:v copy /tmp/sdcard/video.avi

Please always include ffmpeg's complete, uncut console output.

> ram free memory should not decrease as time goes.

What operating system are you using?
How do you measure this decrease in "free RAM"?
How long is this encode (input/output bytes, time)?

> Is this a memory leak?

Only if ffmpeg's memory usage increases. The rest of the system is not
really of interest to ffmpeg's memory usage concerns.

Let me kindly point out that Linux, and some other Unixes, use *as much
RAM as possible* for various thinks, in particular for caching the file
system. (These caches get flushed if other programs require the RAM,
roughly speaking.) You could be seeing an effect of the OS caching /tmp/file.h264
(unlikely, as it's a fifo) or /tmp/sdcard/video.avi.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: FREE RAM DECREASES

Carl Eugen Hoyos-2
Am Fr., 20. Sept. 2019 um 10:06 Uhr schrieb Moritz Barsnick <[hidden email]>:

> > Is this a memory leak?
>
> Only if ffmpeg's memory usage increases.

For many output file types, FFmpeg's memory usage
does increase over time although there is no leak.
(Increased memory usage is neither a necessary nor
a sufficient indication for a memory leak.)

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".