当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Introduction to nmon
- centos7下安装iperf时出现 make: *** No targets specified and no makefile found. Stop.的解决方案
- Linked blocking queue based on linked list
- Several rolling captions based on LabVIEW
- Detailed analysis of OpenGL es framework (8) -- OpenGL es Design Guide
- 从实践谈 Ruby 语法上的几个设计不一致带来的问题。
- 非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
- 20201108 programming exercise exercise 3
- [Python from zero to one] 5. Detailed explanation of beautiful soup basic syntax of web crawler
- OpenGL ES 框架详细解析(八) —— OpenGL ES 设计指南
猜你喜欢
老大问我:“建表为啥还设置个自增 id ?用流水号当主键不正好么?”
leetcode之反转字符串中的元音字母
图节点分类与消息传递 - 知乎
卧槽,这年轻人不讲武德,应届生凭“小抄”干掉5年老鸟,成功拿到字节20Koffer
Have you ever thought about why the transaction and refund have to be split into different tables
B. protocal has 7000eth assets in one week!
Android emulator error: x86 emulation currently requires hardware acceleration solution
Linked blocking queue based on linked list
如何通过Sidecar自定义资源减少Istio代理资源消耗
When iperf is installed under centos7, the solution of make: * no targets specified and no makefile found. Stop
随机推荐
Android emulator error: x86 emulation currently requires hardware acceleration solution
LTM understanding and configuration notes
Get the first cover image of video through canvas
无法启动此程序,因为计算机中丢失 MSVCP120.dll。尝试安装该程序以解决此问题
Finally, the python project is released as exe executable program process
For the first time open CSDN, this article is for the past self and what is happening to you
C + + adjacency matrix
Android emulator error: x86 emulation currently requires hardware acceleration的解决方案
通过canvas获取视频第一帧封面图
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!
3.你知道计算机是如何启动的吗?
重新开始学习离散数学
上线1周,B.Protocal已有7000ETH资产!
1.操作系统是干什么的?
作业2020.11.7-8
C++之异常捕获和处理
The vowels in the inverted string of leetcode
Commodity management system -- the search function of SPU
Why choose f for the back end of dark website? - darklang
Talk about my understanding of FAAS with Alibaba cloud FC