标签: video ffmpeg compression
我想在上传视频时压缩视频文件。我为此安装了ffmpeg,我正在使用下面的代码。
视频流压缩代码: -
shell_exec($ffmpeg -i test.mp4 -s 320x240 new.mp4);
视频被压缩。但这需要太多的时间来压缩,我总是得到"Maximum execution time of 30 seconds exceeded",这是错误的。
"Maximum execution time of 30 seconds exceeded"
请帮我解决这个问题。我不想改变我的最长执行时间。上述代码中是否有任何错误请帮我纠正或建议我另一种方法或代码......