简体   繁体   English

在php中的exec命令中运行ffmpeg将mp4转换为ogg时系统将关闭

[英]System will shutdown when running ffmpeg to convert mp4 to ogg in exec command in php

I am using ffmpeg to convert my videos from mp4 to ogg,flv etc, So when i convert mp4 to ogg with the constant bitrate, sample rate and the dimensions.During when the command is running takes too much time.我正在使用 ffmpeg 将我的视频从 mp4 转换为 ogg、flv 等,所以当我将 mp4 转换为具有恒定比特率、采样率和尺寸的 ogg 时。在命令运行期间需要太多时间。 And after some particular(10mins) the system will shutdown and am running this in my localhost with the command .在某些特定的(10 分钟)之后,系统将关闭并使用命令在我的本地主机中运行它。 Kindly suggest any solution.请提出任何解决方案。

Read about set_time_limit in the PHP manual.阅读 PHP 手册中的set_time_limit It is likely that your script is timing out.您的脚本很可能超时。

You can disable this limit (if you are not running PHP in safe mode) via:您可以通过以下方式禁用此限制(如果您未在安全模式下运行 PHP):

set_time_limit(0);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM