Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moviepy Image Module #1000

Closed
Zayn-Rekhi opened this issue Aug 22, 2019 · 3 comments
Closed

Moviepy Image Module #1000

Zayn-Rekhi opened this issue Aug 22, 2019 · 3 comments

Comments

@Zayn-Rekhi
Copy link

So basically I am using the Pillow module in python and also the moviepy library in order to make a video out of pictures. Though, when I try to get the images using moviepy through the my_clip = Image(f"{SmallVidCount}.jpg"), the Image() is read as something from PIL library. It gives me the object has no attribute error in python.

I have tried to use mpe.Image(f"{SmallVidCount}.jpg"), but it gives me the module 'moviepy.editor' has no attribute 'Image' error. The First one is module 'object' has no attribute 'Image'.

                my_clip = mpe.Image(f"{SmallVidCount}.jpg") # has infinite duration
				my_clip.set_duration(path_lengthList[SmallVidCount]).write_videofile("f{SmallVidCount}.mp4") # works !
				myclip.set_audio(f"{SmallVidCount}.mp3")
				SmallVidCount+=1

I just want it to output a video that is made out of the pictures. I got this code from https://zulko.github.io/moviepy/getting_started/videoclips.html

@Zayn-Rekhi
Copy link
Author

Zayn-Rekhi commented Aug 22, 2019

my_clip = mpe.Image(f"{SmallVidCount}.jpg") # has infinite duration
				my_clip.set_duration(path_lengthList[SmallVidCount]).write_videofile("f{SmallVidCount}.mp4") # works !
				myclip.set_audio(f"{SmallVidCount}.mp3")
				SmallVidCount+=1

sorry, I formatted my code wrong in the post

@tburrows13
Copy link
Collaborator

Use ImageClip, not Image.

tburrows13 added a commit to tburrows13/moviepy that referenced this issue Apr 27, 2020
@tburrows13
Copy link
Collaborator

Thanks for reporting this, I've fixed the faulty docs in #1159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants