系统命令错误代码126 [英] System command error code of 126

查看:74
本文介绍了系统命令错误代码126的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请,我正在尝试使用ffmpeg将mpg文件转换为flv.我正在使用php system()命令执行它.但是,我得到的错误代码为126.这意味着什么的任何想法?这是我的代码: system($ ffmpegPath."-i".$ srcFile."-b 4000k -maxrate 4000k -bufsize 1835k".$ destFile,$ cmd_status)

Please, I am trying to convert an mpg file to flv with ffmpeg. I am using the php system() command to execute it. However, I get an error code of 126. Any idea of what that means? Here is my code: system($ffmpegPath. " -i ". $srcFile. " -b 4000k -maxrate 4000k -bufsize 1835k ". $destFile, $cmd_status)

谢谢.我发现我指的是错误的ffmpeg二进制文件.但是,既然我指向的是正确的二进制文件,则会出现127错误.有什么帮助吗?

Thanks. I discovered I was referring to the wrong ffmpeg binary. However, now that I am pointing to the right binary, I get an error of 127. Any help?

推荐答案

来自 bash(1)手册页:

如果找到了命令但无法执行,返回状态为126.

If a command is found but is not executable, the return status is 126.

确保您可以执行给定的二进制文件.

Make sure that you can execute the given binary.

这篇关于系统命令错误代码126的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