-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add movieFragmentInterval
option
#67
Conversation
@@ -60,7 +61,7 @@ public final class Aperture: NSObject { | |||
|
|||
// Needed because otherwise there is no audio on videos longer than 10 seconds | |||
// http://stackoverflow.com/a/26769529/64949 | |||
output.movieFragmentInterval = .invalid | |||
output.movieFragmentInterval = movieFragmentInterval != nil ? CMTimeMake(value: movieFragmentInterval!, timescale: 1) : .invalid |
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.
CMTimeMake
is legacy. Use the more modern initializer.
movieFragmentInterval
option
How are you using a |
@@ -40,6 +40,7 @@ public final class Aperture: NSObject { | |||
highlightClicks: Bool, | |||
screenId: CGDirectDisplayID = .main, | |||
audioDevice: AVCaptureDevice? = .default(for: .audio), | |||
movieFragmentInterval: Int64? = nil, |
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.
Can you add a doc comment about what this does and what it's useful for?
Checking in @drag0s, would you still like to continue on this implementation? |
Hey there, sorry for my delayed response.
I use a The main problem about not using In the case of using
Yes, as long as you guys think it's worth adding it! |
I didn't realize the API automatically chose the correct container based on the output URL extension. Do we even need an option at all? Can't we just use |
Add option to customize movieFragmentInterval. The default will be the same as before (
.invalid
)Probably it didn't worked before because you were trying with
mp4
containers, but it does work withmov
containers and it's nice to be able to change this option.