question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CompositeVideoClip([xxx]).rotate(90) ValueError: axes don't match array

See original GitHub issue

Expected 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
rriokwokcommented, Mar 12, 2020

bg_clip.rotate(90, expand=False) would give what you want.

0reactions
tburrows13commented, Oct 8, 2020

Fixed in #1335

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found