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
My code is:
{ let movieURL = VideoAlbumManager.sharedSingleton().returnPathUrl(effcetVideoUrl) let aVideoAsset = AVURLAsset.init(url: effcetVideoUrl)
let exportSession = SCAssetExportSession(asset: (self.recordSession?.assetRepresentingSegments1(aVideoAsset))!) exportSession.videoConfiguration.filter = SCFilter(ciFilterName: modelClass.effectFile) exportSession.videoConfiguration.preset = SCPresetHighestQuality exportSession.audioConfiguration.preset = SCPresetHighestQuality exportSession.videoConfiguration.maxFrameRate = 35 exportSession.outputUrl = movieURL! exportSession.outputFileType = AVFileType.mp4.rawValue exportSession.delegate = self exportSession.contextType = SCContextType(rawValue: 0)! print("exportSession.outputUrl:-\(String(describing: movieURL!))") DispatchQueue.main.async { let overlay = SCWatermarkOverlayView() overlay.date = self.recordSession?.date exportSession.videoConfiguration.overlay = overlay print("Starting exporting") } let time: CFTimeInterval = CACurrentMediaTime() exportSession.exportAsynchronously(completionHandler: { print("Export") if !exportSession.cancelled { print("Completed compression in \(CACurrentMediaTime() - time)") } let error: Error? = exportSession.error if exportSession.cancelled { print("Export was cancelled") } else if error == nil { DispatchQueue.main.async(execute: {() -> Void in self.playerView.clean() self.playerView .removeFromSuperview() self.stopAnimating() print("dfr==================f\(exportSession.outputUrl!)") self.effectVideoUrl = exportSession.outputUrl! as NSURL self.playerView = GUIPlayerView(frame: CGRect(x: CGFloat(0), y: CGFloat(105), width:UIScreen.main.bounds.size.width, height:UIScreen.main.bounds.size.height/2))//1 self.playerView.delegate = self self.view.addSubview(self.playerView)//2 self.playerView.videoURL = exportSession.outputUrl! self.playerView.prepareAndPlayAutomatically(false) self.playerView .stop() }) }else { DispatchQueue.main.async(execute: {() -> Void in self.stopAnimating() print("elseelseelseerrorerrorerror:66666-\(String(describing: error))") }) } }) }
Please help me to figure out
The text was updated successfully, but these errors were encountered:
@Debabrataroy Did you got any solution?
Sorry, something went wrong.
No branches or pull requests
My code is:
{
let movieURL = VideoAlbumManager.sharedSingleton().returnPathUrl(effcetVideoUrl)
let aVideoAsset = AVURLAsset.init(url: effcetVideoUrl)
Please help me to figure out
The text was updated successfully, but these errors were encountered: