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

unable to create video from images #1074

Closed
inzack opened this issue Feb 4, 2020 · 1 comment
Closed

unable to create video from images #1074

inzack opened this issue Feb 4, 2020 · 1 comment

Comments

@inzack
Copy link

inzack commented Feb 4, 2020

Expected Behavior

video should be created successfully with all images

Actual Behavior

video is created with first image, it is not going to other images.

Steps to Reproduce the Problem

import moviepy.editor as mp
from moviepy.editor import *

data_path = os.path.join("\images\",'*g')

fps1 = [ImageClip(m)
for m in glob.glob(data_path)]

merged_clip = mp.concatenate_videoclips(fps1, method="chain")

audioclip = AudioFileClip("\alisha.mp3")
videoclip = merged_clip.set_audio(audioclip)
videoclip.write_videofile("test4.mp4",fps=28)

i tried with the below link its not working out.
#285

Specifications

  • Python Version: python 3.8.1
  • Moviepy Version: 1.0.1
  • Platform Name: windows
  • Platform Version: 10
@inzack
Copy link
Author

inzack commented Feb 6, 2020

The issue is fixed.

The issue was images i used, earlier the images were 2mb, 1mb etc but later i understood that all images should be above 14 kb and below 100 kb and possibly jpg files.

Other changes were as follows
clips.append(VideoFileClip("E:\images\"+ file).set_duration(10))
video = concatenate_videoclips( clips,method='compose')

Please let me know how to increase the image size

@inzack inzack closed this as completed Feb 6, 2020
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

1 participant