当前位置:网站首页>[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
边栏推荐
- [rust notes] 15 string and text (Part 1)
- Overview of variable resistors - structure, operation and different applications
- MySQL advanced part 1: View
- Leetcode-31: next spread
- SPI 详解
- WordPress switches the page, and the domain name changes back to the IP address
- Single chip computer engineering experience - layered idea
- Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
- LeetCode-61
- LeetCode 0107. Sequence traversal of binary tree II - another method
猜你喜欢
栈 AcWing 3302. 表达式求值
MySQL advanced part 2: optimizing SQL steps
Appium automation test foundation - Summary of appium test environment construction
Leetcode-6111: spiral matrix IV
1.14 - assembly line
Doing SQL performance optimization is really eye-catching
中国剩余定理 AcWing 204. 表达整数的奇怪方式
求组合数 AcWing 887. 求组合数 III
MIT-6874-Deep Learning in the Life Sciences Week 7
Real time clock (RTC)
随机推荐
博弈论 AcWing 894. 拆分-Nim游戏
[rust notes] 13 iterator (Part 2)
The difference between CPU core and logical processor
1040 Longest Symmetric String
[rust notes] 15 string and text (Part 1)
Golang uses context gracefully
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
MySQL advanced part 2: MySQL architecture
论文阅读报告
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
SPI details
可变电阻器概述——结构、工作和不同应用
Data visualization chart summary (II)
How to understand the definition of sequence limit?
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
[rust notes] 14 set (Part 2)
Sum of three terms (construction)
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
Winter messenger 2
Usage scenarios of golang context