当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
猜你喜欢

android开发中提示:requires permission android.permission write_settings解决方法

Oschina plays disorderly on Monday

Concurrent linked queue: a non blocking unbounded thread safe queue

【QT】子类化QThread实现多线程

Apache Iceberg 中三种操作表的方式

2. Introduction to computer hardware

2 普通模式

Finally, the python project is released as exe executable program process

梁老师小课堂|谈谈模板方法模式

Windows环境下如何进行线程Dump分析
随机推荐
【QT】子类化QThread实现多线程
基于链表的有界阻塞队列 —— LinkedBlockingQueue
Commodity management system -- integrate warehouse services and obtain warehouse list
5 个我不可或缺的开源工具
[Python从零到壹] 五.网络爬虫之BeautifulSoup基础语法万字详解
EasyNTS上云网关设备在雪亮工程项目中的实战应用
ubuntu 上使用微信的新方案——手机投屏
Core knowledge of C + + 11-17 template (2) -- class template
14.Kubenetes简介
Introduction to nmon
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 pipedrive support quality publishing with 50 + deployments per day?
FC 游戏机的工作原理是怎样的?
20201108编程练习——练习3
程序员的十年之痒
Linked blocking queue based on linked list
Several rolling captions based on LabVIEW
图节点分类与消息传递 - 知乎
重新开始学习离散数学
Why choose f for the back end of dark website? - darklang