Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion

FFMPEG multi thread not working
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

FFMPEG multi thread not working

somiksomik Member

I was trying to convert webm audio to mp3 using ffmpeg installed on my ubuntu 22.04 VM. It has been assigned 6 cores however no matter what I set, ffmpeg uses only 1 core, which is 16.6% of overall cpu usage.

I added the option -threads 4 but no change.

Anyone else face similar issue?

Comments

  • drizbodrizbo Member
    edited May 2023

    Whats your full command you use? I think at least libfaac doesnt support multithreading. Might be same for other audio codecs as well.
    Did you try on a video file?

  • somiksomik Member
    edited May 2023

    @drizbo said:
    Whats your full command you use? I think at least libfaac doesnt support multithreading. Might be same for other audio codecs as well.
    Did you try on a video file?

    ffmpeg -i input.webm -vn -ab 128k -threads 4 -ar 44100 -y output.mp3
    

    Just tried on video file. It works just fine. All 4 cores are used. So i guess the webm (aac) is the problem... Thanks for the suggestion!

Sign In or Register to comment.