[英]Why can't python script find file?
I want to use a python script, but when it cannot find the webm I want to compress with it.我想使用 python 脚本,但是当它找不到我想用它压缩的 webm 时。 Yes, I am sure that the webm is called "Typical", has the file extension.webm and is on my Desktop.是的,我确信 webm 被称为“典型”,具有文件扩展名.webm 并且在我的桌面上。
Here is the link to the script: https://github.com/HelpSeeker/Restricted-WebM这是脚本的链接: https://github.com/HelpSeeker/Restricted-WebM
FFmpeg and FFprobe need to be part of your PATH for this script to work. FFmpeg 和 FFprobe 需要成为 PATH 的一部分,此脚本才能工作。 The problem is that it changes into the output folder (in your case Desktop\webm_done) for the conversion, so it doesn't have access to the local executables anymore.问题是它更改为 output 文件夹(在您的情况下为 Desktop\webm_done)进行转换,因此它不再有权访问本地可执行文件。
For now add those two executables to your PATH and it should work.现在将这两个可执行文件添加到您的 PATH 中,它应该可以工作。 Putting FFmpeg/FFprobe next to the script should be a viable option though, so I'll soon update the script to work with absolute output paths instead of changing directories.不过,将 FFmpeg/FFprobe 放在脚本旁边应该是一个可行的选择,因此我将很快更新脚本以使用绝对 output 路径而不是更改目录。
HelpSeeker求助者
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.