Trouble converting .mp4 to .flv

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble converting .mp4 to .flv

Matthew Toledo
Greetings,

I hope this is the right place to find a ffmpeg guru to help me out of a
jam.

I recently decided to give up on quicktime/Darwin Streaming Media Server
and switch to flash/lighttpd.  I think it is safe to say that Flash has
won the online video wars.  That, and the embedded quicktime player has
TONS of annoying quirks (like the inability to resize a streaming movie
embedded on a web page)

So now, I want to batch convert all my .mp4 movies to .flv movies on the
server via ffmpeg.

The folks at flowplayer.org say to try this:
$ ffmpeg -i movie.[avi] -s 320x240 -ar 44100 -r 12 movie.flv
$ cat movie.flv | flvtool2 -U stdin movie.flv

The problem is, I believe that ffmpeg is telling me that it can't
convert an mp4a stream. Here is the output:

---------------------------------------------------------------------

ffmpeg -i 2007-04-14_4399_margotnuclear.mp4 -s 320x240 -ar 44100 -r 12
test.flv
FFmpeg version SVN-r11213, Copyright (c) 2000-2007 Fabrice Bellard, et al.
   configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl --enable-pp --enable-decoder=mp4a --enable-encoder=mp4a
   libavutil version: 49.6.0
   libavcodec version: 51.49.0
   libavformat version: 52.2.0
   built on Dec 12 2007 22:28:48, gcc: 4.1.2 20070626 (Red Hat 4.1.2-13)

