Home > Backend Development > PHP Tutorial > 紧急求助,ffmpeg的代码的怎样写才对!!

紧急求助,ffmpeg的代码的怎样写才对!!

WBOY
Release: 2016-06-23 14:25:51
Original
1080 people have browsed it

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);

那其他代码呢?能否给下比较完整的代码

php不懂如何写

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);
具体如何写?别给一半~~很多人都需要的~

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template