当前位置:Gxlcms > PHP教程 > ,ffmpeg的代码的怎样写才对!

,ffmpeg的代码的怎样写才对!

时间:2021-07-01 10:21:17 帮助过:57人阅读

紧急求助,ffmpeg的代码的怎样写才对!!
asp的是这样写:
<%
video="abc.mp3"
video3="123.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
%>

但是如果上面的代码要弄为php的话,在php得如何写啊???
php的ffmpeg代码要如何写~~~~~~~~~~

分享到:


------解决方案--------------------
ASP
str=str&" -i "&server.mappath(video)&" -b 360 -ar 24000 -t 39 "&server.mappath(video2)
PHP
$str .= " -i ".realpath($video). " -b 360 -ar 24000 -t 39 ". realpath($video2);

人气教程排行