CompositeVideoClip([xxx]).rotate(90) ValueError: axes don't match array
See original GitHub issueExpected Behavior
Specifications
- Python Version: 3.6.3
- Moviepy Version: 1.0.1
- Platform Name: Centos
- Platform Version: 7.2
Actual Behavior
size = (640, 320)
fps = 24
bg_clip = mpy.ImageClip(img=image, fromalpha=True)
bg_clip = bg_clip.resize(size).set_duration(d).set_fps(fps )
bg_clip = mpy.CompositeVideoClip([bg_clip])
bg_clip.rotate(90)
ValueError: axes don’t match array
change the angle to 89.99, is worked.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
How to fix ValueError: axes don't match array when loading ...
I had to train a model for 2000 epochs and save a checkpoint (only the weights) at each epoch. For saving I uses...
Read more >moviepy v1.0.2 release notes (2020-03-26)
... CompositeVideoClip([xxx]).rotate(90) ValueError: axes don't match array #1042; to_soundarray Index ... VideoFileClip.set_audio does not set audio #1030 ...
Read more >CHANGELOG.md · Gitee 极速下载/moviepy - Gitee.com
... would crash with ValueError: The truth value of an array with more than ... CompositeVideoClip([xxx]).rotate(90) ValueError: axes don't match array # ...
Read more >python 视频库_moviepy,一个Python写的视频处理库
CompositeVideoClip ([xxx]).rotate(90) ValueError: axes don't match array #1042. to_soundarray Index error #1034. write_videofile does not add ...
Read more >MoviePy is a Python library for video editing, can read and ...
from moviepy.editor import CompositeVideoClip, VideoFileClip, ... if video.rotation == 90: video = video.resize(video.size[::-1]) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
bg_clip.rotate(90, expand=False) would give what you want.
Fixed in #1335