-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frame is leaking memory #117
Comments
huh, that's weird that it's leaking memory given that i'll have to look into this |
@barzamin yep, that's what i meant (or assumend) by my 2. point |
I've experienced this same issue although I was using https://github.com/zmwangx/rust-ffmpeg |
@xd009642 It seems that (all?) rust ffmpeg bindings are not very optimal, break on different ffmpeg versions etc. I switched to gstreamer when a particular rust version (1.40 or something) refused to compile the ffmpeg bindings. |
examples/transcode-audio.rs is leaking memory. Im encoding music files in batches (transcoding one directory structure and all music files in that directory into an other directory). I was using rayon for concurrent transcoding and i could see ~100mb/s memory increase in htop. The memory usage never went down.
I workarounded/fixed that by calling
av_frame_unref
on the frame in the encode-loop: https://github.com/chpio/audio_conv/blob/d9b9ce739703282e92114ec58bfc3b5b0b8fe590/src/main.rs#L200But that shouldn't be required as
The text was updated successfully, but these errors were encountered: