Open anthumchris opened 5 years ago
Thanks for the pull request.
Opus can decode at different sample rates, and the number of samples that you get would depend on the decoded sample rate. In the Ogg container timestamps use granule position which measures in units of 1/48000 s, and the difference in granule position is what you are displaying here. So this is really a time, just with units that are different than what most people are used to. How about just extending the existing playback time to 5 digits after the decimal point so that no precision is lost? That should be more clear, and also more concise than adding another line of output to show the same thing with more precision.
Good point...I've been living in libopusfile
land which always outputs 48k and forgot about the other sample rates. I wrote the sample output for some internal testing I'm doing, but we can skip the merge if most people won't need it.
Adds "Playback samples" used to calculate the total duration in output.
closes https://github.com/xiph/opus-tools/issues/40