GithubHelp home page GithubHelp logo

Comments (4)

rillian avatar rillian commented on July 23, 2024

I think some of the confusion here is that the two documents are targetting different applications: real-time communication where latency may be important vs. file encoding for later playback, where quality-for-bitrate is more important than latency or network packet framing overhead.

I'll see if I can clear up the wording. Basically, you should use the default 20 ms frame size for file encoding, and at high bitrates (like 96 kbps stereo).

from opus.

jmvalin avatar jmvalin commented on July 23, 2024

Updated the first wiki page. Don't use larger than 20 ms unless you actually care about fitting more audio per packet. For files, it results in worse quality (as the FAQ states).

from opus.

tejasvi8874 avatar tejasvi8874 commented on July 23, 2024
      Updated the first wiki page. Don't use larger than 20 ms unless you actually care about fitting more audio per packet. For files, it results in worse quality (as the FAQ states).

Is quality inversely proportional to frame size? (for later playback purposes)

from opus.

rillian avatar rillian commented on July 23, 2024

The relation of quality to frame size is a function with central peak. Larger (and smaller!) frame sizes reduce quality for a given codec bitrate. We recommend 20 ms frame sizes unless you have another technical constraint which is more important than quality.

The frame size is flexible to accommodate special applications, but for normal use 20 ms is the best choice. Frame sizes larger than 20 ms limit the encoder's ability to switch modes in response to signal changes. Frame sizes shorter than 20 ms limit the encoder's ability to exploit redundancy in the less-varying signals. Either way you need more bits to make up the difference.

from opus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.