[Ffmpeg-devel] corrupt audio when cut

Cyrus A lists
Fri Jan 12 20:37:31 CET 2007

Sometimes (say 5% of the time) when I use ffmepg -ss X -t Y to cut a 
smaller file out of a bigger file (in this case MPEG-4 avi with mp3), 
the audio will go corrupt. It's not the file because I can substitute 
different X and Y values in and it'll work fine (although still a 5-10% 
chance of corruption). Furthemore, if X and Y stay the same, the 
behavior is always the same, either corrupt or not corrupt.

The orginial file is created with

ffmpeg -v 0 -i /dev/video0 -async 1 -y -vcodec mpeg4 -acodec mp3 -t 3580 
-b 1750k -ab 192 -ar 44100 -s 480x384 -vtag DX50 'file.avi'

The cut process is:

ffmpeg -ss 60.0 -t 180.0 -y -vcodec copy -acodec copy -i file.avi 

[cyrus at wkyt crontabs]$ /roosevelt/ffmpeg/ffmpeg -version
FFmpeg version SVN-r6849, Copyright (c) 2000-2006 Fabrice Bellard, et al.
  configuration:  --enable-mp3lame
  libavutil version: 49.0.2
  libavcodec version: 51.23.0
  libavformat version: 50.6.0
  built on Oct 31 2006 12:55:14, gcc: 4.1.1 20060525 (Red Hat 4.1.1-1)
ffmpeg      SVN-r6849
libavutil   3211266
libavcodec  3348224
libavformat 3278336

FC5 and 6, x86_64

Thanks in advance for any help. To hear the corruption for yourself, 


More information about the ffmpeg-devel mailing list