6
아래 코드를 사용하여 비디오를 압축하고 있습니다. 비디오 내가 전체 원래 볼륨을 얻고있다 iOS6의이 아니라에서 iOS 5에서 매우 낮은 소리가 압축 후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);
}
}];
}
, 그럼 내가 어떻게 아이폰 OS의 일부 사운드 문제