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

notedit notedit at gmail.com
Mon Nov 19 14:28:38 CET 2012


hi Carl Eugen:

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.

there is another test , i put the caf file and mp3 file in the attachement, the
entire info is:

root at li493-104:/tmp# /usr/local/bin/ffmpeg -acodec ilbc -i 1757391475.caf
-ab 16k 1757391475.mp3
ffmpeg version N-46149-g4b7f34a Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct 31 2012 11:04:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-libass --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-openssl --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxvid --enable-libilbc --prefix=/usr/local
  WARNING: library configuration mismatch
  avutil      configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  avcodec     configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  avformat    configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  avdevice    configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  avfilter    configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  swscale     configuration: --extra-version='4:0.8.3-0ubuntu0.12.04.1'
--arch=i386 --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --enable-vdpau
--enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-libfreetype
--enable-vaapi --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared
--disable-static
  swresample  configuration: --enable-gpl --enable-libfaac
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx
--enable-x11grab --enable-libx264 --enable-nonfree --enable-version3
--enable-shared --enable-libilbc
  postproc    configuration: --extra-version='4:0.8.3-0ubuntu0.12.04.1'
--arch=i386 --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --enable-vdpau
--enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-libfreetype
--enable-vaapi --enable-gpl --enable-postproc --enable-swscale
--enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared
--disable-static
  libavutil      52.  1.100 / 52.  1.100
  libavcodec     54. 69.100 / 54. 69.100
  libavformat    54. 35.100 / 54. 35.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 20.109 /  3. 20.109
  libswscale      2.  1.101 /  2.  1.  0
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  0.  0
[caf @ 0x87c0460] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, caf, from '1757391475.caf':
  Duration: 00:00:05.79, start: 0.000000, bitrate: 15 kb/s
    Stream #0:0: Audio: ilbc (ilbc / 0x63626C69), 8000 Hz, mono, s16, 15
kb/s
Output #0, mp3, to '1757391475.mp3':
  Metadata:
    TSSE            : Lavf54.35.100
    Stream #0:0: Audio: mp3, 8000 Hz, mono, s16p, 16 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (libilbc -> libmp3lame)
Press [q] to stop, [?] for help
1757391475.caf: Input/output error
size=       8kB time=00:00:03.67 bitrate=  17.1kbits/s
video:0kB audio:7kB subtitle:0 global headers:0kB muxing overhead 3.288784%




thx,


   刘连响

tel: +86 186 1021 8086 <notedit at gmail.com>

weibo: www.weibo.com/notedit




2012/11/19 notedit <notedit at gmail.com>

> hi lou and Carl Eugen:
>
>
> i install the ffmpeg from from git repo, the ffmpeg version info is:
>
> root at li493-104:/tmp# ffmpeg -version
> ffmpeg version N-46149-g4b7f34a
> built on Oct 31 2012 11:04:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> configuration: --enable-gpl --enable-version3 --enable-nonfree
> --enable-postproc --enable-libass --enable-libfreetype --enable-libmp3lame
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
> --enable-openssl --enable-libschroedinger --enable-libspeex
> --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx
> --enable-libx264 --enable-libxvid --enable-libilbc --prefix=/usr/local
> libavutil      52.  1.100 / 52.  1.100
> libavcodec     54. 69.100 / 54. 69.100
> libavformat    54. 35.100 / 54. 35.100
> libavdevice    54.  3.100 / 54.  3.100
> libavfilter     3. 20.109 /  3. 20.109
> libswscale      2.  1.101 /  2.  1.  0
> libswresample   0. 16.100 /  0. 16.100
> libpostproc    52.  1.100 / 52.  0.  0
>
>
> the ilbc-in-caf file is produced from our iphone app. then we need to transcoding
> it to mp3 file.
>
> this is the out info:
>
>
> /usr/local/bin/ffmpeg -acodec ilbc -i 0000xc.caf -ab 16k  0000xc.mp3
>
> [caf @ 0x8827460] Estimating duration from bitrate, this may be inaccurate
> Guessed Channel Layout for  Input Stream #0.0 : mono
> Input #0, caf, from '0000xc.caf':
>   Duration: 00:00:05.23, start: 0.000000, bitrate: 15 kb/s
>     Stream #0:0: Audio: ilbc (ilbc / 0x63626C69), 8000 Hz, mono, s16, 15
> kb/s
> Output #0, mp3, to '0000xc.mp3':
>   Metadata:
>     TSSE            : Lavf54.35.100
>     Stream #0:0: Audio: mp3, 8000 Hz, mono, s16p, 16 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (libilbc -> libmp3lame)
> Press [q] to stop, [?] for help
> 0000xc.caf: Input/output error
> size=       7kB time=00:00:03.10 bitrate=  17.4kbits/s
> video:0kB audio:6kB subtitle:0 global headers:0kB muxing overhead 3.873457%
>
>
> the caf file in the attachment
>
>
>
>    刘连响
>
> tel: +86 186 1021 8086 <notedit at gmail.com>
>
> weibo: www.weibo.com/notedit
>
>
>
>
> 2012/11/18 notedit <notedit at gmail.com>
>
>> hi,
>>
>> when i use the ffmpeg to transcoding a ilbc encoding caf file to a mp3
>> file.  the out mp3 file is shorter than the caf file.
>> the command is:/usr/local/bin/ffmpeg -acodec ilbc -i xxx.caf -ab 16k
>> xxxx.mp3 .
>>
>> anyone knows the answer?
>>
>> thx
>>
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1757391475.caf
Type: application/octet-stream
Size: 11012 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121119/60465b61/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1757391475.mp3
Type: audio/mpeg
Size: 7883 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20121119/60465b61/attachment.mp3>


More information about the ffmpeg-user mailing list