当前位置:网站首页>[moviepy] unable to find a solution for exe
[moviepy] unable to find a solution for exe
2022-07-05 06:21:00 【It's time to wake up】
List of articles
Preface
Sometimes use moviepy There are always some strange problems , As in another system :

Cross system operation problems , bring moviepy Called imageio Called imageio_ffmpeg It is considered that there is no installation ffmpeg. Then how to solve it ?
solve
Reading newspapers is wrong :set the _MAGEIO_FFMPEG_EXE environment variable, combination imageio_ffmpeg._util, It was used 4 There are two ways to find ffmpeg:
- environment variable
- imageio_ffmpeg/binary/ffmpeg.exe
- Current directory
- System commands ( perform :ffmpeg -version)
that , The solution is simple .
Method 1
import os
path_to_ffmpeg = r""
os.environ["IMAGEIO_FFMPEG_EXE"] = path_to_ffmpeg # All three systems are like this
from moviepy import editor # OK!
Method 2( nothing )
Skip find 2, Because packing exe Then it's not suitable
Method 3
Put in the current directory ffmpeg.exe
--program
|-code.py/exe
|-ffmpeg.exe
Method 4
install ffmpeg Apply to the system or specify environment variables
::windows Under the batch file .bat/.cmd
@echo off
echo Please drag in ffmpeg Where Folder :
set /P ffmpeg= Please enter :
echo About to join ffmpeg:%ffmpeg% Agree, please click any key .
pause
set path=%ffmpeg%;%path%
You can use this bat Set system environment variables in batch file
result

ffmpeg download
Official website :http://ffmpeg.org/
Pconline: x64x86 This is a 3.1
among pconline Of ffmpeg as long as /bin/ffmpeg.exe A file ( about 36mb) That's it
summary
Learn to read newspaper errors and source code
This article is from CSDN On 20222/13 14:23
边栏推荐
- MySQL advanced part 2: MySQL architecture
- Chapter 6 relational database theory
- Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
- 阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
- 栈 AcWing 3302. 表达式求值
- Daily question 1189 Maximum number of "balloons"
- QQ computer version cancels escape character input expression
- Leetcode-556: the next larger element III
- Traversal of leetcode tree
- [rust notes] 17 concurrent (Part 1)
猜你喜欢

Single chip computer engineering experience - layered idea

Leetcode-6111: spiral matrix IV

Day 2 document

2021apmcm post game Summary - edge detection

开源存储这么香,为何我们还要坚持自研?

传统数据库逐渐“难适应”,云原生数据库脱颖而出

What is socket? Basic introduction to socket

P2575 master fight

背包问题 AcWing 9. 分组背包问题

MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
随机推荐
栈 AcWing 3302. 表达式求值
The difference between CPU core and logical processor
Leetcode-6108: decrypt messages
Golang uses context gracefully
Sword finger offer II 058: schedule
高斯消元 AcWing 884. 高斯消元解异或線性方程組
[rust notes] 16 input and output (Part 2)
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
Currently clicked button and current mouse coordinates in QT judgment interface
[rust notes] 13 iterator (Part 2)
Gaussian elimination acwing 884 Gauss elimination for solving XOR linear equations
MySQL advanced part 1: triggers
求组合数 AcWing 887. 求组合数 III
our solution
MySQL advanced part 1: stored procedures and functions
MySQL advanced part 2: the use of indexes
WordPress switches the page, and the domain name changes back to the IP address
SPI 详解
做 SQL 性能优化真是让人干瞪眼
Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022