Skip navigation
Mediastreams
Currently Being Moderated

CPU resource hog FMLE 3 vs. FME 2.5

Sep 15, 2010 3:09 PM

Has anyone experienced a huge CPU drain by FMLE 3 - going to over 90% (and sometimes 100%) which is causing jerky video capture and audio skips.

I'm encoding at a lower level of 500 kbps for video and 32 kbps for audio with VP6 and the capture to hard disk is so very jerky.

 

FME 2.5 works great at the same settings on the same machine and doesn't use more than 55% of CPU resources, with a very clean capture. I've gone back to using 2.5 till I can figure out what's going on with 3.0/3.1

 

Why is FMLE 3/3.1 such a resource hog? Any help and advice would be much appreciated.

 

My system specs are:

Core2Duo Laptop 2.0 gHz with 4GB Ram

Windows 7 Home Premium 32 bit (and 64 bit)

 

Pesi

http://www.webcastlive.mediastreams.ca

http://www.mediastreams.ca

 
Replies
  • Currently Being Moderated
    Sep 15, 2010 9:29 PM   in reply to Mediastreams

    What are your input and output sizes, fps, codec settings, and devices used?

    Are you testing with the same content in both?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2010 11:43 AM   in reply to Mediastreams

    Are you sure that the input and output sizes are same in both 2.5 and 3.1?

    Could you please compare 2.5 and 3.1 by keeping the input and output sizes same in both? Keep input and output to same 720x420 size and compare the CPU usage.

    Let me know the result.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2010 11:56 AM   in reply to Mediastreams

    Alright.

    Could you please compare 2.5 and 3.1 by keeping the input and output sizes same in both - 720x480 ? I mean do not resize.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2010 2:46 PM   in reply to Mediastreams

    Actually, fmle doesn’t restrict the input sizes; it shows only those sizes, which are supported by the selected device.

     

    I would suggest you to "not resize" unless that is absolutely necessary because of your output size requirements. Not resizing produces better quality and gives better performance. Regarding performance and quality while resizing I can mention 2 points:

     

    1. For a given output size, on increasing the input size, overall CPU usage by FMLE increases.

    2. For a given output size, quality improves on increasing the input size.

     

    You were using Vp6. Try the same tests with H.264 codec and see the difference.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2010 8:37 PM   in reply to Mediastreams

    Can you please check output FPS by both FMLE 2.5 and FMLE 3.0.

    Actually in FMLE 2.5, resize filter was single core resulting in lesser output FPS so in FMLE 3.0 resize filter was improved to use multicores resulting in more CPU usage but more Output FPS.

    if you dont use Resize filter than performance of FMLE 2.5 and FMLE 3.0 should be same but if you are resizing Video then FMLE 3.0 will use more CPU but results in more output FPS.

    Can you please share the snapshot of FMLE statistics for 2.5 and FMLE 3.0 to confirm this.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2010 2:06 AM   in reply to nmalhotra

    Also in FME 2.5 VP6 encoder was single core resulting in lower FPS and than in FMLE 3.1. Steram should be more smooth when you compare output stream from FMLE 2.5 and FMLE 3.0 or above with VP6.

     

    With H264 experience should remain same when no resize is involved

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 13, 2011 4:40 AM   in reply to nmalhotra

    I have been pulling my hair out for two days on this same exact issue!  I've learned a few additional things, so I figured I'd add it here in case in helps someone or someone can use it to help me.

     

    I am experiencing the same problem of maxed out CPU usage on two machines using either 3.1 or 3.2 (same with both). One machine is a Core Duo and the other is a Core i7 (Q 720 @ 1.6 GHz each).  It's crazy that it even maxes out all 8 CPU threads (hyperthreaded dual duo cores!).

     

    Here's what I learned:

     

    1. Doesn't matter between H.264 and VP6.

    2. Upon Reboot, you can get about 5 minutes of encode before the CPU jumps to high 90s and causes stuttering encode.

    3. Core thread usage continues to increase.

    4. If the output is the same size as the input, the CPU usage will remain stable. If however, you change the output size (resizing) then the CPU will begin to spike.  If you stop it before it gets too high, and restart it with the size the same again, it will stay stable, but not drop back down to where it was before (meaning that FME is not letting go of the CPU threads it started using when resizing?).

    5. If I use the webcam as the input source (640x480) and resize to a 16:9 frame size, I can encode indefinitely without going over 20% CPU, it's only if I hook up a camera via Firewire that I max the CPU out.

    6. Elevating the priority in Task Manager of the FME process has no effect.

     

    I hope this can be addressed, as it's obviously some kind of a problem.  A Core i7 computer should be good enough to encode and resize video!  For now, I will have to revert back to 2.5, which runs fine.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 14, 2011 9:20 AM   in reply to shiveman

    Are these running OSX or Windows?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points