[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 23:17:21 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):
Thank you. Ok, I changed it to:
ffmpeg -i exil1211212315_02.wav -af atrim=0:60 -acodec pcm_s24le
outffmpeg2.wav
I wonder whether it would make sense to use the same encoding as the
source file by default. That's how sox handles the situation (from the
help output of sox):
FORMAT OPTIONS (fopts):
Input file format options need only be supplied for files that are
headerless.
Output files will have the '''same format as the input''' file where
possible and not
overriden by any of various means including providing output format
options.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2912#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list