[libav-bugs] [Bug 1063] New: Opus preskip not honored when decoding to wav

bugzilla at libav.org bugzilla at libav.org
Fri May 26 03:38:18 CEST 2017


https://bugzilla.libav.org/show_bug.cgi?id=1063

            Bug ID: 1063
           Summary: Opus preskip not honored when decoding to wav
           Product: Libav
           Version: git HEAD
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: libavformat
          Assignee: bugzilla at libav.org
          Reporter: bztdlinux at gmail.com

Download the following file:

http://people.xiph.org/~greg/opus_testvectors/correctness_trimming_nobeeps.opus

When correctly decoded it should be 545026 samples with no beep at the
beginning:

$ opusdec correctness_trimming_nobeeps.opus test1.wav
Decoding to 48000 Hz (1 channel)
Encoded with libopus 0.9.11-66-g64c2dd7
ENCODER=Xiph.Org Opus testvectormaker
TESTDESCRIPTION=Beeps at the beginning and end of this stream MUST be hidden by
preskip and end-trimming.
If the beeps are heard the decoder is broken.
Decoding complete.        

$ soxi test1.wav | grep Duration
Duration       : 00:00:11.35 = 545026 samples ~ 851.603 CDDA sectors

When decoded with avconv, it has a beep and 616320 samples. The end trimming is
also incorrect, but I can file a second bug for that.

$ ./avconv -i correctness_trimming_nobeeps.opus test2.wav
avconv version v13_dev0-1134-g3d04051, Copyright (c) 2000-2017 the Libav
developers
  built on May 25 2017 18:30:38 with gcc 6.3.1 (GCC) 20161221 (Red Hat 6.3.1-1)
Input #0, ogg, from 'correctness_trimming_nobeeps.opus':
  Duration: 00:00:12.72, start: 0.000000, bitrate: 40 kb/s
    Stream #0:0: Audio: opus
      48000 Hz, mono, fltp
    Metadata:
      ENCODER         : Xiph.Org Opus testvectormaker
      TESTDESCRIPTION : Beeps at the beginning and end of this stream MUST be
hidden by preskip and end-trimming.
If the beeps are heard the decoder is broken.
Stream mapping:
  Stream #0:0 -> #0:0 (opus (native) -> pcm_s16le (native))
Press ctrl-c to stop encoding
Output #0, wav, to 'test2.wav':
  Metadata:
    ISFT            : Lavf58.0.0
    Stream #0:0: Audio: pcm_s16le [[1][0][0][0] / 0x0001]
      48000 Hz, mono, s16, 768 kb/s
    Metadata:
      ENCODER         : Xiph.Org Opus testvectormaker
      TESTDESCRIPTION : Beeps at the beginning and end of this stream MUST be
hidden by preskip and end-trimming.
If the beeps are heard the decoder is broken.
[ogg @ 0x25db040] Last packet truncated to 1 since end trim support is not
implemented. Update your Libav version to the newest one from Git. If the
problem still occurs, it means that your file has a feature which has not been
implemented.
size=    1204kB time=12.72 bitrate= 775.3kbits/s    
video:0kB audio:1204kB other streams:0kB global headers:0kB muxing overhead:
0.006328%

$ soxi test2.wav | grep Duration
Duration       : 00:00:12.84 = 616320 samples ~ 963 CDDA sectors

see also: https://trac.ffmpeg.org/ticket/5258

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20170526/24444651/attachment.html>


More information about the libav-bugs mailing list