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

Leo Papadopoulos leo at telecomcto.com
Wed Dec 19 22:57:04 CET 2012


Tom:

I spent a lot of today trying to figure out how to compile this with SPEEX
and I finally did it. However, I am still getting a strange error. Maybe I
need to compile with more options. Here is what is happening:
When I ran this command: ffmpeg -i telecomcto.flv -c:v copy -c:a aac
telecomctotest.mp4
I got this error: The encoder 'aac' is experimental but experimental codecs
are not enabled, add '-strict -2' if you want to use it.

So I ran this command: ffmpeg -i telecomcto.flv -c:v copy -c:a aac -strict
-2 telecomctotest.mp4
Then I got this error: Error while opening encoder for output stream #0:1 -
maybe incorrect parameters such as bit_rate, rate, width or height

Any further ideas?

Here is the full output:
ffmpeg -i telecomcto.flv -c:v copy -c:a aac -strict -2 telecomctotest.mp4
ffmpeg version N-47994-ga1d1433 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Dec 19 2012 15:40:59 with gcc 4.1.2 (GCC) 20080704 (Red Hat
4.1.2-52)
  configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libspeex
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 80.100 / 54. 80.100
  libavformat    54. 49.102 / 54. 49.102
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 28.102 /  3. 28.102
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, flv, from 'telecomcto.flv':
  Metadata:
    creationdate    : Wed Dec 19 10:49:09
  Duration: 00:00:12.33, start: 0.000000, bitrate: 673 kb/s
    Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480 [SAR 1:1 DAR
4:3], 30 tbr, 1k tbn, 60 tbc
    Stream #0:1: Audio: speex, 16000 Hz, mono, s16
File 'telecomctotest.mp4' already exists. Overwrite ? [y/N] y
Too many bits per frame requested
Output #0, mp4, to 'telecomctotest.mp4':
  Metadata:
    creationdate    : Wed Dec 19 10:49:09
    Stream #0:0: Video: h264, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31,
90k tbn, 1k tbc
    Stream #0:1: Audio: aac, 16000 Hz, mono, fltp, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (libspeex -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect
parameters such as bit_rate, rate, width or height



On Wed, Dec 19, 2012 at 12:04 PM, Leo Papadopoulos <leo at telecomcto.com>wrote:

> Tom:
>
> Thank you that is excellent advice. I will download and compile. I will
> start a separate thread on this issues with compiling on Ubuntu V10.10. I
> am using this guide:
> http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideLucid
>
> I will get back to this thread once I have some results.
>
> Leo P.
>
>
> On Wed, Dec 19, 2012 at 11:49 AM, Tom Evans <tevans.uk at googlemail.com>wrote:
>
>> On Wed, Dec 19, 2012 at 2:44 PM, Leo Papadopoulos <leo at telecomcto.com>
>> wrote:
>> > 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
>>
>> This version of ffmpeg is too old to be supported on here, please
>> update to recent git head. There have been literally thousands of bugs
>> fixed since 2010, you must exclude the possibility that one of those
>> bug fixes affects the output, before people will look at if the
>> current code has a problem.
>>
>> Apart from that:
>>
>> You aren't specifying any bitrate or quality options for x264, so you
>> are getting the 'defaults' which may not be what you want.
>>
>> Since the files are already H264, why re-encode the video? (this
>> syntax won't work for your current ancient version of ffmpeg)
>>
>> ffmpeg -i in.flv -c:v copy -c:a aac out.mp4
>>
>> Cheers
>>
>> Tom
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>>
>
>
> --
> _________________________________________
> Leo Papadopoulos (leo at telecomcto.com)
> TelecomCTO, LLC <http://telecomcto.com>
> Virtual Number: +1(203)539-0448
> Linkedin <https://www.linkedin.com/in/leopapadopoulos> - Twitter<https://twitter.com/LeoP_TCTO>
>



-- 
_________________________________________
Leo Papadopoulos (leo at telecomcto.com)
TelecomCTO, LLC <http://telecomcto.com>
Virtual Number: +1(203)539-0448
Linkedin <https://www.linkedin.com/in/leopapadopoulos> -
Twitter<https://twitter.com/LeoP_TCTO>


More information about the ffmpeg-user mailing list