Process record for converting a video to a FLV File

Source: Internet
Author: User
Tags flv file
A lot of video conversion methods have been found, and the final process record is as follows:

Conversion Environment: window2003
Conversion Tool: FFMPEG
Conversion steps:
1/download the latest ffmpeg.exe version from the http://ffdshow.faireal.net/mirror/ffmpeg/ ( .7z is also a compression format)
2. decompress the package to the local c: \ FFMPEG.

3. Convert the video file command line format:
Conversion video:
Ffmpeg.exe-I "E: \ input \ 06.asf" E: \ output \ 06.mpg"// Non-FLV format

Ffmpeg.exe-I "E: \ input \ 06.asf"-y-AB 56-ar 22050 -B 500-R 15-s 320*240 test. FLV // FLV format
Video capturing:

Ffmpeg.exe-I "E: \ input \ 06.asf"-y-F image2-T 0.001-S 300*200" E: \ output \ 02.jpg" // obtain the static Graph

Ffmpeg.exe-I "E: \ input \ 06.asf"-vframes 30-y-F GIF" E: \ output \ 02.gif" // obtain the Dynamic Graph

4. Use the flash client browser tool after converting to the FLV file:
4.1/create a FLA file, window-> build-> drag flvplayback to the canvas. Alt + F7 skin parameters select the player appearance.
4.2/select flvplayback, and change the Instance name to ffplay. The layer key frame is written in the property-> parameter. Code :
Ffplay. contentpath = filepath;
5. Add <Param name = "flashvars" value = "filepath = FLV file path"> and flashvars = "filepath = FLV file path" to embedded webpages ". the former is for IE and the latter is for ff.

PS.
1. For files that cannot be parsed by FFMPEG (wmv9, RM, rmvb), you can use other tools (mencoder) to convert to Avi or MPG format.
2. If the client tool does not have a timeline after converting to FLV, you need to use Flvmdi.exe Add the time header to the FLV file. The command is:

Flvmdi.exe"Filename. FLV"/K


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.