[FFmpeg-trac] #5258(avcodec:open): ffmpeg fails to decode opus test vectors correctly

FFmpeg trac at avcodec.org
Thu Jun 21 18:37:19 EEST 2018

#5258: ffmpeg fails to decode opus test vectors correctly
             Reporter:  calestyo    |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  opus        |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
Changes (by vk85):

 * component:  ffmpeg => avcodec


 This issue is still present as of commit
 It specifically affects ffmpeg's native opus decoder, libopus is not
 The native encoder ignores side data indicating the amount of
 initialization/padding samples to skip at the beginning of the stream.
 This allows them to enter the output as though they were audio samples,
 the length of the stream is also miscalculated as a result.

 Since this means the native encoder isn't spec compliant, I'd suggest
 changing the default decoder to libopus, if available, until this issue is
 In the meantime, you can try to work around this by seeking to timestamp 0
 (-ss 0), as opus streams encoded by libopus will have the first real audio
 sample at timestamp 0 under most circumstances.

Ticket URL: <https://trac.ffmpeg.org/ticket/5258#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list