当前位置:网站首页>[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
边栏推荐
- 2022/6/29-日报
- Applicable to Net free barcode API [off] - free barcode API for NET [closed]
- SQL三种连接:内连接、外连接、交叉连接
- SPI details
- Doing SQL performance optimization is really eye-catching
- Traversal of leetcode tree
- MySQL advanced part 2: MySQL architecture
- Golang uses context gracefully
- Simple selection sort of selection sort
- LeetCode 0107. Sequence traversal of binary tree II - another method
猜你喜欢

Traditional databases are gradually "difficult to adapt", and cloud native databases stand out

Leetcode-6111: spiral matrix IV

可变电阻器概述——结构、工作和不同应用

Liunx starts redis

Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams

Doing SQL performance optimization is really eye-catching

MySQL advanced part 2: SQL optimization

Leetcode stack related

Open source storage is so popular, why do we insist on self-development?

RGB LED infinite mirror controlled by Arduino
随机推荐
Sqlmap tutorial (II) practical skills I
[BMZCTF-pwn] ectf-2014 seddit
[leetcode] day94 reshape matrix
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
Leetcode-6111: spiral matrix IV
Leetcode backtracking method
LeetCode 0107. Sequence traversal of binary tree II - another method
C - XOR to all (binary topic)
1.13 - RISC/CISC
Leetcode-31: next spread
【LeetCode】Day94-重塑矩阵
区间问题 AcWing 906. 区间分组
MySQL advanced part 2: the use of indexes
Leetcode-6110: number of incremental paths in the grid graph
C Primer Plus Chapter 15 (bit operation)
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
Traversal of leetcode tree
容斥原理 AcWing 890. 能被整除的数
MIT-6874-Deep Learning in the Life Sciences Week 7
11-gorm-v2-03-basic query