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".

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

2017-04-28 Thread Guilherme de Oliveira Costa
Hi,



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 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?

This is the ffmpeg command I used:

ffmpeg -f video4linux2 -s 320x240 -t 00:00:10 -i /dev/video0 out.mpg

Regards,
---
Guilherme de Oliveira Costa
Firmware Engineer - Autotrac Comercio Telecomunicacoes
www.autotrac.com.br
guilherme.oliveira(at)autotrac.com.br
Phone: +55 61 3307 7000 (Extension 2665)


Esta mensagem e qualquer anexo a ela s?o documentos confidenciais e 
direcionados exclusivamente ao(s) destinat?rio(s). Qualquer uso, desvio, 
sonega??o, supress?o, revela??o ou divulga??o n?o autorizada ? proibida e 
sujeita ?s san??es e/ou repara??es legais por ato il?cito (C?digo Penal, 
Artigos 151 e 152). Caso n?o seja um dos destinat?rios expressamente indicados, 
por favor entre em contato com o remetente, respondendo este e-mail e destrua 
quaisquer c?pias da mensagem original. Qualquer opini?o, cr?tica ou an?lise 
descrita nesta mensagem ? de responsabilidade ?nica do remetente, a menos 
quando estiver explicitamente expresso que seja da empresa remetente.

This message and any attachment are confidential information for the sole use 
of the intended recipients. Any unauthorized use, deviation, withholdment, 
suppression, disclosure or distribution is prohibited and is subjected to legal 
sanctions and/or compensations per illicit act (Penal Code, articles 151 and 
152). If you are not one of the intended recipients, please contact the sender 
by reply e-mail and destroy any copy of the original message. Any view, comment 
or analysis expressed in this message is sole responsibility from the sender, 
except when it's specifically expressed that it's the view, comment or analysis 
of the company.

___
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".