Seems stream 1 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 14.99 (15000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2007-04-14_4399_margotnuclear.mp4':
   Duration: 00:01:47.4, start: 0.000000, bitrate: 779 kb/s
     Stream #0.0(eng): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
     Stream #0.1(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
14.99 tb(r)
     Stream #0.2(eng): Data: rtp  / 0x20707472
     Stream #0.3(eng): Data: rtp  / 0x20707472
File 'test.flv' already exists. Overwrite ? [y/N] y
Output #0, flv, to 'test.flv':
     Stream #0.0(eng): Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
q=2-31, 200 kb/s, 12.00 tb(c)
     Stream #0.1(eng): Audio: adpcm_swf, 44100 Hz, stereo, 64 kb/s
Stream mapping:
   Stream #0.1 -> #0.0
   Stream #0.0 -> #0.1
Unsupported codec (id=86018) for input stream #0.0

---------------------------------------------------------------------

... I compiled faad2 --with-mpeg4ip --with-mp4v2

... here is the info on faac

$ faac  --help
Freeware Advanced Audio Coder
FAAC 1.26.1 (Dec 12 2007) UNSTABLE

... I *just* noticed that the FAAC version is unstable.  Hmmm.  Didn't
say it was unstable on audiocoding.comm/faac.html

Any how, any tips?


- Matt




_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Trouble converting .mp4 to .flv

Kevin Tang

--- Matthew Toledo <[hidden email]> wrote:

> Greetings,
>
> I hope this is the right place to find a ffmpeg guru
> to help me out of a
> jam.
>
> I recently decided to give up on quicktime/Darwin
> Streaming Media Server
> and switch to flash/lighttpd.  I think it is safe to
> say that Flash has
> won the online video wars.  That, and the embedded
> quicktime player has
> TONS of annoying quirks (like the inability to
> resize a streaming movie
> embedded on a web page)
>
> So now, I want to batch convert all my .mp4 movies
> to .flv movies on the
> server via ffmpeg.
>
> The folks at flowplayer.org say to try this:
> $ ffmpeg -i movie.[avi] -s 320x240 -ar 44100 -r 12
> movie.flv
> $ cat movie.flv | flvtool2 -U stdin movie.flv
>
> The problem is, I believe that ffmpeg is telling me
> that it can't
> convert an mp4a stream. Here is the output:
>
>
---------------------------------------------------------------------

>
> ffmpeg -i 2007-04-14_4399_margotnuclear.mp4 -s
> 320x240 -ar 44100 -r 12
> test.flv
> FFmpeg version SVN-r11213, Copyright (c) 2000-2007
> Fabrice Bellard, et al.
>    configuration: --enable-libfaac --enable-libfaad
> --enable-libmp3lame
> --enable-gpl --enable-pp --enable-decoder=mp4a
> --enable-encoder=mp4a
>    libavutil version: 49.6.0
>    libavcodec version: 51.49.0
>    libavformat version: 52.2.0
>    built on Dec 12 2007 22:28:48, gcc: 4.1.2
> 20070626 (Red Hat 4.1.2-13)
>
> Seems stream 1 codec frame rate differs from
> container frame rate:
> 1000.00 (1000/1) -> 14.99 (15000/1001)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '2007-04-14_4399_margotnuclear.mp4':
>    Duration: 00:01:47.4, start: 0.000000, bitrate:
> 779 kb/s
>      Stream #0.0(eng): Audio: mp4a / 0x6134706D,
> 44100 Hz, stereo
>      Stream #0.1(eng): Video: mpeg4, yuv420p,
> 320x240 [PAR 1:1 DAR 4:3],
> 14.99 tb(r)
>      Stream #0.2(eng): Data: rtp  / 0x20707472
>      Stream #0.3(eng): Data: rtp  / 0x20707472
> File 'test.flv' already exists. Overwrite ? [y/N] y
> Output #0, flv, to 'test.flv':
>      Stream #0.0(eng): Video: flv, yuv420p, 320x240
> [PAR 1:1 DAR 4:3],
> q=2-31, 200 kb/s, 12.00 tb(c)
>      Stream #0.1(eng): Audio: adpcm_swf, 44100 Hz,
> stereo, 64 kb/s
> Stream mapping:
>    Stream #0.1 -> #0.0
>    Stream #0.0 -> #0.1
> Unsupported codec (id=86018) for input stream #0.0
>
>
---------------------------------------------------------------------

>
> ... I compiled faad2 --with-mpeg4ip --with-mp4v2
>
> ... here is the info on faac
>
> $ faac  --help
> Freeware Advanced Audio Coder
> FAAC 1.26.1 (Dec 12 2007) UNSTABLE
>
> ... I *just* noticed that the FAAC version is
> unstable.  Hmmm.  Didn't
> say it was unstable on audiocoding.comm/faac.html
>
> Any how, any tips?
I also created some flv files with ffmpeg.  The audio
default codec was mp3, with mine.  In your case it
seems picking adpcm, for whatever reason.  Since you
have mp3 enabled with ffmpeg, maybe you could specify
-acodec libmp3lame.  Hope this can get it working.

>
>
> - Matt
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
>
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
>



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Trouble converting .mp4 to .flv

Phill Clarke





>
> --- Matthew Toledo <[hidden email]> wrote:
>
>> Greetings,
>>
>> I hope this is the right place to find a ffmpeg guru
>> to help me out of a
>> jam.
>>
>> I recently decided to give up on quicktime/Darwin
>> Streaming Media Server
>> and switch to flash/lighttpd.  I think it is safe to
>> say that Flash has
>> won the online video wars.  That, and the embedded
>> quicktime player has
>> TONS of annoying quirks (like the inability to
>> resize a streaming movie
>> embedded on a web page)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

Off topic, but I don't think that is necessarily the case. Now that  
the latest Flash player supports H.264 content, Quicktime files stand  
just as good a chance of being useable by the vast majority as flvs.

See:

http://www.kapitalmototv.com/flash/

http://www.kapitalmototv.com

Exactly the same QT mob files played back in embedded QT player and  
Flash.

Unfortunately I'm not sure your mp4 files will work in the same way.

Phill
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Trouble converting .mp4 to .flv

Matthew Toledo
In reply to this post by Kevin Tang
Kevin Tang wrote:

> --- Matthew Toledo <[hidden email]> wrote:
>
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> I also created some flv files with ffmpeg.  The audio
> default codec was mp3, with mine.  In your case it
> seems picking adpcm, for whatever reason.  Since you
> have mp3 enabled with ffmpeg, maybe you could specify
> -acodec libmp3lame.  Hope this can get it working.
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user

  ffmpeg -i 2007-04-14_4399_margotnuclear.mp4 -s 320x240 -ar 44100 -r 12
-acodec libmp3lame test.flv
FFmpeg version SVN-r11213, Copyright (c) 2000-2007 Fabrice Bellard, et al.
   configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl --enable-pp --enable-decoder=mp4a --enable-encoder=mp4a
   libavutil version: 49.6.0
   libavcodec version: 51.49.0
   libavformat version: 52.2.0
   built on Dec 12 2007 22:28:48, gcc: 4.1.2 20070626 (Red Hat 4.1.2-13)

Seems stream 1 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 14.99 (15000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2007-04-14_4399_margotnuclear.mp4':
   Duration: 00:01:47.4, start: 0.000000, bitrate: 779 kb/s
     Stream #0.0(eng): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
     Stream #0.1(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
14.99 tb(r)
     Stream #0.2(eng): Data: rtp  / 0x20707472
     Stream #0.3(eng): Data: rtp  / 0x20707472
Unknown encoder 'libmp3lame'


Evidently I don't have libmp3lame after all?  Wha?

- Matt
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user