TOPIC: Limit ffmpeg memory usage

Limit ffmpeg memory usage 2 years 8 months ago #54700

  • zeeme
  • zeeme's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 27
  • Thank you received: 1
Is there some way to limit the memory usage of ffmpeg?

im using mencoder to convert the videos
but im also converting video to mp4 wich seems to be using ffmpeg
and thumbnails are also used by ffmpeg and dynamic thumbnails also.

and when i upload a 15mb wmv file to be converted. mencoder converts it in 10sek
but ffmpeg takes alot longer time, wich is understandable but very high memory usage on my server wich has other accounts on it also.. its linux centos with cpanel etc etc.

and the mem% in ssh "TOP"command shows way over 1.0%
sometime i even saw 7.0 wich is cracy high.

so is there some way to limit memory usage of ffmpeg to a fixed top.
or perhaps use mencoder for evetyrhing?

thank you,.

/Rick

PS: i think a good idea for next release would be to add an option for external converting server. :)
Last Edit: 2 years 8 months ago by zeeme.
The topic has been locked.

Re: Limit ffmpeg memory usage 2 years 8 months ago #54723

  • marpada
  • marpada's Avatar
  • OFFLINE
  • Moderator
  • Posts: 5081
  • Thank you received: 151
zeeme wrote:
Is there some way to limit the memory usage of ffmpeg?

Short answer no. You can reduce its size slightly by removing support for some codecs, but I don't think it worths it, and I guess different presets may have different memory usage patterns, but beyond of that the memory usage is what it is.
when i upload a 15mb wmv file to be converted. mencoder converts it in 10sek
but ffmpeg takes alot longer time, wich is understandable but very high memory usage on my server wich has other accounts on it also

That's comparing apples and oranges. mencoder is generating a low quality flv file while ffmpeg performs H.264 conversion, that is much more resource intensive, both in CPU and memory usage.
or perhaps use mencoder for evetyrhing?
Mencoder doesn't come near ffmpeg in terms of features. It can't even create mp4 files on its own (you can create a H.264 video stream but would need to use a tool like MP4box to mux it into a mp4 file), so that's a big no go. When the hwdVideoShare project started in 2008 flv was the most popular format, so mencoder was a valid alternative, but unfortnuantely it didn't keep up with the new codecs and containers.
The topic has been locked.

Re: Limit ffmpeg memory usage 2 years 8 months ago #54727

  • Davros
  • Davros's Avatar
  • OFFLINE
  • Administrator
  • Posts: 27328
  • Thank you received: 903
Mencoder doesn't come near ffmpeg in terms of features. When the hwdVideoShare project started in 2008 flv was the most popular format, so mencoder was a valid alternative, but unfortnuantely it didn't keep up with the new codecs and containers.
Just wanted to add that Mencoder will not even be supported in the new product. The product is geared towards HTML5 standards, and there is little point maintaining support for Mencoder based on this.

Heads up! This thread has been locked because it has been inactive for more than 4 weeks.

The topic has been locked.
Time to create page: 0.152 seconds
Powered by Kunena Forum

Let's keep in touch

Sign up and get a free hug!

Enter your name and email address if you want to receive our newsletter. We send one newsletter a month, and we will never sell your details, period.