[Reproduced from]: http://baike.baidu.com/view/364757.htm? Fr = topic
Definition of FLV video format
FLV is short for Flash video. FLV streaming media is a new video format called Flash video. Because of its extremely small file size and extremely fast loading speed, it is possible to watch video files on the network. Its appearance effectively solves the problem of importing video files into flash, the exported SWF file is bulky and cannot be used well on the network.
Currently, all online video websites use this video format. Such as Sina podcast, 56, Tudou, cool 6, and YouTube, without exception. FLV has become the mainstream video file format.
FLV is a video format developed with the release of Flash MX. It is currently used by many new-generation video sharing websites and is the fastest growing and most widely used video communication format. YesSorensonDeveloped based on the company's compression algorithm. The FLV format is not only easy to import to flash, but also extremely fast to protect copyright, and can play videos without using a local Microsoft or Real Player.
Popularization of FLV video formats
The popularity of network broadband has jumped the number of Chinese netizens to the second place in the world. It has also created many network myths. Google has invested heavily in YouTube, it seems that web video websites, which are already popular at home and abroad, are widely used. The popular trend seems to have swept back to China in the first time. In this age of giving full play to its own personality, video, podcasts and other websites have sprung up in China, and new online battles are imminent, this is undoubtedly a huge impetus for the popularization of FLV video formats.
FLV (Flash video) streaming media format is a new video format developed with the release of Flash MX. FLV files are small and clear. FLV videos are about 1 MB in 1 minute, and a movie is about 1/3 MB, which is of the size of common video files. Coupled with its low CPU usage and excellent video quality, it is prevalent on the network. Currently, several famous online video sharing websites use FLV files to provide videos, this is fully proved.Advantages of FLV video formats
As a new online video format, FLV can be supported by many websites. In addition to the features of low FLV video formats, good video quality, and small size, it is suitable for the development of the current network, rich and diverse resources are also an important factor in the unified online video format of FLV video. Now, from the latest transformers to jailbreak, to various sports programs, and even self-timer videos made by netizens, you can easily find them on the Internet.
Currently, FLV video is provided on the Internet on two types of websites. One is a dedicated video sharing website, such as the YouTube website in the United States, the six rooms in China, and Tudou. The other is that the portal provides a video podcast section and its own video channels, such as Sina video podcast, which also uses the FLV format. In addition, Baidu has recently launched a video search function, in which the searched videos are basically in the popular FLV format.
Use of FLV video format
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 video propagation.
After reading the above, I believe everyone is eager to try it. Let's talk about how to use FLV videos on webpages.
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.
After entering the program, you can see that 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 only applies to Conversion Based on the default settings. In actual situations, we can still control video conversion. Click the "set" button in the main window to go to the Advanced Settings dialog box.
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 to display 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 and click the "crop and trim" tab.
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.
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 to". 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 "progressive download from web server" to go to the "appearance" option.
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" to end.
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.
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.
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 ).
Click "file"> "Export"> "Export video" in the menu. For example, set the export video address to "D:/movie, and the file name is 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 the "D:/SWF" file. In addition to the just-generated secure 01.swf file, there is a new secure steeloverplayseekmute.swf file. It is also a required file 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.
Download FLV video files
The FLV video files watched online are basically not downloaded. If you want to download them, it is also very simple. Here are two methods:
First (recommended but troublesome), this method has never encountered any difficulties.
First, watch the video normally. Do not close the browser,
After the video is loaded, enter C:/Documents and Settings/your username/Local Settings/Temporary Internet Files.
This folder (you may need to use "show all files" in the folder option to see it), and then you can find the files with the extension FLV, which can be sorted by time and easily found. You can also press the size and the video files are generally relatively large. This method is suitable for any FLV video website.
The other is easy to use with dedicated websites! For example, if we want to download a video file on YouTube or Sina podcast:
Click the podcast video viewing interface, copy the above viewing address and then open the site: http://www.flvspy.cn
Paste the viewing address into the input box on the flvspy.cn website and click the sniffing button of the magnifier. After a few seconds, you can find the download link of the blog video. You can download the video by using a download tool, youTube videos do not have an extension. You can change the extension to FLV by yourself. Other podcast websites have their own extension FLV, Which is downloaded in the FLV format.
I believe that the application of FLV files will bring a new round of online media frenzy to the Internet today!Use Flash MX to make flash video
FLV streaming media is a new video format called Flash video. Flash MX 2004 provides perfect support for it. Its appearance effectively solves the problem of the huge volume of exported SWF files after video files are imported into flash, it cannot be used well on the network. Next we will introduce how to use small FLV streaming media files.
1. Create FLV streaming media files
First, open Flash MX 2004 and create a new flash document. Import the prepared AVI video file to the library. A wizard prompt is displayed during the import process, which consists of two steps: "edit" and "encoding.
Process by default. Select "import entire video", click "Next", and then "end" to complete the import process. Press Ctrl + L to open the library and double-click the imported AVI file icon to open the embedded video attributes page.
Click Export to generate a FLV file.
Through the above operations, we have successfully converted the video AVI format into the FLV format. What changes have taken place in this process? Under the conversion of default parameters. Change the AVI file of 23 MB to a FLV file of 541kb. Let a large part of the head "thin" down, which can be easily put into the network for use.
Ii. Use FLV streaming media files
Create a new flash file, press Ctrl + F7 to open the component window, and drag the mediaplayback component in media componets into the scenario.
Select the recently dragged mediaplayback component and press Alt + F7 to open the component checker interface. The parameter meanings in the component checker are as follows: the type of the playback file is defined as FLV, and MP3 files can be played. The FLV file path must be specified in the URL, because we put the FLV file and the flash file in the same directory, we only need to specify the file name here. The automatically play is automatic playback; control placement and control visibility are the position and visibility of the playback panel, respectively.
After setting, press Ctrl + enter to test the effect. Are video images and sounds refreshing!
Such a FLV-format Streaming Media Player is complete. Although it is easy to make, its functions are still complete. In particular, it provides a display of the download progress, which can be played while downloading. In this way, our website no longer needs to worry about how to put the video files with "big blocks. Flash MX 2004 supports the conversion of many video formats to FLV. You will find many new tricks by yourself. Keep exploring and you will grow fast!