简体   繁体   English

ffmpeg-php静默设置

[英]ffmpeg-php silent setting

does ffmpeg-php have a silent setting or any way to keep it from displaying errors? ffmpeg-php是否有一个静默设置或任何防止它显示错误的方法? the closest I've seen were for running ffmpeg via command line in Linux. 我所看到的最接近的是在Linux中通过命令行运行ffmpeg。

Not that I'm aware of, but as a sort if work around you could install your own error handler which could catch and sort your ffmpeg errors. 并不是我所知道的,但是作为一种解决方法,您可以安装自己的错误处理程序,该错误处理程序可以捕获和排序ffmpeg错误。 It's cleaner than using the @ symbol and has worked for me in the past. 它比使用@符号更干净,并且过去对我有用。

http://php.net/manual/en/function.set-error-handler.php http://php.net/manual/zh/function.set-error-handler.php

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

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