Simple and simple Flash video FLV

Source: Internet
Author: User
Tags flv file
In the Web 2.0 era, what types of websites are the most popular are naturally video sharing websites represented by YouTube, Google Video, Tudou and uume in China. The video content provided by such websites has its own merits, but none of them use flash as the video playback carrier. The technical basis for supporting these video websites is Flash video (FLV ).

FLV is a brand new streaming media video format. It uses the Flash Player platform widely used on webpages to integrate videos into flash animation. That is to say, as long as visitors can watch Flash animation, they can naturally watch FLV videos, without having to install other video extensions. The use of FLV videos has brought great convenience to Internet video communication.

After reading the above, I believe everyone is eager to try it. Let's talk about how to use FLV videos on webpages.
Convert video to FLV format
Since Flash MX 2004, the software has provided FLV format support. However, I suggest you use the latest version of Flash 8, which has an independent FLV Conversion Tool: flash 8 video encoder. Click "program"> "Macromedia"> "Macromedia Flash 8 video encoder" in the System menu to enter the program. The software interface is very simple. In fact, it is easy to use this tool to convert a normal video to a FLV video, which can be completed in just a few steps.

Click "add" button, the software automatically calls the system "open" dialog, and select the video to be imported. Flash 8 video encoder supports a wide range of conversion video formats, such as Avi, WMV, MPEG, ASF, mov, and other common video formats. After a video is added to the queue, if you do not need to make any special changes, click the start queue button to start video conversion.
The speed at which the software converts videos is still relatively fast. Of course, this is related to the size of the original video and the Set video data rate. During the entire conversion process, information is displayed at the bottom of the main window, and real-time progress preview is displayed. After the conversion, we can get a FLV file with the same name under the same folder of the conversion video. Of course, the above is only the case of conversion according to the default settings. In actual situations, we can control a lot of video conversion. Click the "set" button in the main window to enter the Advanced Settings dialog box, 2.

In the video encoding Settings dialog box, the most significant one is the FLV video quality settings. The default value is "Flash 8-medium quality (400 Kbps)". The software has seven built-in encoding settings. You can also select custom settings and click the "show Advanced Settings" button. The software displays the custom settings page.

The software provides two video decoder options: on2 VP6 (for Flash Player 8, supporting alpha channel) and Sorenson spark (for Flash Player 7, applicable to low-Configuration Users ); "adjust the video size" is also very useful, and we can easily generate a size-based animation. If you only pay attention to the video effect, you can also enable "Audio Encoding, if the default encoding rate is lower, the output file will be smaller.
There are still many options in advanced settings. It even provides simple video editing functions, click the "crop and trim" tab, and 4.

Cropping is easy to use. The software provides four direction control. You can enter a number to crop the video, or click the "Triangle" button to display the control slider. Drag the slider to adjust the video size, the video preview area uses dotted lines to sketch the cropping range in real time. You can see a blue video progress indicator under the video preview area. Drag the inverted triangle button above to locate the video playback progress. There are two buttons at the bottom of the Progress indicator bar, which are the start point and end point positioning buttons. Drag the buttons to the desired position to complete simple video trim.

Insert FLV video in Flash
We can't directly use the FLV file on the webpage. We also need to graft it into the Flash animation. As you can see on various video websites, the Flash video we created is not simple playback, but also with playback control.
Run flash 8 to create a new flash document. Click "file"> "import"> "import video" to go to the "Import video" dialog box.

You can see that when you select a video, there are two different options: "on your computer" and "deployed on the Web server". The two are different, however, we only need to test the animation locally and select "on your computer ". Click the Browse button, open the dialog box through the system, load the FLV file we just generated, and click the next button to continue.
Next, select "deployment method" as follows: "progressive download from web server" to go to the "appearance" option, 6

Flash 8 currently has dozens of built-in playback controllers for playing FLV videos. They have different appearances and different control options. You can choose one or more based on your needs, select a suitable playback controller and click "finish ".
Return to the work area of the flash 8 main window and you can see that the video we just inserted is already in place. Now you can press Ctrl + enter to test the animation, 7.

Flvplayer generation
Through animation preview, we can find that the current default Flash Animation size is much wider than that of the player. We need to reset it. Click "player control" in the workspace, call "properties" Panel (CTRL + F3), and change the X and Y axes to "0.0 ", in this way, the "player control" component is located at the top left vertex of the work area, 8

Click "modify"> "document" in the menu to go to the "Document Properties" dialog box, select "match" and set "content", and click "OK" to return, the size of the Flash file is now the same as that of the player.
If you make a FLV video animation that is only intended to be played in local computing, you can directly output the SWF file. If you want to call it on the network, you still need to do some work.
First, upload your own FLV file to the network server to obtain the remote network address of the file, for example, http://www.scxp.net/01.flv. Next, select "player control" in the workspace, call the "Parameters" panel, and find the "contentpath" field, modify the value to "http://www.scxp.net/01.flv" (the original value is the local FLV file path set at the beginning), 9.

Figure 9

Click "file"> "Export"> "Export video" in the menu. For example, set the export video address to "D: \ movie, and the file name to movie 01.swf ". Next, set the Player version to "Flash Player 8" and the ActionScript version to "ActionScript 2.0", and click "OK. Go to "D: \", and you can see that, in addition to the just generated snapshot 01.swf.pdf file, there are also multiple versions of the original steeloverplayseekmute.swf file, which is also required to call flash videos. Now you can upload these two files to your server. When you use flash video on any of the following regions, you only need to insert the network address of the 01.swf animation on the server. Note: After setting the FLV file used for Flash animation to a remote network, the preview file 01.swf will receive a security warning. This is a normal situation and you don't have to worry about it.

Article from:It168

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.