[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:26:27 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 redneb):

 [https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/libopusenc.c;h=3f3e80d4a01d9dad7a4d0cdf4f29ab8a8457fc95;hb=HEAD#l91
 Here]'s where the sample rate is written to the output opus stream in
 ffmpeg. Notice that the comment says "Original sample rate". Also,
 [https://git.xiph.org/?p=opus-
 tools.git;a=blob;f=src/opus_header.c;h=0279cbcae09bd2a47251b64cbcbd44545f209c74;hb=HEAD#l243
 here]'s the equivalent line from opusenc. The `input_sample_rate` field
 gets its data [https://git.xiph.org/?p=opus-
 tools.git;a=blob;f=src/opusenc.c;h=0f8319425fbc55d3f8c4892ad1c4462aaca5ad94;hb=HEAD#l696
 here] and the value written to it is the original sample rate.

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


More information about the FFmpeg-trac mailing list