Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

動画を簡単に編集する方法

 動画を簡単に編集する方法

About NJKMovieComposer

nakajijapan

March 12, 2014
Tweet

More Decks by nakajijapan

Other Decks in Technology

Transcript

  1. 8IZ

  2. "7"TTFU "7"TTFU5SBDL WJEFP "7"TTFU5SBDL BVEJP "7.VUBCMF$PNQPTJUJPO "7.VUBCMF$PNQPTJUJPO5SBDL WJEFP "7.VUBCMF$PNQPTJUJPO5SBDL WJEFP

    "7"TTFU "7"TTFU5SBDL WJEFP "7"TTFU5SBDL BVEJP "7.VUBCMF7JEFP$PNQPTJUJPO*OTUSVDUJPO "7.VUBCMF7JEFP$PNQPTJUJPO-BZFS*OTUSVDUJPO "7.VUBCMF7JEFP$PNQPTJUJPO*OTUSVDUJPO "7.VUBCMF7JEFP$PNQPTJUJPO-BZFS*OTUSVDUJPO "7.VUBCMF7JEFP$PNQPTJUJPO
  3. // AVAssetExportSession assetExportSession = [movieComposition readyToComposeVideoWithFilePath:composedMoviePath]; NSURL *composedMovieUrl = [NSURL

    fileURLWithPath:composedMoviePath]; // export [assetExportSession exportAsynchronouslyWithCompletionHandler: ^(void ) { // save to device ALAssetsLibrary* library = [[ALAssetsLibrary alloc] init]; if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:composedMovieUrl]) { [library writeVideoAtPathToSavedPhotosAlbum:composedMovieUrl completionBlock:^(NSURL *assetURL, NSError *assetError) { ! // it does not stop the main thread dispatch_async(dispatch_get_main_queue(), ^{ ! NSLog(@"saved"); }); }]; } }];