-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 freeze frame at end instead using the first frame #1334
Conversation
Thanks for the PR. I've not looked properly into this one yet, but it looks like quite a 'hacky' solution? If you are just trying to go back one frame, I think it would be better to do that by subtracting |
Agreed that it's a bit hacky. The problem is the input clip doesn't always have an fps, but this seems to be working just as well. Definitely hacky, though, so I'll try to dig deeper and hopefully find a root cause of the issue. |
@ToxicOverload To update your feature branch so that it always "starts" with the latest commit on master, you'd rebase master, not merge it. So basically you are "pulling" the latest commits in master "under" what you've been working on. |
See e.g. this Atlassian tutorial. |
@ToxicOverload What you want to do is reset those last (merge) commits until you are back where you finished your last code change. Then switch to a new branch that you use for your code – as per CONTRIBUTING.md (because right now it looks like you are working on master directly). Then update your local master branch so it has the latest changes from this repo, then rebase your local master while you are checked out in your own branch. Then you push your Can explain in a bit more detail in a bit. |
Will do, thanks! I don't think I'll get a chance until tomorrow morning, but thanks for helping out :) I'm pretty new to gitflow, so thanks for the tips |
Does that mean I should close this PR? |
Step-by-step: (Re)Familiarise yourself with the contents of CONTRIBUTING.md, particularly the last section re: workflow. Make sure you don't have any uncommitted changes in your repo: $ git status If you do, either stash them for now with Drop those merge commits by resetting to the last "good" commit ( $ git reset COMMIT_HASH Like above: check for the status of your files, but now definitely discard any changes. (They are the remains of those merge commits.) Next, create a new branch named something along the lines of $ git checkout --branch YOUR_BRANCH_NAME Switch back to master and get rid of all those commits you made (you have an exact copy of them now in your fix branch). Like above: find the ID of the last commit before the first you made: $ git reset COMMIT_HASH You'll now have to clean up the remains of your changes on master. Like above, check with $ git pull upstream master Now switch back to your own fix branch again and rebase your updated master branch: $ git checkout YOUR_BRANCH_NAME
$ git rebase master If there weren't any conflicts: hooray! You can now push your branch to your fork here on GitHub (the assumption is, you originally cloned your fork to your HD, in which case your fork will have got the default name for remotes, origin): $ git push origin YOUR_BRANCH_NAME At this point I'm not sure if you can update this existing PR, or if you have to create a new one. Don't worry if the latter is the case, we can close this one and link it to your new one. Misc notes:
|
No worries!
Leave it open for now, as said above, it's possible you can reuse it (I'm not sure myself). |
Updated/added to the steps because I realised you'll have to clean up a bit sooner. ^^ |
This is the new PR: #1348 |
Closing this PR because it "moved" to #1348, |
This fixes issue #1307 by making the
freeze
function take anImageClip
from slightly before the end of the clip (effectively the end of the clip).tests/
black -t py36