[FFmpeg-user] FLV(Speex + H.264) --> MP4(AAC + H.264) Converstion

Leo Papadopoulos leo at telecomcto.com
Wed Dec 19 15:44:18 CET 2012


Dear Group:

I have FLV files that contain Speex Audio and H.264 video that I need to
convert to MP4 with AAC audio and H.264 video.

I used the following command:
ffmpeg -i telecomcto.flv telecomctotest.mp4 -vcodec h264 -acodec aac

Results:
- File plays on my Windows PC but is jittery.
- File plays audio only on my iPad.
- File does not play at all on my Andriod Tablet that has newest Andriod OS.

These errors are possible the problem:
[libspeex @ 0x8b68be0]Missing Speex header, assuming defaults.
[h264 @ 0x8b68650]non-existing SPS 32 referenced in buffering period
[flv @ 0x8b67420]Estimating duration from bitrate, this may be inaccurate

Can anyone offer and suggestions?


BELOW IS THE FULL OUTPUT:
FFmpeg version 0.6-4:0.6-2ubuntu6.3, Copyright (c) 2000-2010 the FFmpeg
developers
  built on Dec 21 2011 18:37:43 with gcc 4.4.5
  configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version=4:0.6-2ubuntu6.3 --prefix=/usr
--enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads
--enable-zlib --enable-libvpx --disable-stripping
--enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[libspeex @ 0x8b68be0]Missing Speex header, assuming defaults.
[h264 @ 0x8b68650]non-existing SPS 32 referenced in buffering period
[flv @ 0x8b67420]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 60.00
(60/1) -> 30.00 (60/2)
Input #0, flv, from 'telecomcto.flv':
  Metadata:
    duration        : 9
    creationdate    : Mon Dec 17 16:37:21
  Duration: 00:00:09.24, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 30 tbr,
1k tbn, 60 tbc
    Stream #0.1: Audio: libspeex, 16000 Hz, 1 channels, s16
File 'telecomctotest.mp4' already exists. Overwrite ? [y/N] y
[mpeg4 @ 0x8b6a320]removing common factors from framerate
[libspeex @ 0x8b68be0]Missing Speex header, assuming defaults.
Output #0, mp4, to 'telecomctotest.mp4':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31,
200 kb/s, 30 tbn, 30 tbc
    Stream #0.1: Audio: aac, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[h264 @ 0x8b68650]non-existing SPS 32 referenced in buffering period
frame=  112 fps= 74 q=15.9 Lsize=     320kB time=9.27 bitrate= 282.5kbits/s
dup=0 drop=13
video:252kB audio:63kB global headers:0kB muxing overhead 1.165663%


More information about the ffmpeg-user mailing list