[FFmpeg-user] the out mp3 file is shorter than the .caf file

bat guano batguano999 at hotmail.com
Mon Nov 19 22:46:13 CET 2012






this caf is just a test, the audio file is very short, because our app just
allow people to say no more than 30s.

i don't know why the out mp3 file is short than caf file, it seems that the
last part of the audio file was cut.

Hi
Maybe it's an FFmpeg bug...
 
Or maybe it's because your caf files are so short.
 
$ ffprobe 1757391475.caf
shows  Duration: 00:00:05.80
 
$ ffprobe 1757391475.mp3
shows Duration: 00:00:03.82
 
Two seconds difference.
 
 
It seems to be OK with a 30 second file.
 
$ ffmpeg -i foo.wav -c:a libilbc -b:a 15k -ar 8000 -ac 1 foo.caf
$ ffmpeg -i foo.caf -c:a libmp3lame -b:a 16k -ar 8000 -ac 1 foo.mp3
 
$ ffprobe foo.wav
shows Duration: 00:00:30.00
 
$ ffprobe foo.caf
shows Duration: 00:00:30.09
 
$ ffprobe foo.mp3
shows Duration: 00:00:30.17
 
Almost the same durations.
Samples are here ---> http://www.mediafire.com/?zk9995yv7kg5ta1
 		 	   		  


More information about the ffmpeg-user mailing list