Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

2017-04-30 Thread Carl Eugen Hoyos
2017-04-29 11:25 GMT+02:00 Cley Faye :
> 2017-04-28 16:52 GMT+02:00 Guilherme de Oliveira Costa
> :
>
>> I am using ffmpeg record a video from a webcam, but the memory
>> usage is very high, and keeps increasing with video length.

You can use massif to check where memory is allocated, and
complete, uncut console output missing.

>> For example, I use an embedded device with 64 MB of RAM, and
>> when I recorded a 30 minute video, I was left with 2MB of RAM in
>> the last minutes of the recording.
>
> I'm wondering, how do you check how much "free" memory you
> have while ffmpeg is running? Since it didn't OOM or die, it might
> just have been cache from the OS, which will gracefully yield if
> another program request it.

Sounds likely.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

2017-04-29 Thread Cley Faye
2017-04-28 16:52 GMT+02:00 Guilherme de Oliveira Costa <
guilherme.olive...@autotrac.com.br>:

> I am using ffmpeg record a video from a webcam, but the memory usage is
> very high, and keeps increasing with video length.
>
> For example, I use an embedded device with 64 MB of RAM, and when I
> recorded a 30 minute video, I was left with 2MB of RAM in the last minutes
> of the recording.
>

​I'm wondering, how do you check how much "free" memory you have while
ffmpeg is running? Since it didn't OOM or die, it might just have been
cache from the OS, which will gracefully yield if another program request
it.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

2017-04-28 Thread Reindl Harald



Am 28.04.2017 um 16:52 schrieb Guilherme de Oliveira Costa:

I am using ffmpeg record a video from a webcam, but the memory usage is very 
high, and keeps increasing with video length.


very high is relative


For example, I use an embedded device with 64 MB of RAM, and when I recorded a 
30 minute video, I was left with 2MB of RAM in the last minutes of the 
recording.


and it did not abort with a out-of-memory on a 64 MB device and so 
finished - what to complain then - memory is there to be used and 64 MB 
in 2017 i would not expect to run anything which does really some work


there are even not much systems booting with 64 MB todays when every 
clock has 1 GB or more



I used valgrind to check for memory leaks, but I only found a 24 byte leak when 
the program finishes. Is this memory consumption expected for ffmpeg?


if there would be memory leaks you would end with OOM very large on such 
a device

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".