Use ffmpeg.exe to convert ASP functions in FLV format to be called in ASP

Source: Internet
Author: User

ASPCodeAs 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 image processing ends
If isffmpeg = 0 then
Response. Write STR & "<br>"
End if
%>

FFmpeg parameter description

Ffmpeg.exe-I f:/ .mp3 .mp3-AB 56-ar 22050-B 500-R 15-s 320x240 F:/11.flv
FFmpeg-I f:/01.wmv-AB 56-ar 22050-B 500-R 15-s 320x240 F:/test. FLV
Use the-SS parameter (time_off set the Start Time Offset) to start the conversion task from a specified time point. For example:
Capture the thumbnail while converting the file format:
FFmpeg-I "test. Avi"-y-F image2-SS 8-T 0.001-s 350x240 'test.jpg'
Capture existing FLV images:
FFmpeg-I "test. FLV"-y-F image2-SS 8-T 0.001-s 350x240 'test.jpg'
-SS followed by time in 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

Description of FFMPEG parameter settings
-Bitexact uses standard Bit Rate
-Use Xvid to compress vcodec Xvid
-S 320x240 specify resolution
-R 29.97 percentile rate (it can be changed to confirm that non-standard percentile rate will cause sound

Related Article

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.