I am writing an application, capturing the MPEG2 transport stream from a DVB-S device and saving its parts to a file in the MPEG Program Stream format.
I use libav* functions to parse and demux the MPEGTS and mux its parts to a MPEGPS. Short video clips are saved just fine, no any packet or synchronization loss. However, I have noticed that my program eats very large amount of RAM. It works on windows. The Task Manager shows that after 10 min of running, it goes to 1Gb and beyond. If I comment out the functions, running threads, calling libav* functions, the memory consumption doesn't go over 7252K. I have compiled the program in MSVC, and linked with Visual Leak Detector (http://www.codeproject.com/KB/applications/visualleakdetector.aspx). It has shown that libav* functions call regularly call av_realloc. Unfortunately I was unable to display the whole call stack. I have found this issue: https://roundup.mplayerhq.hu/roundup/ffmpeg/issue361 which is stated as invalid and closed. My program cycle is outlined here http://article.gmane.org/gmane.comp.video.ffmpeg.libav.user/364 Please, can anyone clarify, if I am wrong in function usage somewhere or it is a real bug. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
