PDA

View Full Version : x264 memory leaks?


amitye
31st January 2008, 16:23
Hi all,

1. I am using x264 threw ffmpeg (static libs), and I noticed some memory leaks after closing ffmpeg.
Does anyone noticed that?

2. whehre can I find updated x264 static librarues build?

Thanks

Amit,

Dark Shikari
31st January 2008, 17:33
x264 currently leaks one frame worth of memory per x264_encoder_open() and x264_encoder_close() call. This is known, and Akupenguin is apparently not willing to fix it just yet because the fix causes some conflicts with two experimental threading patches.

cogman
31st January 2008, 23:41
Interesting, do the leak get plugged? (IE, only one frame is ever leaked or are multiple frames leaking as the program progresses)

It did always seem that x264 would get a bigger footprint as time went on.

Dark Shikari
1st February 2008, 00:01
Interesting, do the leak get plugged? (IE, only one frame is ever leaked or are multiple frames leaking as the program progresses)

It did always seem that x264 would get a bigger footprint as time went on.Nope, its a single leak that only occurs once.

foxyshadis
1st February 2008, 01:42
Interesting, do the leak get plugged? (IE, only one frame is ever leaked or are multiple frames leaking as the program progresses)

It did always seem that x264 would get a bigger footprint as time went on.

Avisynth plugins are the more common culprits of large leaks.

MasterNobody
1st February 2008, 03:14
With multithreading it leaks much more than 1 frame (and even more than number of threads if you stop encoding at inappropriate moment). For fixing you may try "frames_memoryleak.diff" from this patches (http://mailman.videolan.org/pipermail/x264-devel/2008-January/003921.html) (they are all woking except "colorspace_patch.diff" after revision 733).

amitye
3rd February 2008, 07:52
Does anyone know when this fix will be part of the officials builds?