Results 1 to 2 of 2

Thread: ffmpeg and multi threading

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    ffmpeg and multi threading

    I have 4 big wmv files i want to convert to avi.

    I use ffmpeg to convert them.

    I notice the ffmpeg uses over 90% of CPU (all cores) when it is running in background.

    I then create two threads each running an instance of ffmpeg. The CPU usage now reaches 100%.

    Should I leave the max threads at two then as its using 100% CPU.

    I once tried 5 threads (5 instances of ffmpeg running at same time) but the PC started bleeping and slowing down. I take it this is due to overloading the CPU?

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: ffmpeg and multi threading

    Is your CPU multi-core ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width