当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 20201108 programming exercise exercise 3
- LTM理解及配置笔记记录
- APP 莫名崩溃,开始以为是 Header 中 name 大小写的锅,最后发现原来是容器的错!
- range_sensor_layer
- RabbitMQ脑裂问题解决方案调查
- In 2020, what are the best tools for Android developers to break the cold winter?
- C++邻接矩阵
- 如何通过Sidecar自定义资源减少Istio代理资源消耗
- 商品管理系统——整合仓库服务以及获取仓库列表
- Tips in Android Development: requires permission android.permission write_ Settings solution
猜你喜欢
[Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler
Concurrent linked queue: a non blocking unbounded thread safe queue
RabbitMQ脑裂问题解决方案调查
14. Introduction to kubenetes
How does semaphore, a thread synchronization tool that uses an up counter, look like?
几行代码轻松实现跨系统传递 traceId,再也不用担心对不上日志了!
服务器性能监控神器nmon使用介绍
After Android solves the setrequested orientation, the rotation of the mobile phone screen does not trigger the onconfigurationchanged method
2020,Android开发者打破寒冬的利器是什么?
A brief introduction of C code to open or close the firewall example
随机推荐
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
File queue in Bifrost (1)
The file size uploaded by WordPress import exceeds php.ini Upload defined in_ max_ Filesize value -- & gt; solution.
使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
2 普通模式
Ten year itch of programmer
Composition - API
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!
AQS 都看完了,Condition 原理可不能少!
Salesforce connect & external object
C++之异常捕获和处理
WordPress Import 上传的文件尺寸超过php.ini中定义的upload_max_filesize值-->解决方法。
Do you know how the computer starts?
RabbitMQ脑裂问题解决方案调查
Adding OpenGL form to MFC dialog
BIOS of operating system
Windows环境下如何进行线程Dump分析
Service grid is still difficult - CNCF
Exception capture and handling in C + +
亚马逊的无服务器总线EventBridge支持事件溯源 - AWS