Call _asp tips for ASP functions that use Ffmpeg.exe to convert FLV formats in ASP

Source: Internet
Author: User
Tags domain registration

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

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.