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