[FFmpeg-trac] #5240(avcodec:reopened): opus encoded audio loses information about the original sample rate (unlike opusenc)

FFmpeg trac at avcodec.org
Wed Feb 17 22:06:44 CET 2016


#5240: opus encoded audio loses information about the original sample rate (unlike
opusenc)
------------------------------------+------------------------------------
             Reporter:  redneb      |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  libopus     |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by TD-Linux):

 Opus doesn't need a sample rate to decode - generally you just decode to
 48khz. Comment #4 is not quite correct - those are the sample rates that
 libopus can operate on, but none of them are stored in the file. The
 original sample rate is purely cosmetic metadata, stored by opusenc.
 Opusenc/dec uses it to resample back to the original rate for convenience,
 so people aren't surprised when the output .wav is bigger than the input.
 In addition, some ABX tools only work with matched sample rates.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5240#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list