[FFmpeg-trac] #4717(avcodec:new): ffprobe fails to get Monkey's Audio sample size

FFmpeg trac at avcodec.org
Mon Jul 13 22:38:33 CEST 2015

#4717: ffprobe fails to get Monkey's Audio sample size
             Reporter:  ahthovaikied  |                    Owner:
                 Type:  enhancement   |                   Status:  new
             Priority:  wish          |                Component:  avcodec
              Version:  git-master    |               Resolution:
             Keywords:                |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |

Comment (by ahthovaikied):

 From your comment in the other ticket I thought ''sample_fmt'' was only
 the internal sample representation used by FFmpeg, and that actual sample
 size could be anything below that.

 If not, can you confirm that the right algorithm to reliably extract
 sample size is:

 if value of 'bits_per_sample' > 0:
   return value of 'bits_per_sample'
 else if value of 'bits_per_raw_sample' is set:
   return value of 'bits_per_raw_sample'
 else extract sample size from 'sample_fmt' string

 It looks complex for such simple task but I am looking for something
 reliable that works for every audio format on the surface of the earth.


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

More information about the FFmpeg-trac mailing list