TOPIC: Limit ffmpeg memory usage

Limit ffmpeg memory usage 2 years 6 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 6 months ago by zeeme.
The topic has been locked.

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

  • marpada
  • marpada's Avatar
  • OFFLINE
  • Moderator
  • Posts: 5065
  • Thank you received: 150
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 6 months ago #54727

  • Davros
  • Davros's Avatar
  • OFFLINE
  • Administrator
  • Posts: 26983
  • Thank you received: 863
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.245 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.

Powerful Media...

We have been using Hwd products for over a year and are just now migrating to the new HwdMediaShare. The development keeps improving making the component more and more complete. Dave, the lead...

Read more

Brilliant Extension...

Completely recommend this component. We utilise it to manage a large array of media and have found it to be totally supportive and powerful, it meets our needs completely and in a very professional...

Read more

Video Access...

I am developing a site to display videos to users with different Joomla access levels. This product allows me to do that and keeps those videos separate from those uploaded by members in the...

Read more

Blows other...

This component is amazing, it can do so many things and the support in the is top-notch!! The support is quick, thoughtful and very helpful. I continue to be impressed with the sheer amount of...

Read more

Great Component!...

I tried several free components, and purchased another component and none met my needs. Then I purchased HWDMediaShare. There was a learning curve, but this component met and exceeded my needs and...

Read more

Best Mediashare...

I set up a new video-tube and tried many components (free and paid). I need some special features for my site and with each component I reached early the limits, although some of them cost several...

Read more

Absolutely great...

This is an amazing extension with great features. Lots of customization and easy to manage 1000s media. Developers are very responsive and when requested some new features, they developed them with...

Read more

Simply the best...

Stop looking for other multi-media display solutions! This is what you need to go with. The support is phenomenal, the component does exactly what it says, and the forum provides ideas and solutions...

Read more