6

私は以下のコードを使ってビデオを圧縮しています。iOS 6で圧縮ビデオの元の音量を得るにはどうすればいいですか

- (void)convertVideoToLowQuailtyWithInputURL:(NSURL*)inputURL 
            outputURL:(NSURL*)outputURL 
            handler:(void (^)(AVAssetExportSession*))handler 
{ 

    [[NSFileManager defaultManager] removeItemAtURL:outputURL error:nil]; 
    AVURLAsset *asset = [AVURLAsset URLAssetWithURL:inputURL options:nil]; 
    AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:asset presetName:AVAssetExportPresetMediumQuality]; 
    exportSession.outputURL = outputURL; 
    exportSession.outputFileType = AVFileTypeQuickTimeMovie; 

    [exportSession exportAsynchronouslyWithCompletionHandler:^(void) 
    { 

     if (exportSession.status == AVAssetExportSessionStatusCompleted) 
     { 

      printf("completed\n"); 
      NSLog(@"outputurl is %@",outputURL); 

     } 
     else 
     { 
      printf("error\n"); 
      NSLog(@"error is %@",exportSession.error); 

     } 

    }]; 

} 

圧縮後のビデオはiOS6に非常に低い音を持っていますが、iOSの5で、私は完全なオリジナルのボリュームを取得しています、どのように私はiOSの6

答えて

関連する問題