Closed sugizo closed 4 months ago
can work with wand python module
not work with wand and have an error
ArgumentError Traceback (most recent call last) [<ipython-input-6-89c06f30aceb>](https://localhost:8080/#) in <cell line: 10>() 8 return img 9 video0 = VideoFileClip("mountains.mp4") ---> 10 video0 = video0.fl_image(tes) 10 frames <decorator-gen-178> in set_make_frame(self, mf) <decorator-gen-128> in get_frame(self, t) /usr/local/lib/python3.10/dist-packages/wand/image.py in read(self, file, filename, blob, background, colorspace, depth, extract, format, height, interlace, resolution, sampling_factors, units, width) 10133 elif filename is not None: 10134 filename = encode_filename(filename) > 10135 r = library.MagickReadImage(self.wand, filename) 10136 if not r: 10137 self.raise_exception() ArgumentError: argument 2: TypeError: wrong type
!apt update !apt install -y libmagickwand-dev
!wget -c https://cdn.creatomate.com/demo/mountains.mp4
pip install -U moviepy wand
from moviepy.editor import * from wand.image import Image def tes(image): brightness = 0.0 # 0.0 for unchanged contrast = 10.0 # 0.0 for unchanged with Image(filename = image) as img: img.brightness_contrast(brightness = brightness, contrast = contrast) return img video0 = VideoFileClip("mountains.mp4") video0 = video0.fl_image(tes)
test wand with the same python version and same google colab platform it's work well
thanks and best regards
You seem to be opening lots of issues to report problems in libraries that don't have anything to do with MoviePy?
Closing, see https://github.com/Zulko/moviepy/issues/2105#issuecomment-1937111760.
Expected Behavior
can work with wand python module
Actual Behavior
not work with wand and have an error
Steps to Reproduce the Problem
Specifications
test wand with the same python version and same google colab platform it's work well
thanks and best regards