opusdec -V opusdec opus-tools f2a2e88 (using libopus unknown) I've got an opus file encoded from a .wav off a cd, 44100Hz: opusinfo 2-24-Overture_in_C_\(In_Memoriam\).opus Processing file "2-24-Overture_in_C_(In_Memoriam).opus"... New logical stream (#1, serial: 38134f1f): type opus Encoded with libopus unknown User comments section follows... ENCODER=opusenc from opus-tools f2a2e88 ENCODER_OPTIONS=--vbr --bitrate 64 Opus stream 1: Pre-skip: 356 Playback gain: 0 dB Channels: 2 Original sample rate: 44100Hz Packet duration: 20.0ms (max), 20.0ms (avg), 20.0ms (min) Page duration: 1000.0ms (max), 998.8ms (avg), 160.0ms (min) Total data length: 5875386 bytes (overhead: 0.914%) Playback length: 11m:17.133s Average bitrate: 69.41 kb/s, w/o overhead: 68.78 kb/s Logical stream 1 ended But when I run opusdec, opusdec 2-24-Overture_in_C_\(In_Memoriam\).opus Decoding to 48000 Hz (2 channels) ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20151210/80adebea/attachment.htm
On Fri, Dec 11, 2015 at 3:40 AM, Sean Darcy <seandarcy2 at gmail.com> wrote:> But when I run opusdec, > > opusdec 2-24-Overture_in_C_\(In_Memoriam\).opus > Decoding to 48000 Hz (2 channels)Opus files don't have a sampling rate anymore; the internal representation is most efficiently decoded to 48kHz. The metadata records the original sampling rate which make it possible to decode to a file with exactly as many samples as the original; but there would be no reason to do that when decoding for playback (for example.)
On 11 December 2015 at 03:40, Sean Darcy <seandarcy2 at gmail.com> wrote:> opusdec -V > opusdec opus-tools f2a2e88 (using libopus unknown) > > I've got an opus file encoded from a .wav off a cd, 44100Hz: > > opusinfo 2-24-Overture_in_C_\(In_Memoriam\).opus > Processing file "2-24-Overture_in_C_(In_Memoriam).opus"... > > New logical stream (#1, serial: 38134f1f): type opus > Encoded with libopus unknown > User comments section follows... > ENCODER=opusenc from opus-tools f2a2e88 > ENCODER_OPTIONS=--vbr --bitrate 64 > Opus stream 1: > Pre-skip: 356 > Playback gain: 0 dB > Channels: 2 > Original sample rate: 44100Hz > Packet duration: 20.0ms (max), 20.0ms (avg), 20.0ms (min) > Page duration: 1000.0ms (max), 998.8ms (avg), 160.0ms (min) > Total data length: 5875386 bytes (overhead: 0.914%) > Playback length: 11m:17.133s > Average bitrate: 69.41 kb/s, w/o overhead: 68.78 kb/s > Logical stream 1 ended > > But when I run opusdec, > > opusdec 2-24-Overture_in_C_\(In_Memoriam\).opus > Decoding to 48000 Hz (2 channels) > > ???Opus doesn't do arbitrary sample rates, only a number of fixed ones: <https://tools.ietf.org/html/rfc6716#section-2.>. -- imalone http://ibmalone.blogspot.co.uk
Gregory Maxwell wrote:> On Fri, Dec 11, 2015 at 3:40 AM, Sean Darcy <seandarcy2 at gmail.com> wrote: >> opusdec 2-24-Overture_in_C_\(In_Memoriam\).opus >> Decoding to 48000 Hz (2 channels)> to decode to a file with exactly as many samples as the original; but > there would be no reason to do that when decoding for playback (for > example.)More specifically, the command-line given above does not appear to specify an output, and the default is to play the audio, so keeping the audio at 48 kHz is expected. If you specify an output file, you should see it decode to the original 44.1 kHz sample rate.