#11364: µ-law: pcm_mulaw files incorrectly shown as "s16", actually 8 bit per
sample
-------------------------------------+-------------------------------------
             Reporter:  Marcus       |                     Type:  defect
  Müller                             |
               Status:  new          |                 Priority:  normal
            Component:  ffprobe      |                  Version:
                                     |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: ffprobe (6.1.2)/ffplay/ffmpeg incorrectly show

 {{{
 Stream #0:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 48000 Hz, 1
 channels, s16, 384 kb/s
 }}}

 when inspecting a µ-law PCM file.

 If you divide 384 kb/s / (48000 Hz), you get the actual (and correct for
 G.711 µ-law) 8 b per sample.

 How to reproduce:
 {{{
 # get some example linear pcm
 curl https://opus-codec.org/static/examples/samples/speech_orig.wav >
 orig.wav
 ffmpeg -i orig.wav -c:a pcm_mulaw mulaw.wav
 ffprobe -show_entries stream=sample_fmt -hide_banner mulaw.wav
 # gives:
 # Input #0, wav, from 'mulaw.wav':
 #  Metadata:
 #    encoder         : Lavf60.16.100
 #  Duration: 00:00:10.80, bitrate: 384 kb/s
 #  Stream #0:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 48000 Hz, 1
 channels, s16, 384 kb/s
 ###### PROBLEM HERE:
 ######-----------------------------------------------------^^^
 # [STREAM]
 # sample_fmt=s16
 # [/STREAM]
 }}}

 The {{{sample_fmt}}} should be s8, not s16.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11364>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to