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

fix issue #401 #403

Merged
merged 3 commits into from Feb 15, 2017
Merged

fix issue #401 #403

merged 3 commits into from Feb 15, 2017

Conversation

ghost
Copy link

@ghost ghost commented Feb 10, 2017

this fixes a python 3 error dealing with strings and bytes. See issue #401 for more details of this error.

@tburrows13
Copy link
Collaborator

This does the same as https://github.com/Zulko/moviepy/pull/295/files ?

@ghost
Copy link
Author

ghost commented Feb 10, 2017

Gloin1313.. I didn't see pull 295 before I created my version. Sorry. I like my solution better, but I'll let the maintainers to choose what version they like best. :)

@tburrows13
Copy link
Collaborator

I'm not experienced so I can't comment which I like better. I'm not even sure the other one works on Python 2, but obviously it works fine with Python 3.

@ghost
Copy link
Author

ghost commented Feb 10, 2017

Looking at this more closely, there is a difference..
Line 85, will also through an error on python 3

self.proc.stdin.write(frames_array.tostring())
(for python 3) needs to be
self.proc.stdin.write(frames_array.tobytes())

@ghost
Copy link
Author

ghost commented Feb 10, 2017 via email

@tburrows13
Copy link
Collaborator

The tobytes()/tostring() difference causes an imageio crash from somewhere else when I run moviepy until I fix it in the code. However, this difference makes no difference either way.

@ghost
Copy link
Author

ghost commented Feb 10, 2017 via email

merge latest zulko/moviepy to earney/moviepy
@ghost
Copy link
Author

ghost commented Feb 14, 2017

@Zulko @mbeacom anyway of getting this merged in?
Thanks!
Billy

@mbeacom mbeacom self-requested a review February 14, 2017 22:53
@mbeacom mbeacom added the LGTM Passed inspection by maintainers. label Feb 14, 2017
@mbeacom
Copy link
Collaborator

mbeacom commented Feb 14, 2017

@Earney Thanks for the contribution! I prefer your approach to this.
However, It appears this might be an issue in the ffmpeg_audiowriter as well based on the issue #335 and the resolution presented in #295.

I believe this is the appropriate way to go and it resolves #401. We'll want to resolve #335 before pushing a release.

@mbeacom mbeacom added this to the Release v0.2.2.13 milestone Feb 14, 2017
@mbeacom mbeacom mentioned this pull request Feb 14, 2017
@ghost
Copy link
Author

ghost commented Feb 15, 2017 via email

@tburrows13
Copy link
Collaborator

It should be extremely easy to add this to ffmpeg_audiowriter as well

@ghost
Copy link
Author

ghost commented Feb 15, 2017

@mbeacom now, this pull also fixes issue #335. :)

@mbeacom mbeacom added LGTM Passed inspection by maintainers. and removed LGTM Passed inspection by maintainers. labels Feb 15, 2017
@mbeacom mbeacom merged commit 212db1f into Zulko:master Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM Passed inspection by maintainers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants