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

TypeError in Adding Soundtrack #279

Closed
agieocean opened this issue Mar 17, 2016 · 1 comment
Closed

TypeError in Adding Soundtrack #279

agieocean opened this issue Mar 17, 2016 · 1 comment

Comments

@agieocean
Copy link

When running this line:
movie = VideoFileClip(image).set_audio(AudioFileClip(audio))
I get the following error:

File "C:\Python34\lib\site-packages\moviepy\audio\io\AudioFileClip.py", line 63, in __init__
    buffersize=buffersize)
  File "C:\Python34\lib\site-packages\moviepy\audio\io\readers.py", line 70, in __init__
    self.buffer_around(1)
  File "C:\Python34\lib\site-packages\moviepy\audio\io\readers.py", line 234, in buffer_around
    self.buffer =  self.read_chunk(self.buffersize)
  File "C:\Python34\lib\site-packages\moviepy\audio\io\readers.py", line 123, in read_chunk
    self.nchannels))
TypeError: 'float' object cannot be interpreted as an integer

The audio file is a 1411 kbps wav.

@Zulko
Copy link
Owner

Zulko commented Apr 8, 2016

Does it work if you first transcode your file into some other format using e.g. ffmpeg ?

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