We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trim video using this PryntTrimmerView lib. I have set min 15 second & max 60 second but save video total duration is 52 second.
The text was updated successfully, but these errors were encountered:
Can you provide an example (video asset included) to reproduce please ? What was the duration of the original asset ?
Sorry, something went wrong.
This is export trim video code....
do { let asset = AVURLAsset(url: asset_url) let trimmedAsset = try asset .assetByTrimming(startTime: trimmerView.startTime ?? kCMTimeZero, endTime: trimmerView.endTime ?? url_AVURLAsset.duration)
let destinationURL = URL(fileURLWithPath: NSTemporaryDirectory()) .appendingUniquePathComponent(pathExtension: "mov") print(destinationURL) try trimmedAsset.export(to: destinationURL) { [weak self] in //guard let strongSelf = self else { return } print("save \(destinationURL)") DispatchQueue.global(qos: .background).async { let data = NSData(contentsOf: destinationURL) print("File size before compression: \(Double((data?.length)! / 1048576)) mb") self?.compressVideoOutput(videoURL: destinationURL) } } } catch let error { print("💩 \(error)") }
I'm set max 1 minit video allow otherwise is automatically trim.
No branches or pull requests
I'm trim video using this PryntTrimmerView lib. I have set min 15 second & max 60 second but save video total duration is 52 second.
The text was updated successfully, but these errors were encountered: