Open riforik opened 4 years ago
You need to actually install FFMPEG, the FFMPEG module on NPM simply exports a wrapper API for FFMPEG's command-line interface. You can download FFMPEG's binaries from the website or use a package manager (like apt on Ubuntu, brew on Mac or choco on Windows) which usually takes care of dropping the binaries into a directory that is present in the PATH.
You need to actually install FFMPEG, the FFMPEG module on NPM simply exports a wrapper API for FFMPEG's command-line interface. You can download FFMPEG's binaries from the website or use a package manager (like apt on Ubuntu, brew on Mac or choco on Windows) which usually takes care of dropping the binaries into a directory that is present in the PATH.
@chroventer thanks for the resolve, installing the binaries manually seems to be what I'll have to do. By using node installed on a web hosted server, I sadly can't even run npm i
due to security limitations.
Cloudlinux NodeJS Selector demands to store node modules for application in separate folder (virtual environment) pointed by symlink called "node_modules". That's why application should not contain folder/file with such name in application root
Other problems are caused by the choice of host but manually installing FFMPEG's binaries to the right directories seemingly would work. The problem here is on machines like Windows 10 OS builds you have to link the environment path as well before using ffmpeg
in command line.
Other Problems
- using the hosted server and configuring the bot through their node app environment page I come across the same errors when trying to run
npm i
in command line. The following error comes from the hosted node app
Traceback (most recent call last): File "/opt/alt/python27/lib/python2.7/site-packages/clselector/cl_selector.py", line 190, in run self.run_install_modules() File "/opt/alt/python27/lib/python2.7/site-packages/clselector/cl_selector.py", line 380, in run_install_modules skip_web_check=self._opts['--skip-web-check']) File "/opt/alt/python27/lib/python2.7/site-packages/clselector/selectorlib.py", line 671, in install_modules self._install_modules_for_stopped_app(user, app_root) File "/opt/alt/python27/lib/python2.7/site-packages/clselector/selectorlib.py", line 911, in _install_modules_for_stopped_app environment.extension_install(extension='-', cwd=cwd) File "/opt/alt/python27/lib/python2.7/site-packages/clselect/clselectnodejsuser/environments.py", line 124, in extension_install check_call(args=command, preexec_fn=self._demote(), cwd=cwd) File "/opt/alt/python27/lib/python2.7/site-packages/clselect/utils.py", line 91, in check_call check_output(*args, **kwargs) File "/opt/alt/python27/lib/python2.7/site-packages/clselect/utils.py", line 125, in check_output raise ClSelectExcept.ExternalProgramFailed(error or stderr or stdout) ExternalProgramFailed: Cloudlinux NodeJS Selector demands to store node modules for application in separate folder (virtual environment) pointed by symlink called "node_modules". That's why application should not contain folder/file with such name in application root
Simply is not installed on the remote server - riforik
Cloudlinux NodeJS Selector demands to store node modules for application in separate folder (virtual environment) pointed by symlink called "node_modules". That's why application should not contain folder/file with such name in application root
You need to actually install FFMPEG, the FFMPEG module on NPM simply exports a wrapper API for FFMPEG's command-line interface. - chroventer manually installing FFMPEG's binaries to the right directories seemingly would work - riforik
FFMPEG Not Found
Ffmpeg can not be found on the system for possible reasons.
Notes
Error