Embed video in a webpage with Flash FLV
You can use Flash Video Encoder to convert most video file types into an FLV file, which is basically a Flash video file.
With Flash 8 you can now choose from two codecs, the original Sorensen Spark video codec, which is compatible with Flash 6, 7 & 8, or the much newer and more advanced flash video codec, the On2 VP6 codec.
Basicially put - if you want backwards compatibility back to Flash 6 players, use Sorenson, and if you want the latest greatest compression etc, and you're designing for Flash 8 Players, use the On2 VP6 codec.
Here's a Flash Player to embed the resulting .FLV file into your webpage:
Flash player for flash video files
And some code to embed that flash player, and your FLV file in your webpage:
--edit--
Since Eolas ruling has broken Internet Explorer's embedding of Flash content using OBJECT or EMBED tags, SWFobject is the best solution I've found (which is in fact a great improvement over the older methods of embedding SWF files).
I strongly recommend anyone working with Flash trys SWFobject (formally known as FlashObject).

"And some code to embed that flash player, and your FLA file in your webpage:
Code to embed the flash video player"
You don't embed FLA files in web pages. You open the FLA with Flash, and export an SWF file. You embed the SWF in your web page.
No I'm not talking about FLA files - you're quite right, they're not meant to be embedded in place of a SWF file. Thanks for bringing my typo to my attention!
FLV files are Flash Video files, which can be created from other video content.
The FLV (Flash Video) is then streamed via a tiny SWF file which is embedded in the webpage.
I should also note the Eolas ruling, which requires that SWF files no longer be embedded using OBJECT or EMBED tags - as these don't work correctly with Internet Explorer anymore.
Read more on the cause of this issue, and the most popular workaround for embedding Flash.
Can any one tell what tool in the server site to convert other video file formet to flv
If you install ffmpeg on your server, you can setup scripts to convert video files to FLV.
You can get a free FLV encoder here at
http://flvhosting.com
http://flvpowertools.com
Thank you for the useful info. I wonder though does everyone know it only takes a few lines of code to write an FLV player in Flash, and then you have full control over the result.
Great stuff, I was looking for something just like this.
Ok here is the question,I need to know how flv is embedded in SWF files.That is,if I have to parse the swf file,what should i look for to figure out if flv is embedded in Swf or not.
Thanks in advance,
how how how?!! Oh I've been trying forever to write my own code for a flv player! I would LOVE a little help. preferrably so I can copy and paste it....
please and 1,000 thank yous!
-struggle
Instead of writing your own FLV player, why not just use something like this open source embeddable FLV player I just found?
http://www.osflv.com/
FLV players that can embed with object tag or iframe
Free Ads Player with advertising support XML driven with simple config file.
This player is designed to display an advert while an flv video is playing. You can set the path to the ad image, link, cuepoint and duration of the ad in the XML file
The Screen Shots FLV Player was designed to loop a series of flv videos continuously, from first to last and back to first to mimic a tv channel, one clip after another. Along with the continuous clips is a clip jump menu button bottom right of the player
See in action at http://www.flvhosting.com/index.php?sc=18&nid=61
I have a website for helping people to understand and discuss heart defects. If you look at the site none of the videos play after the first loop. To understand the details of the defect, contineous playing is important. Can anyone help. I am not an expert in web design. Any sggestions will be much appreciated.
Usually, the SWF player connects to the flv in whats called flash vars (variables)
example of a basic reference in object embed tag (whats used as html code to make the player play)
This is not an exact code but you get teh idea of how it parses the name and sometimes the url to the flv
Now some programs such as Camtasia can construct an flv and swf together which i think is silly as swf has to completely download before playing, which was the whole reason why flv was "invented"
so that swf players play the flv and therefore large files can be streamed easily
Lots of good info on this at http://videospark.com
You can add to the flash var in the code
&loop=true
or look for some free players where its already made in the swf
examples
http://www.flvhosting.com/index.php?sc=18&nid=61
http://www.flvhosting.com/index.php?sc=18&nid=60
http://www.flvhosting.com/index.php?sc=18&nid=55
see also tutorials here
http://mikestickney.com/wordpress/flash-tutorial-play-a-movie-clip-a-set...