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

write_videofile gets stuck #284

Closed
rschmaelzle opened this issue Apr 19, 2016 · 1 comment
Closed

write_videofile gets stuck #284

rschmaelzle opened this issue Apr 19, 2016 · 1 comment

Comments

@rschmaelzle
Copy link

Hi,
I am trying to convert a series of about 1000 images (previously created using matplotli and saved) into a movie.

import moviepy.editor as mp

files = [s for s in os.listdir('/Users/Ralf/Desktop/movieplots') if re.match('tmp2',s)]
f2 = files[0:400]  #here i try to select subsets to see whn it crashes, but doesn't seem to be fixed number
clip = mp.ImageSequenceClip(f2, fps=30)

#clipaudio = mp.VideoFileClip(video_filename).subclip(0,34)
#clipaudio.audio.write_audiofile("theaudio2.mp3", fps = 22050)

clip.write_videofile('full_movies_sound.mp4',fps=30, codec='libx264')#, audio=clipaudio) 

I am getting stuck at the last line where the file should be written - it simply stays at 0 forever (but sometimes runs up to a certain number of frames - once or twice also did the job - thus highly unpredictable so far). This is the output.

MoviePy: building video file nosound.mp4
----------------------------------------

Writing video into nosound.mp4
|----------| 0/401   0% [elapsed: 00:00 left: ?, ? iters/sec]

no idea what is going on. Thanks, R

@rschmaelzle
Copy link
Author

did some dependency upgrades - works for now

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