Home

FFMPEG Scout ActiveX/NET-compatible



FFMPEG Scout ActiveX

Converting AVI video to SWF using FFMPEG Scout and SWF Scout

FFMPEG Scout - is a freeware library for converting AVI to FLV, MPEG (and other formats) that uses open-source FFMPEG.exe freeware video converter

SWF Scout - standalone ActiveX/NET library for writing, reading and modifying SWF flash movies. SWF Scout supports FLV video input support.

See also - our free player engine for FLV and SWF files

1. We convert AVI video into FLV video file using FFMPEG Scout library

2. We convert generated FLV video into SWF using SWF Scout library

Download source code of this example: ffmpegscout_avi_to_swf.zip (200KB)

A screenshot of the resulted SWF movie:

TestVideo.swf flash movie generated by SWF Scout from FLV made from AVI by FFMPEG Scout library

Source code:

' ////////////////////////////////////////////////
' converting AVI video into FLV using FFMPEG Scout
' ////////////////////////////////////////////////

W = 640
H = 480
Set VideoConverter = CreateObject("FFMpegScout.Application")
VideoConverter.InputFileName = "testvideo.avi"
VideoConverter.OutputFileName = "testvideo.flv"
VideoConverter.Execute

Set VideoConverter = Nothing


' ////////////////////////////////////////////////
' now converting FLV video into SWF using SWF Scout
' Requires SWF Scout installed (http://bytescout.com/swfscout.html)
' ////////////////////////////////////////////////

W = 640
H = 480
Set Movie = CreateObject("SWFScout.FlashMovie")
Movie.InitLibrary "demo", "demo"

Movie.BeginMovie 0,0,W,H,1,12,8
Movie.Compressed = true
Movie.SetBackgroundColor 255,255,255

Movie.AddPreloader 0, 0,0,0,180, 0,255,0,30, "Loading video (%d% completed)...", -1

FontBig = Movie.AddFont("Arial",40,true,false,false,false,DEFAULT_CHARSET)


Text = Movie.AddText2 ("Video",0,0,0,255,FontBig, W / 2, 60,2)
Movie.PlaceText Text,Movie.CurrentMaxDepth ' place text

Video= Movie.AddVideoFromFileName("testvideo.flv")
Movie.FramesPerSecond= Movie.VIDEO_FramesPerSecond
Movie.PlaceVideo Video,Movie.CurrentMaxDepth
Movie.PLACE_SetTranslate 190,150
Movie.ShowFrame Movie.VIDEO_FrameCount

Movie.EndMovie

Movie.SaveToFile "TestVideo.swf"

Download source code of this example: ffmpegscout_avi_to_swf.zip (200KB)

See also - our free player engine for FLV and SWF files

Download

 

 

Products  |  Download  |  Purchase  |  Support  |  Contacts  |  Testimonials |  

ByteScout, 2003-2008. All other company and product names may be trademarks of their respective companies. Privacy Statement