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

Error when using ffmpeg_movie_from_frames "global name 'bitrate' is not defined" #208

Closed
chicocvenancio opened this issue Sep 17, 2015 · 2 comments

Comments

@chicocvenancio
Copy link

I'm getting an error when trying to use ffmpeg_movie_from_frames on a ubuntu machine.

Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/moviepy/video/io/ffmpeg_tools.py", line 20, in ffmpeg_movie_from_frames
"-b", "%dk"%bitrate,
NameError: global name 'bitrate' is not defined

@Zulko
Copy link
Owner

Zulko commented Sep 17, 2015

Either use directly an ffmpeg command (you can from Python with

os.system("ffmpeg -i *.jpeg result.mp4")

Or use moviepy's ImageSequenceClip:

import moviepy.editor as mpe
clip = mpe.ImageSequenceClip(["list","of","filenames"], fps=15)
clip.write_videofile("test.mp4", **some_options)

@chicocvenancio
Copy link
Author

Great! Thanks, got an error when using unicode for the file paths but worked great with strings.
Should this be in the documentation somewhere? Is it already?

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