Search code examples
oggopus

Get the total number of samples in opus file (libogg and libopus)


Is there a way to get the total number of pcm samples inside an ogg file containing opus audio using libogg and libopus?

Thanks,


Solution

  • I made a similar modification to opus-tools' opusinfo command:

    1. issue: Show total samples used to calculate duration in opusinfo
    2. commit: opusinfo: Add total playback samples to output