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

Memory Error #370

Closed
tburrows13 opened this issue Dec 22, 2016 · 0 comments
Closed

Memory Error #370

tburrows13 opened this issue Dec 22, 2016 · 0 comments

Comments

@tburrows13
Copy link
Collaborator

When I run the following program, which creates one video from lots of videos in the same folder, I get a memory error. Is there a way to stop this? Some way to break down the process?

# video_name_list is a list of video file names
video_clip_list = []
    for item in video_name_list:
        video_clip_list.append(VideoFileClip(input_folder + item))
    final_clip = concatenate_videoclips(video_clip_list, method="compose")

Would it be better if I did this:

for item in video_name_list:
    clip = VideoFileClip(input_folder + video_name_list[i])
    final_clip = concatenate_videoclips([final_clip, clip], method="compose")
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