Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: How to determine the Q of existing ogg file (Read 4440 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to determine the Q of existing ogg file

Is there an easy was to find the quality setting of an ogg file without saving a copy at different settings until a match is found?

Re: How to determine the Q of existing ogg file

Reply #1
The ogginfo tool (from the vorbis-tools package) tells you this:


Nominal bitrate: 192.000000 kb/s
Upper bitrate not set
Lower bitrate not set
Vorbis stream 1:
        Average bitrate: 209.243033 kb/s

So you can infer from this that it's q6, because nominal bitrate is 192, and no upper or lower bitrate bounds were set.

Although I'm not 100% sure if this is completely reliable. It should be reliable if indeed a qN setting was used, but not sure what happens if exotic encoder options are used.

Note that ogginfo is a command-line tool. You have to run it from a console/terminal window (in Windows, that would be a cmd.exe command prompt window.)

Re: How to determine the Q of existing ogg file

Reply #2
I don't know about "quality" but bitrate is kilobits per second.   So, as long as you know there are 8-bits in a byte you can calculate the average bitrate from the file size and playing time.    (Embedded images can throw-off those calculations.  Other metadata & file headers are usually insignificant.)

 
SimplePortal 1.0.0 RC1 © 2008-2021