Skip to content

Thoughts on improving performance #122

@guillaumekh

Description

@guillaumekh

libebur128's performance is well suited for live streams, but it can be a bit slow when working with files, especially large ones.

For example, running loudness-scanner w/ TP detection takes about 2 minutes to scan a 2 hours WAV file on my development machine.

Has anyone given some thoughts on how to improve the library's performance?

I have considered the following at this point:

  • multithreading: looking at the algorithm's spec (see FIGURE 1, page 3), it seems that at the very least it should be possible to parallelize the first stages on a per-channel basis. I'm also wondering if it would be possible to divide a file into multiple segments, and distribute analysis of those over multiple threads.
  • bs1770gain seems to be 3-4 times faster based on testing. I should investigate how they achieve this performance.

It's probably worth noting my employer is open to contracting w/ someone to work on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions