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 slide out #795

Merged
merged 4 commits into from
Mar 24, 2020
Merged

Fix slide out #795

merged 4 commits into from
Mar 24, 2020

Conversation

knezi
Copy link
Contributor

@knezi knezi commented May 11, 2018

See #753 - first part of the PR
Slide_out didn't do anything before.

@knezi
Copy link
Contributor Author

knezi commented May 11, 2018

I think it's not possible to merge this because the changes in comit slide_out were commited and in the next commit reverted. Hence it should be alright to merge this (I checked it in the code).

@tburrows13 tburrows13 added the bug-fix For PRs and issues solving bugs. label May 14, 2018
@coveralls
Copy link

coveralls commented May 14, 2018

Coverage Status

Coverage decreased (-0.8%) to 64.594% when pulling 5edcfaa on knezi:fix_slide_out into 956c462 on Zulko:master.

@keikoro
Copy link
Collaborator

keikoro commented Dec 18, 2018

@tburrows13 Can this be merged? I saw you had a look at this in the past.

@Overdrivr
Copy link
Collaborator

Thanks for your contribution, could you add some more information regarding this issue and also some test cases for reproducing the bug and showing fix works as intended ?

@Overdrivr Overdrivr added tests-needed PRs/code submissions which need test cases added to them. needs more info labels Mar 28, 2019
@knezi
Copy link
Contributor Author

knezi commented Mar 29, 2019

@Overdrivr Well, there's an example in the dosctring (commit 50ce30a) plus in the last PR #753 (comment) (but of course replace slide_int with slide_out.

@Overdrivr
Copy link
Collaborator

It's not entirely clear what the problem is, to me at least, even with that information.

Did using slide_out before had zero impact on the video ?
Also, why is slide_in used in the slide_out function example ?

@tburrows13 tburrows13 added this to the Release v1.0.2 milestone Feb 24, 2020
@tburrows13 tburrows13 mentioned this pull request Feb 26, 2020
5 tasks
@tburrows13
Copy link
Collaborator

I've given this a test and I can confirm that before the fix it didn't do anything, but with the fix it does work. However, I can't get the example that you've added into the docstring to work. They do slide in/out but there is no overlap between the two as you'd expect given that there is negative padding. I got it to work by putting the list of clips inside a CompositeVideoClip:

v1 = VideoFileClip("test.mp4").fx(transfx.slide_out, duration=2, side='left')
v2 = VideoFileClip("test2.mp4").set_start(2)

final = CompositeVideoClip([v2, v1])  # The other way round so that v1 appears on top

final.write_videofile(f"slideout_left.mp4")

However, this requires manually setting the start time for the second clip based on the length of the first clip minus the duration of the slide out. Any suggestions?

@tburrows13 tburrows13 removed needs more info tests-needed PRs/code submissions which need test cases added to them. labels Mar 24, 2020
@tburrows13
Copy link
Collaborator

I'm going to merge this as it is. The documentation is no worse than it was before and it appears that we are going to somewhat rethink the fx api for v2.0 anyway.

@tburrows13 tburrows13 merged commit 710c6df into Zulko:master Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix For PRs and issues solving bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants