当前位置:网站首页>[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
边栏推荐
- 927. Trisection simulation
- LeetCode-61
- Basic explanation of typescript
- Liunx starts redis
- [rust notes] 15 string and text (Part 1)
- Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135
- Sum of three terms (construction)
- MIT-6874-Deep Learning in the Life Sciences Week 7
- LeetCode 1200. Minimum absolute difference
- LeetCode-54
猜你喜欢

1.15 - input and output system

SPI details

高斯消元 AcWing 884. 高斯消元解异或線性方程組

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

求组合数 AcWing 887. 求组合数 III

Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software

Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne

MIT-6874-Deep Learning in the Life Sciences Week 7

MySQL advanced part 1: stored procedures and functions

1.14 - assembly line
随机推荐
One question per day 1020 Number of enclaves
Leetcode-556: the next larger element III
Shutter web hardware keyboard monitoring
1.13 - RISC/CISC
【LeetCode】Day94-重塑矩阵
背包问题 AcWing 9. 分组背包问题
Error ora-28547 or ora-03135 when Navicat connects to Oracle Database
[rust notes] 15 string and text (Part 1)
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
LeetCode 1200. Minimum absolute difference
There are three kinds of SQL connections: internal connection, external connection and cross connection
Filter the numbers and pick out even numbers from several numbers
Data visualization chart summary (II)
博弈论 AcWing 892. 台阶-Nim游戏
Sqlmap tutorial (1)
JS quickly converts JSON data into URL parameters
How to understand the definition of sequence limit?
Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022
LeetCode-54
博弈论 AcWing 891. Nim游戏