-
Notifications
You must be signed in to change notification settings - Fork 163
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
Lastrosade sc only #574
Lastrosade sc only #574
Conversation
It looks like the formatting check failed, run |
Do I need to write unit tests? |
I'm not exactly sure how you would write a unit test for this, but we can add an integration test instead (which are in |
Perhaps we should require |
Yes, let me try to figure that out. |
@lastrosade The easiest way to do it would probably be with this method: https://docs.rs/clap/3.1.0/clap/struct.Arg.html#method.requires_if |
This is a train wreck |
It seems that requires_if only wants strings, maybe I need requires_all |
I figured it out, it was dumb and simple but for some reason I try to over complicate things. |
The integration test failed with Is the video generating an empty scene file? |
running the same test on the same file works fine for me. |
It seems the error is coming from this branch: let (mut scenes, frames) = if (self.scenes.is_some() && scene_file.exists()) || self.resume {
used_existing_cuts = true;
crate::split::read_scenes_from_file(scene_file.as_ref())?
} Which should only get hit if the scenes file already exists prior to running your test command. It shouldn't be... so this is a bit weird. Just to prove we're not insane, could you try to |
It did not fix it |
Deletes the temporary directory, it would be better if it was never created in the first place.
c2df9c9
to
2d14041
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
This pull request adds the
--sc-only
boolean argument which forces av1an to stop after scene detection as per #573Right now it simply deletes the temporary directory after the run
What would be optimal would be to not create any temp dir if both: