asp代码如下:
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/webkaifa/) %
str="D:ffmpeg.exe"
'video="D:a.mov"
video="D:aaa.avi"
simg="D:bbbbb.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 320x240 "&flv
Isffmpeg = WshShell.Run(st*,1,**LSE)
'######################视频图片处理结束
if Isffmpeg = 0 Then
Response.Write str&"br"
end if
%
ffmpeg参数说明
ffmpeg.exe -i F:闪客之家闪客之歌.mp3 -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:11.flv
ffmpeg -i F: