Home

FFMPEG Scout ActiveX/NET-compatible


Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  CONTACTS  |  TESTIMONIALS 

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  |  NEWS

Copyright © ByteScout, 2003-2009. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks.