当前位置:网站首页>[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
边栏推荐
- MySQL advanced part 1: index
- 开源存储这么香,为何我们还要坚持自研?
- 1041 Be Unique
- Record the process of configuring nccl and horovod in these two days (original)
- Leetcode-6108: decrypt messages
- C job interview - casting and comparing - C job interview - casting and comparing
- P3265 [jloi2015] equipment purchase
- Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
- 快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
- P2575 master fight
猜你喜欢
求组合数 AcWing 889. 满足条件的01序列
Appium foundation - use the first demo of appium
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
【LeetCode】Easy | 20. Valid parentheses
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
1.15 - input and output system
Open source storage is so popular, why do we insist on self-development?
RGB LED infinite mirror controlled by Arduino
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
Day 2 document
随机推荐
LeetCode 1200. Minimum absolute difference
Records of some tools 2022
Redis publish subscribe command line implementation
SPI details
[BMZCTF-pwn] ectf-2014 seddit
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
Usage scenarios of golang context
2022/6/29-日报
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
Introduction to LVS [unfinished (semi-finished products)]
求组合数 AcWing 887. 求组合数 III
Sum of three terms (construction)
[2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
开源存储这么香,为何我们还要坚持自研?
P3265 [jloi2015] equipment purchase
How to understand the definition of sequence limit?
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
Multi screen computer screenshots will cut off multiple screens, not only the current screen
Sword finger offer II 058: schedule
LVS简介【暂未完成(半成品)】