GNOME Bugzilla – Bug 682714
vp8enc: memory leak if auto-alt-ref-frames=1
Last modified: 2012-11-12 12:07:16 UTC
Created attachment 222447 [details] script vp8enc leaks some where altref frames. I use attached script to encode or convert videos. If i set auto-alt-ref-frames=0, then it performs normal. Currently i can't find the problem by my self, so i'll be happy if some body can do it.
Is this fixed now? I've transcoded about 15mins worth of an HD movie with your settings (without the multipass stuff though), nand I don't see any huge leaks (sadly valgrind aborts with a SIGILL inside libvpx for me, but top only shows miniscule memory increases).
No. I recode one film and on second pass i get memory leak. Here is "ps aux" output: lex 6554 169 25.5 2083220 1523292 pts/4 Sl+ 16:20 68:55 gst-launch-1.0 filesrc location=die_nackte_wahrheit.mkv ! decodebin name=d webmmux name=m ! filesink location=die_nackte_wahrheit.mkv.webm d. ! queue ! vp8enc threads=3 multipass-mode=2 bitrate=800000 multipass-cache-file=multipass.cache mode=vbr auto-alt-ref-frames=1 speed=0 max-keyframe-distance=360 min-quantizer=0 max-quantizer=60 token-parts=1 ! m. d. ! queue ! audiorate tolerance=50000000 ! audioconvert ! audioresample ! audio/x-raw,rate=44100,channels=2 ! vorbisenc ! m. This process is 1.5GB now.
Just to make sure. altref frames are not generated on first pass, or on second pass on video without changes - for example it wont work with videotestsrc.
Created attachment 225625 [details] script v2 This is new script. Newest gstreame use different options. Slomo pointet me on mistakes in my previous script, so this one should produce lots of altref frames. PS: I still have this memory leak.
I upgraded to ubuntu 12.10 and compiled gstreamer 1.0 from git (latest commit "vp8dec: Fix last commit"). I still have this memory leak. On files with small resolution it is OK - i have enough memory. But on long files with 720p, even my workstation can't handle it.
commit 9ad88d265c71f41421f4585ddcc055bc2cff38e9 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon Nov 12 13:01:23 2012 +0100 vp8enc: Don't leak GstVideoCodecFrames that cause the creation of invisible frames Fixes bug #682714.