[Ffmpeg-user] Convert MPG to FLV with MetaData

Luc Levesque luc3 at travelpod.com
Mon Nov 7 01:05:24 CET 2005


Hello,

    I am trying to transcode a mpg file to flv so that it can be played in 
the FLVplayer available here:
http://www.proxus.com/components/FLV_Player.php

    I use this command line to convert my mpeg file:

ffmpeg -i movie.mpg -ar 22050 -ab 32 -f flv -s 320x240 -aspect 4:3 -y 
movie.flv

OUTPUT OF COMMAND BELOW:
ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:
  built on Nov  5 2005 15:28:19, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
Input #0, mpeg, from 'movie.mpg':
  Duration: 00:00:24.8, start: 0.177778, bitrate: 261 kb/s
  Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s
  Stream #0.1[0x1e0], 25.00 fps: Video: mpeg1video, yuv420p, 160x112, 104857 
kb/s
Output #0, flv, to 'movie.flv':
  Stream #0.0,   nan fps: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
frame=  892 q=0.0 Lsize=    1180kB time=35.7 bitrate= 270.9kbits/s
video:1166kB audio:0kB global headers:0kB muxing overhead 1.196363%


Although the FLV file plays, it doesn't show the progress in the player. The 
support site for this player states that this is caused by the FLV not 
containing the " MetaData duration info ". Can ffmpeg inject this required 
MetaData information into the newly crete flv file? Here is a link to the 
problem summary:

http://www.proxus.com/oneadmin/faqsupport.php?faq_id=3&category_id=5

** Note I am using the latest CVS build ( as of Nov 5th )

ffmpeg -v
ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:
  built on Nov  5 2005 15:28:19, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)

Luc 




More information about the ffmpeg-user mailing list