avcodec_decode_video, Insufficient memory!!!
Hello!!! How are you? I am tried to use libreria ffmpeg to compress the image which I obtain from webcam, I am doing it frame by frame now, when codifying I do not have problem, but when I decompress uses much virtual memory until she consumes it, and I must reinitiate the computer, avcodec_decode_video() consumes much memory? That I must make to release that used memory? I must open and close the coder whenever decodifique frame? Thanks a lot !!! Maria...
Hi Mar?a, Said Mar?a D?az:
I am tried to use libreria ffmpeg to compress the image which I obtain from webcam, I am doing it frame by frame now, when codifying I do not have problem, but when I decompress uses much virtual memory until she consumes it, and I must reinitiate the computer, avcodec_decode_video() consumes much memory?
You can check if avcodec_decode_video() consumes too much by feeding your webcam files to the ffmpeg command, using the equivalent command line to what your program does, and monitoring its memory usage. If your code has a memory leak, then you may try to use Valgrind to find it.
That I must make to release that used memory?
The vhook watermark contains a small example of decoding video (the function get_watermark_picture() ), you may want to read it. Also Stefano Sabatini has posted recently more code examples in this mail list.
I must open and close the coder whenever decodifique frame?
No. Regards, V?ctor
participants (2)
-
maria201181@gmail.com -
wzrlpy@arsystel.com