当前位置:网站首页>[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
边栏推荐
- Leetcode recursion
- 背包问题 AcWing 9. 分组背包问题
- Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
- MySQL advanced part 2: optimizing SQL steps
- Golang uses context gracefully
- Navicat连接Oracle数据库报错ORA-28547或ORA-03135
- 1.13 - RISC/CISC
- 区间问题 AcWing 906. 区间分组
- RGB LED infinite mirror controlled by Arduino
- Leetcode-6109: number of people who know secrets
猜你喜欢
区间问题 AcWing 906. 区间分组
WordPress switches the page, and the domain name changes back to the IP address
MySQL advanced part 1: stored procedures and functions
Operator priority, one catch, no doubt
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
传统数据库逐渐“难适应”,云原生数据库脱颖而出
高斯消元 AcWing 884. 高斯消元解异或线性方程组
Leetcode-6111: spiral matrix IV
Arduino 控制的 RGB LED 无限镜
随机推荐
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
Currently clicked button and current mouse coordinates in QT judgment interface
Sqlmap tutorial (1)
Leetcode-22: bracket generation
高斯消元 AcWing 884. 高斯消元解异或線性方程組
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
Leetcode heap correlation
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
[rust notes] 14 set (Part 2)
Overview of variable resistors - structure, operation and different applications
Traversal of leetcode tree
[learning] database: several cases of index failure
New title of module a of "PanYun Cup" secondary vocational network security skills competition
【LeetCode】Day95-有效的数独&矩阵置零
Leetcode-6109: number of people who know secrets
How to understand the definition of sequence limit?
liunx启动redis
Day 2 document
[rust notes] 16 input and output (Part 1)
SPI 详解