当前位置:网站首页>When Python calls ffmpeg, 'ffmpeg' is not an internal or external command, nor a runnable program
When Python calls ffmpeg, 'ffmpeg' is not an internal or external command, nor a runnable program
2020-11-09 08:25:00 【osc_ucqb2u3q】
solve python call ffmpeg when ‘ffmpeg’ Not an internal or external command , It's not a runnable program
stay windows Under the system , We use windows Next , Use ffmpeg Library call FFmpeg Tools to extract video images / Read video information
import ffmpeg
We may encounter the following problems
'ffmpeg' Not an internal or external command , It's not a runnable program
What's the reason for this ?
python Of ffmpeg It's using subprocess.Popen() Function to call the command line , And then get the returned data . Equivalent to python In your system cmd In the input ffmpeg xxx xxx xxx xxx
Then the system reports you an error ‘ffmpeg’ Not an internal or external command , It's not a runnable program
So there are two reasons :
- Not installed ffmpeg
Please refer to install ffmpeg - No environment variables have been added
Please refer to :https://blog.csdn.net/tang_chuanlin/article/details/103749351
But the quickest way is , When you download well ffmpeg
Then decompress , Write down the bin The path of
E://anaconda//ffmpeg-4.3.1//bin//
And then modify ffmpeg The code of
- 《 Yours python Package path 》/site-packages/ffmpeg/_probe.py
Add directly ffmpeg The path of
- 《 Yours python Package path 》/site-packages/ffmpeg/_run.py
Add directly ffmpeg The path of
版权声明
本文为[osc_ucqb2u3q]所创,转载请带上原文链接,感谢
边栏推荐
- The vowels in the inverted string of leetcode
- 14.Kubenetes简介
- Start learning discrete mathematics again
- Adding OpenGL form to MFC dialog
- Application of cloud gateway equipment on easynts in Xueliang project
- 简单介绍c#通过代码开启或关闭防火墙示例
- Service grid is still difficult - CNCF
- 14. Introduction to kubenetes
- 一堆代码忘了缩进?快捷方式教你无忧无虑!
- Investigation of solutions to rabbitmq cleft brain problem
猜你喜欢
重新开始学习离散数学
C++之异常捕获和处理
C++邻接矩阵
Three ways to operate tables in Apache iceberg
华为HCIA笔记
Commodity management system -- integrate warehouse services and obtain warehouse list
Platform in architecture
App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
Copy on write collection -- copyonwritearraylist
平台商业化能力的另一种表现形式SAAS
随机推荐
How does semaphore, a thread synchronization tool that uses an up counter, look like?
失业日志 11月5日
对象
架构中台图
平台商业化能力的另一种表现形式SAAS
Leetcode-15: sum of three numbers
Adding OpenGL form to MFC dialog
android开发中提示:requires permission android.permission write_settings解决方法
Commodity management system -- integrate warehouse services and obtain warehouse list
App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
How does FC game console work?
结合阿里云 FC 谈谈我对 FaaS 的理解
C++之异常捕获和处理
一堆代码忘了缩进?快捷方式教你无忧无虑!
python生日贺卡制作以及细节问题的解决最后把python项目发布为exe可执行程序过程
第五章编程
Leetcode-11: container with the most water
C + + adjacency matrix
重新开始学习离散数学
OSChina 周一乱弹 —— 程序媛的青春