[opus] Multithreaded encoding?
giles at thaumas.net
Mon Mar 30 21:17:17 UTC 2020
I'm not aware of any other attempts, and there have never been official
plans. It's difficult to partition input for opus at anything other than
the track level, because of the way the decoder derives its adaptive
state from recently-seen audio. I guess cutting together streams with at
least an 80ms overlap wouldn't glitch too much?
You could probably do something to try different encoding options for
each block in parallel to use more cores, but it might be hard to get
Most people just encode multiple streams simultaneously if they want
On 2020-03-29 5:47 p.m., Jesus Cea wrote:
> I am interested in being able to encode a single Opus stream using
> several CPU cores.
> I get a raw audio input and "opusenc" can transcode it at 1200% speed
> (Raspberry PI 3B+). It saturates a single CPU core, but the other three
> are idle.
> Is out there any project to add multithreading options to "opusenc", or
> something in that line?
> Looking around, I have found this:
> Is it out there any other multithreaded "opusenc" drop in replacement?.
> Any plan for future "opusenc" improvement in this area?
> opus mailing list
> opus at xiph.org
More information about the opus