我现在有ffmpeg.exe 这个文件,然后php得如何调用?
有mp3文件一个:1.mp3,然后要利用ffmpeg来截取1.mp3的前20秒,并保存为2.mp3文件asp的话是这样写。。但是求助php得如何写??
<%
video="1.mp3"
video2="2.mp3"str="ffmpeg.exe"
str=server.mappath(str)
Set WshShell = server.CreateObject("Wscript.Shell")
str=str&" -i "&server.mappath(video)&" -b 360 -ar 24000 -t 39 "&server.mappath(video2)Isffmpeg = WshShell.Run(str,1,false)
Set WshShell = Nothing
%>上面的代码是asp的,求高手帮忙改为php格式~~~