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 320x240 "&flv
Isffmpeg = WshShell.Run(st*,1,**LSE)
'######################Video picture processing ends
if Isffmpeg = 0 Then
Response.Write str&"<br>"
end if
%>
ffmpeg parameter description
ffmpeg.exe -i F:Shamke HomeShimke Song.mp3 -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:11.flv
ffmpeg -i F: 1.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 f:test.flv
Using the -ss parameter (time_off set the start time offset), you can start the conversion task from a specified time point. like:
Capture thumbnails while converting file formats:
ffmpeg -i "test.avi" -y -f image2 -ss 8 -t 0.001 -s 350x240 'test.jpg'
Take a picture of the existing flv:
ffmpeg -i "test.flv" -y -f image2 -ss 8 -t 0.001 -s 350x240 'test.jpg'
The time unit followed by -ss is 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 176x144 -b 128 -r 15 test.3gp
ffmpeg parameter setting explanation
-bitexact uses standard bitrate
-vcodec xvid Use xvid compression
-s 320x240 specifies the resolution
-r 29.97 frame rate (can be changed, confirm that non-standard frame rate will cause audio