-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Error #330
Comments
If I recall correctly, this is an incompatibility with Python 3 when another error happens. From the stacktrace, where is this error triggered? Does this helps? |
[MoviePy] >>>> Building video movie.mp4 0%| | 0/1047 [00:00<?, ?it/s] |
Above is the entire output, triggered on line 3 |
Look at the PR and modify manually - ffmpeg_error = self.proc.stderr.read()
+ ffmpeg_error = str(self.proc.stderr.read()) on line 87. After doing so, you should get another error, which is this time the real error from ffmpeg. |
Right, it worked; error message below |
Traceback (most recent call last): MoviePy error: FFMPEG encountered the following error while writing file movieTEMP_MPY_wvf_snd.mp3: b"Unknown encoder 'libmp3lame'\n" The audio export failed because FFMPEG didn't find the specified codec for audio encoding (libmp3lame). Please install this codec or change the codec when calling to_videofile or to_audiofile. For instance for mp3: |
Looks like I don't have libmp3lame installed... |
I guess that from this point, the error is pretty straightforward. The error says: |
from moviepy.editor import *
clip = VideoFileClip("vid.mov")
clip.write_videofile("movie.mp4")
^ Gives the error "TypeError: Can't convert 'bytes' object to str implicitly."
It prints "Building video movie.mp4" and "Writing audio in movieTEMP_MPY_wvf_snd.mp3" normally.
I am using python 3.2 with Raspian Wheezy.
What is wrong? Surely it should be a simple program...
The text was updated successfully, but these errors were encountered: