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

Incorrect output when concatenate_videoclips two quicktime videos #144

Closed
dingyaguang117 opened this issue Mar 11, 2015 · 5 comments
Closed

Comments

@dingyaguang117
Copy link

Did'nt do any other operation. Just concatenate two VideoFileClip objects from .mov files.
Output shoud be
|----A(20s)-----|-------B(20s)------|
but I got
|--A(10s 2x speedup)--|--last frame of A(10s)--|--B(10s 2x speedup)--|--last frame of B(10s)--|

PS: I found that:

clip1 = VideoFileClip('54ffd8ab1b70b7072952200e.mov')
clip1.write_videofile('54ffd8ab1b70b7072952200e.mp4')

could show the bug.

@dingyaguang117 dingyaguang117 changed the title Output incorrect when concatenate_videoclips two quicktime videos Incorrect output when concatenate_videoclips two quicktime videos Mar 11, 2015
@Zulko
Copy link
Owner

Zulko commented Mar 11, 2015

Can you provide the original video files and your code ? Also, your OS and python version (I don't think it's relevant, but we never know).

@dingyaguang117
Copy link
Author

OSX 10.10.2 Python 2.7.5
origin files: https://www.dropbox.com/sh/e2xmdajuffbbgza/AABSSyQS2DHQWAtavYboedp1a?dl=0 (output is 2.mp4)

@dingyaguang117
Copy link
Author

code is simple:

clip1 = VideoFileClip('/Users/ding/Documents/HuohuaWorkspace/Python/AppShow/website/uploads/54ffd8ab1b70b7072952200e.mov')
clip2 = VideoFileClip('/Users/ding/Documents/HuohuaWorkspace/Python/AppShow/website/uploads/54ffd8ab1b70b7072952200f.mov')
final_movie = concatenate_videoclips([clip1, clip2])
final_movie.write_videofile('/Users/ding/Documents/HuohuaWorkspace/Python/AppShow/website/movies/2.mp4', fps=12)

@dingyaguang117
Copy link
Author

I convert .mov to .mp4 by ffmpeg(not auto installed by imageio) manually before concatenate_videoclips, and got correct output.

@keikoro
Copy link
Collaborator

keikoro commented Dec 17, 2018

@dingyaguang117 I'm assuming from your last comment that you managed to solve your issue. Because of that and because it's 3+ years old, I'm closing it now.

@keikoro keikoro closed this as completed Dec 17, 2018
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

3 participants