[FFmpeg-trac] #2912(FFmpeg:new): splitting the first minute from a wav file generated a slightly too long file (off by 160 samples)

FFmpeg trac at avcodec.org
Thu Aug 29 16:09:22 CEST 2013


#2912: splitting the first minute from a wav file generated a slightly too long
file (off by 160 samples)
----------------------------------+----------------------------------
             Reporter:  bernhard  |                    Owner:
                 Type:  defect    |                   Status:  new
             Priority:  normal    |                Component:  FFmpeg
              Version:  2.0.1     |               Resolution:
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+----------------------------------

Comment (by bernhard):

 Thanks!

 ffmpeg -i exil1211212315_02.wav -af atrim=0:60 outffmpeg2.wav

 The audio now has the correct length (2646000 samples). But at the same
 time the format of input and output files now differ (precision from 24 to
 16 bit, Sample Encoding: from "24-bit Signed Integer PCM" to "16-bit
 Signed Integer PCM"):

 Input File     : 'exil1211212315_02.wav'
 Channels       : 2
 Sample Rate    : 44100
 Precision      : 24-bit
 Duration       : 00:28:14.47 = 74726144 samples = 127085 CDDA sectors
 File Size      : 448M
 Bit Rate       : 2.12M
 Sample Encoding: 24-bit Signed Integer PCM


 Input File     : 'outffmpeg2.wav'
 Channels       : 2
 Sample Rate    : 44100
 Precision      : 16-bit
 Duration       : 00:01:00.00 = 2646000 samples = 4500 CDDA sectors
 File Size      : 10.6M
 Bit Rate       : 1.41M
 Sample Encoding: 16-bit Signed Integer PCM

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


More information about the FFmpeg-trac mailing list