澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

php and ffmpeg from command line in windows - not working, nothing returns

itPublisher 分享于

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1073

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
地址https://www.aliyun.com/minisite/goods

-2

I'm trying to execute ffmpeg within a website and it never output's a file, nothing return's, I have tried it with parameters -version and that works fine. I can copy and paste the main command into dos and it also works fine.

I'm stuck, I have tried many things including shell_exec but to no avail, nothing comes back other than array(0) { } int(0). help?

 //$cmd = 'C:\ffmpeg.exe ffmpeg -version';
 $cmd = "C:\ffmpeg.exe -i C:\1.mp3 -i C:\2.mp3 -filter_complex amerge -c:a libmp3lame -q:a 4 C:\out.mp3";
 echo exec($cmd, $o, $v);
 var_dump($o);
 var_dump($v);
php ffmpeg exec shell-exec
|
  this question
asked Aug 24 '15 at 15:17 user3725395 52 7      Probably a permission issue. Keep in mind that the http server (hopefully!) runs with different permissions than your normal user account. So have a try running that command manually as the user the http server is executed under. An: take a look into the http servers error log file if php is executed under anhttp server. –  arkascha Aug 24 '15 at 15:27      How are you running this script? command line or through URL? If so you need allow certain permissions in php.ini (CLI or web) –  Pradeep Aug 24 '15 at 15:54      using web. I have tried adding IUSR to the c:\ folder and the exe and still have the same problem. –  user3725395 Aug 24 '15 at 15:59      also, I can do exec("dir > c:\zz.txt"); from php web and that works as in creates a new file ok. –  user3725395 Aug 24 '15 at 15:59

 | 

1 Answers
1

got it working, a couple of things.

  1. set IUSR permissions on ffmpeg.exe all input filename and output filename folders to full control.

  2. added double back slash to all filenames. e.g. C:\\out.mp3

now works.


|
  this answer
answered Aug 24 '15 at 16:25 user3725395 52 7

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场 <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>