[MEncoder-users] how to encode to swf

andrew barry jagguy999 at gmail.com
Sat Jan 6 05:59:55 CET 2007


I actual need to create a flash file to embed on a webpage and swf is a lot
easier.

I tried to convert a file to swf format. I tried this but I get an error.
Can you convert a avi,mpg,mov,wmv to a swf flash file. Do I need to do 2
conversions and is this relaible or can't this be done?



C:\www\mencoder>mencoder fire.avi -o ffire.swf -of lavf -oac mp3lame
-lameopts a
br:br=56 -srate 22050 -ovc lavc -lavcopts
vcodec=flv:vbitrate=500:mbd=2:mv0:trel
l:v4mv:cbp:last_pred=3 -lavfopts
i_certify_that_my_video_stream_does_not_use_b_f
rames
MEncoder 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x3e18a
AVI file format detected.
VIDEO:  [IV41]  320x240  24bpp  21.930 fps  1399.9 kbps (170.9 kbyte/s)
[V] filefmt:3  fourcc:0x31345649  size:320x240  fps:21.93  ftime:=0.0456
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 11025 Hz, 1 ch, u8, 88.2 kbit/100.00% (ratio: 11025->11025)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
** MUXER_LAVF
*****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will
generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [vfw] Win32/VfW video codecs
Loading codec DLL: 'ir41_32.dll'
Loaded DLL driver ir41_32.dll at 10000000
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar IF09 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled yuv410p -> yuv420p special converter
videocodec: libavcodec (320x240 fourcc=766c66 [flv])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [indeo4] vfm: vfw (Intel Indeo 4.1)
==========================================================================
MP3 audio selected.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 0
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
[NULL @ 00AF21A0]SWF only supports VP6, FLV1 and MJPEG

C:\www\mencoder>



More information about the MEncoder-users mailing list