Username:
Password:
Adobe Flash CS4 Video Tutorials

Deploying Flash Video / Embedded vs. External Video

Subtitles of the Movie

In this tutorial we're going to create an Embedded video, a video where the video file is embedded on the timeline in the SWF, but first let's take a look at some of the advantages and disadvantages of using embedded video as opposed to loading an external video file, an FLV file, or a 4V file. Embedded video supports older versions of the Flash Player, so for example, if you want to support Flash Player 6, Embedded video is the easiest way to do that. You only have to manage one file, the SWF; there's no external FLV file to load. You see the frames on the timeline and this can make it very easy and intuitive to determine at which frames an overlay occurs. So, for example, this could be a button or a graphic, or whatever. On the downside, the entire video has to download before playback starts, so this means that normally you'll only use fairly short videos when you're embedding. There's an absolute limit of 16,000 frames. There's a possibility of audio sync problems. The audio can get out of sync with the video. Document and Video frame rates should match so here at Modify Document I've set this to 24 frames per second because I know that the video that I'm going to embed was shot at 24 frames per second. If I had this, say at 12, and I was embedding a video that had been shot at 24 frames per second, the video would run at half speed Ð it would be slow-mo. I've also, by the way, set the dimensions to be the same as the dimensions of my video. External video supports streaming and live broadcasts, Embedded video does not. It's easier and quicker with External video to substitute a different clip for the one you're playing. We'll see that in a future tutorial. There's no video length limit, no audio sync issues. You can use video player components in the Flash Authoring environment, such as the Video Playback component, and this is a pre-built module that plays video, so that's very convenient and can save you a lot of work. There are no frame rate limitations. You can play FLV files of any frame rate and it doesn't matter what the frame rate of your timeline is. You do have to manage two files: both the SWF and either an FLV or F4V, and generally it requires ActionScript for timing overlays. So, let's go ahead and create an Embedded video. First I'm going to create a New Layer. I'll call that footage. Click in that first frame there, go to File, Import, Import Video. The default is to load an external video, but I want to embed an FLV in the SWF. Notice you can only embed in FLV. Browse, here's the LFV, Open, and that's all I have to do here and just go to Next. The Symbol type, I could choose a Movie Clip or a Graphic, but I'm just going to let it be an Embedded video. Plays an instance on the stage: Yes. Expand the timeline if needed: Yes. I will not include Audio. Click Next. It summarizes my choices and click Finish. And there's my video, and you can see it's on the timeline. Now if I want to create an overlay I can just create a New Layer, and I'll call that overlay. Now I'm going to go out to the point where I want to see my overlay, and this is just to get a visual impression of where in the frame I want to create my overlay. So I'll go out to about 335. I've already got my Brush Tool, and I will just draw a heart. Now right now that heart is everywhere on the Timeline, everywhere where there's video. But I can change that, so let me start by going out to the end, hold down the Control key and move the cursor in towards the overlay and when you get that two-headed arrow cursor just click and drag. And I'll just move that in to about 340, and I can do the same thing at the beginning, just hold down the Control key, move the cursor Ð now don't get this cursor; it has two arrows, but it also has those two lines in the middle, you want the one that's just two arrows, and then click and drag. And I'll move that to about 325 and now I've timed that overlay. So, let's test that. I'll just go here, go to Control, and Play. And you can see the overlay appears and it disappears. And that concludes this tutorial on Embedded video.

Tutorial Information

Course: Adobe Flash CS4 Video
Author: Michael Hurwicz
SKU: 33967
ISBN: 1-935320-32-7
Release Date: 2009-02-17
Duration: 8.5 hrs / 121 lessons
Work Files: Yes
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 81,350 Video Tutorials (20,800 free)
  • Video Available as Flash or QuickTime
  • Over 782 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available