Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show total samples used to calculate duration in opusinfo #40

Open
anthumchris opened this issue Oct 20, 2018 · 0 comments · May be fixed by #41
Open

Show total samples used to calculate duration in opusinfo #40

anthumchris opened this issue Oct 20, 2018 · 0 comments · May be fixed by #41

Comments

@anthumchris
Copy link

anthumchris commented Oct 20, 2018

opusinfo currently shows the total playback duration/length. It would also be nice to see the total samples that would be decoded. In the example below, 6.02s * 48,000 yields 288,960 samples, which does not reflect the 297,910 samples that would actually be decoded for that file for that file.

$ opusinfo trimmed.opus
Processing file "trimmed.opus"...

New logical stream (#1, serial: 1c033e62): type opus
Encoded with libopus 1.1
User comments section follows...
  ENCODER=opusenc from opus-tools 0.1.9
  ENCODER_OPTIONS=--hard-cbr --bitrate 64
Opus stream 1:
  Pre-skip: 312
  Playback gain: 0 dB
  Channels: 2
  Original sample rate: 48000 Hz
  Packet duration:   20.0ms (max),   20.0ms (avg),   20.0ms (min)
  Page duration:   1000.0ms (max),  888.6ms (avg),  220.0ms (min)
  Total data length: 51101 bytes (overhead: 2.62%)
  Playback length: 0m:06.206s
  Average bitrate: 65.87 kbit/s, w/o overhead: 64.14 kbit/s (hard-CBR)
Logical stream 1 ended
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant