当前位置:网站首页>[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
边栏推荐
- Simple selection sort of selection sort
- 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
- NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy ar
- Leetcode-6110: number of incremental paths in the grid graph
- Leetcode-1200: minimum absolute difference
- [learning] database: MySQL query conditions have functions that lead to index failure. Establish functional indexes
- 做 SQL 性能优化真是让人干瞪眼
- 求组合数 AcWing 889. 满足条件的01序列
- [rust notes] 17 concurrent (Part 1)
- Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
猜你喜欢
20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
Sqlmap tutorial (1)
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
容斥原理 AcWing 890. 能被整除的数
Open source storage is so popular, why do we insist on self-development?
MySQL advanced part 2: the use of indexes
MySQL advanced part 1: stored procedures and functions
Day 2 document
随机推荐
How to make water ripple effect? This wave of water ripple effect pulls full of retro feeling
Filter the numbers and pick out even numbers from several numbers
Leetcode-3: Longest substring without repeated characters
Leetcode heap correlation
[rust notes] 17 concurrent (Part 1)
Shutter web hardware keyboard monitoring
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
Leetcode-6111: spiral matrix IV
SQLMAP使用教程(二)实战技巧一
Simple selection sort of selection sort
1039 Course List for Student
Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
There are three kinds of SQL connections: internal connection, external connection and cross connection
博弈论 AcWing 891. Nim游戏
Currently clicked button and current mouse coordinates in QT judgment interface
栈 AcWing 3302. 表达式求值
New title of module a of "PanYun Cup" secondary vocational network security skills competition
C - XOR to all (binary topic)
Leetcode divide and conquer / dichotomy