The ASP code is as follows:
<%
Str= "D:\ffmpeg.exe"
video= "D:\a.mov"
video= "D:\aaa.avi"
Simg= "D:\bbbbbb.jpg"
flv= "D:\3gp2.flv"
Response.Write Video
Set WshShell = server. CreateObject ("Wscript.Shell")
Dim RANNUM1
Randomize
Rannum1=int (10*RND) +1
str=str& "-i" &video& "-y-f image2-ss" &ranNum1& "-t 0.005-s 120x90" &simg
str=str& "-i" &video& "-y-ab 56-ar 22050-b 500-r 15-s 320*240" &flv
str=str& "-i" &video& "-ab 56-ar 22050-b 500-r 15-s" &flv
Isffmpeg = Wshshell.run (st*,1,**lse)
##################### #视频图片处理结束
If Isffmpeg = 0 Then
Response.Write str& "<br>"
End If
%>
FFmpeg parameter Description
Ffmpeg.exe-i F:\ 's home Flash guest song. Mp3-ab 56-ar 22050-b 500-r 15-s f:\11.flv
Ffmpeg-i f:\ 01.wmv-ab 56-ar 22050-b 500-r 15-s f:\test.flv
function with-SS parameter (Time_off set the start time Offset) to convert the task from a specified point in time. For example:
Convert file format while grasping thumbnail:
Ffmpeg-i "Test.avi"-y-f image2-ss 8-t 0.001-s 350x24 0 test.jpg
to an existing FLV grab:
ffmpeg-i test.flv "-y-f image2-ss 8-t 0.001-s 350 x240 test.jpg
-ss the time unit followed by seconds
ffmpeg conversion command
FFmpeg- Y-i test.mpeg-bitexact-vcodec h263-b 128-r 15-s 176x144-acodec aac-ac 2-ar 22500
-ab 24-f 3gp test.3gp
or
ffmpeg-y-i test.mpeg-ac 1-acodec amr_nb-ar 8000-s 176 X144-b 128-r test.3gp
FFmpeg parameter setting explanation
-bitexact using standard bit rate
-vcodec xvid using XviD compression
-S-----
-R 29.97 Frame rate (can be changed to confirm that the non-standard frame rate will cause the sound
Article collation: Western Digital--professional to provideDomain Registration,Virtual HostService
Http://www.west263.com
The above information and the text of the article is an inseparable part, if you want to reprint this article, please keep the above information, thank you!
Call _asp tips for ASP functions that use Ffmpeg.exe to convert FLV formats in ASP