Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac环境下node无法使用child_process调用/usr/local/bin/ffmpeg #8

Open
zyzdai opened this issue Mar 23, 2024 · 5 comments
Open

Comments

@zyzdai
Copy link

zyzdai commented Mar 23, 2024

An unknown error occurred. Details: Error: Command failed: ffmpeg -y -i "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav" -acodec pcm_s16le -f s16le -ac 1 -ar 24000 "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav.wav" -loglevel error
/bin/sh: ffmpeg: command not found
插件代码在windows环境下可完美运行。

An unknown error occurred. Details: Error: Command failed: /usr/local/bin/ffmpeg -y -i "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav" -acodec pcm_s16le -f s16le -ac 1 -ar 24000 "/Users/zyzdai/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/data/text_to_speech/tts.wav.wav" -loglevel error
/bin/sh: /usr/local/bin/ffmpeg: Operation not permitted

@Codebglh
Copy link

the same problem

@Codebglh
Copy link

4a5437e0601a8e08b4cc86b93c8021fb

@molanp
Copy link
Contributor

molanp commented Apr 18, 2024

考虑在新版本允许mac设备指定ffmpeg位置

@lclichen
Copy link
Owner

第一个报错应该可以通过环境变量相关的设置解决,第二个报错可能是权限问题?MacOS上可能会禁止应用执行外部命令,但是我目前没有Mac设备,因此无法进行相关测试。

@LanYunDev
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants