12780 ошибка quicktime

Looks like no one’s replied in a while. To start the conversation again, simply

ask a new question.

I am trying to export videos from quicktime, but every single time I export I get this message: The operation could not be completed An unknown error occurred (-12780)

Does anyone know how to fix this issue or have a workaround?

MacBook
Pro,

macOS High Sierra (10.13.4)

Posted on May 2, 2018 9:02 AM

Similar questions

  • how do i fix a quicktime.cab missing file error
    how do i fix this?

    5518
    2

  • com.apple.Compressor.CompressorKit.ErrorDomain error -1.
    Can’t export videos from iMovie, every time I try to export my project i get this error code. Have tried several different things I found in an older thread to no avail

    790
    6

  • iMovie Failing error 10004
    Every time I try to create and export of movie in iMovie, I get the following code:
    Video rendering error: 10004 (iMovie error 10004: renderVideoFrame failed)
    Previously I was able to make a movie without any trouble, but now it won’t seem to work.

    631
    1

1 reply

May 3, 2018 7:30 AM in response to lauratherose

Hello lauratherose,

Thanks for that info and choosing the Apple Support Communities. If I understand correctly, you are unable to export videos from QuickTime on your MacBook Pro, as you get an error message. You can figure out if unexpected behavior is related to a user file or setting by trying to reproduce the issue from another user account. This process includes creating a new user account, logging in to it, and testing for the issue.

How to test an issue in another user account on your Mac

Next, try running First Aid on your hard drive with the built in Disk Utility tool, as this can correct simple issues like you’re experiencing.

Disk Utility for Mac: Repair a disk using Disk Utility

Cheers!

Quicktime Error Code -12780

Are you trying to use Quicktime to watch a video, but are you getting the error ‘12780’?

Quicktime is a multimedia software developed by Apple Inc. It is used to play videos, music and audio. It was first released in 1991 for Mac OS. Since then, the software has been updated several times. It has received many updates over the years and it continues to receive new updates. Quicktime is now available for macOS, Windows Vista, Windows XP, Classic Mac OS, and Mac OS X Leopard.

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

On this page, you will find more information about the most common causes and most relevant solutions for the Quicktime error ‘12780’. Do you need help straight away? Visit our support page.

Error information

Tech Support 24/7

Ask a Tech Specialist Online

Connect with the Expert via email, text or phone. Include photos, documents, and more. Get step-by-step instructions from verified Tech Support Specialists.

Ask a Tech Specialist Online

Verified solution

You can download Quicktime on your computer to view videos, listen to music and play audio. You can also use Quicktime to create videos and audio files. However, if you encounter a Quicktime error while playing a video or audio file, then you might encounter error code 12780. This error can occur when the software cannot connect to the internet.

The problem can be caused by a network issue or it can be caused by an issue with your computer. The error might also occur if you have another application that is interfering with the proper functioning of Quicktime on your computer. To fix this error, you need to try a few solutions.

First of all, you might be getting this error when you are trying to export videos on Quicktime. Usually, this error relates to the user settings and preferences. If this is the case, then you should check your system settings and preferences. If there is nothing unusual, then you can try creating a new user account. Check whether the account is an administrator account and see if the issue is still there. If the issue persists, you can try using the Disk Utility tool to erase and then reinstall Quicktime. The reason for this is that the program may have some system files that are causing the problem.

Another solution is to try to go to /Library/Containers/com.apple.QuickTimePlayerX/Data/Library/Autosave Information/ directory, find an «Unsaved» file, right click on it and select «show package contents». This will reveal the files that are causing the problem. You can then delete the files or rename them to something else. Try to save the changes.

Lastly, another solution you can try is to contact the Customer Service to solve this error. You can try contacting them through their customer support number or their website. The customer support will usually ask you to send them the error code that is appearing on your screen. They will tell you what to do next for your problem and give another solution.

Need more help?

Do you need more help?

Tech experts are ready to answer your questions.

Ask a question

I have a problem tracing the underlying issue behind my asset export session failure. The issue is for one video only, and I believe the problem is in its audio track, since I successfully exported the asset without the audio track (only the video track).

The video track is decoded with AVAssetReader and the sample buffers are processed before being rewritten into a new video track; the audio track is passed with no decoding nor any intermediate processing. However, even without processing the video sample buffers, the same failure occurred.

I also tried doing it the other way round—with audio only and no video track—and still other videos worked just fine and this particular video failed. I suppose there’s an inherent problem with the video’s audio track, but I can’t infer what the problem is, and hence I can’t tackle it. Here’s my code:

AVAssetExportSession* assetExport = [[AVAssetExportSession alloc] initWithAsset:composition
                                                                      presetName:AVAssetExportPresetHighestQuality];

assetExport.outputFileType = @"com.apple.quicktime-movie";
assetExport.outputURL = [NSURL fileURLWithPath:path];

__weak typeof(self) weakSelf = self;
[assetExport exportAsynchronouslyWithCompletionHandler:^{

    switch (assetExport.status) {
        case AVAssetExportSessionStatusCompleted: NSLog(@"Asset combined");
            break;
        case AVAssetExportSessionStatusFailed: NSLog(@"Asset combination failed");
            break;
        default: NSLog(@"Asset combination completed with unknown status: %@", @(assetExport.status));
            break;
    }
}];

The problem is supposed to be in the asset export session; track insertion to the AVMutableComposition worked just fine. Here’s the error message of the AVAssetExportSession:

Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed"
UserInfo={NSUnderlyingError=0x6040001338d0 {Error Domain=NSOSStatusErrorDomain Code=-12780 "(null)"}, 
NSLocalizedFailureReason=An unknown error occurred (-12780), NSLocalizedDescription=The operation could not be completed}

I’m trying to merge some audio files (picked via MPMediaPickerController), but the export always fails with error code -12780.

When I try to play my composition with an AVPlayer object, it plays correctly.
Just the export fails.

What am I doing wrong?

This is my code:

AVAssetExportSession *exportSession;
AVPlayer *player;

- (void)mergeAudiofiles {
    // self.mediaItems is an NSArray of MPMediaItems
    if (self.mediaItems.count == 0) {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                                        message:@"No Tracks selected."
                                                       delegate:nil
                                              cancelButtonTitle:@"OK"
                                              otherButtonTitles:nil];
        [alert show];
        return;
    }

    // Configure audio session
    NSError *sessionError;
    AVAudioSession *session = [AVAudioSession sharedInstance];
    [session setCategory:AVAudioSessionCategoryAudioProcessing error:nil];
    [session setActive:YES error:&sessionError];
    if (sessionError) NSLog(@"Session-Error: %@", sessionError.localizedDescription);

    // Create composition
    AVMutableComposition *composition = [AVMutableComposition composition];
    AVMutableCompositionTrack *track = [composition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];
    CMTime position = kCMTimeZero;

    for (MPMediaItem *item in self.mediaItems) {
        NSURL *assetURL = [item valueForProperty:MPMediaItemPropertyAssetURL];
        AVAsset *asset  = [AVAsset assetWithURL:assetURL];

        CMTimeRange duration = CMTimeRangeMake(kCMTimeZero, asset.duration);
        //        duration = CMTimeRangeMake(kCMTimeZero, CMTimeMake(5, 1));    // For player test

        NSError *error;
        [track insertTimeRange:duration ofTrack:[[asset tracksWithMediaType:AVMediaTypeAudio] lastObject] atTime:position error:&error];
        if (error) NSLog(@"ERROR! :(");

        position = CMTimeAdd(position, duration.duration);
    }

    // Path to output file
    NSString *documentsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    NSURL *exportUrl = [NSURL URLWithString:[documentsDirectory stringByAppendingPathComponent:@"export.m4a"]];

    NSLog(@"Export URL = %@", exportUrl.description);

    //    Playing works!
    //    """"""""""""""
    //    AVPlayerItem *pitem = [[AVPlayerItem alloc] initWithAsset:composition];
    //    player = [[AVPlayer alloc] initWithPlayerItem:pitem];
    //    [player play];
    //
    //    return;

    // Export
    exportSession = [[AVAssetExportSession alloc] initWithAsset:composition presetName:AVAssetExportPresetAppleM4A];
    exportSession.outputURL = exportUrl;
    exportSession.outputFileType = AVFileTypeAppleM4A;

    [exportSession exportAsynchronouslyWithCompletionHandler:^{
        switch (exportSession.status) {
            case AVAssetExportSessionStatusFailed:
                NSLog(@"Export failed -> Reason: %@, User Info: %@",
                      exportSession.error.localizedDescription,
                      exportSession.error.userInfo.description);
                break;

            case AVAssetExportSessionStatusCancelled:
                NSLog(@"Export cancelled");
                break;

            case AVAssetExportSessionStatusCompleted:
                NSLog(@"Export finished");
                break;

            default:
                break;
        }
    }];
}

У меня возникла проблема с отслеживанием основной проблемы, связанной с отключением сеанса моего актива. Проблема заключается только в одном видео, и я считаю, что проблема в звуковой дорожке, так как я успешно экспортировал актив без звуковой дорожки (только для видеодорожки).

Видеодорожка декодируется с помощью AVAssetReader, и буферы с образцами обрабатываются перед переписыванием в новую видеодорожку; звуковая дорожка передается без декодирования или промежуточной обработки. Однако даже без обработки буферов выборки видео произошел тот же самый сбой.

Я также пробовал делать это наоборот — только с аудио и без видео трека — и все же другие видео работали отлично, и это видео не удалось. Я предполагаю, что есть проблема с видеодорожкой, но я не могу понять, в чем проблема, и, следовательно, я не могу ее решить. Здесь мой код:

AVAssetExportSession* assetExport = [[AVAssetExportSession alloc] initWithAsset:composition
                                                                      presetName:AVAssetExportPresetHighestQuality];

assetExport.outputFileType = @"com.apple.quicktime-movie";
assetExport.outputURL = [NSURL fileURLWithPath:path];

__weak typeof(self) weakSelf = self;
[assetExport exportAsynchronouslyWithCompletionHandler:^{

    switch (assetExport.status) {
        case AVAssetExportSessionStatusCompleted: NSLog(@"Asset combined");
            break;
        case AVAssetExportSessionStatusFailed: NSLog(@"Asset combination failed");
            break;
        default: NSLog(@"Asset combination completed with unknown status: %@", @(assetExport.status));
            break;
    }
}];

Проблема должна заключаться в сессии экспорта активов; трек в AVMutableComposition работал отлично. Здесь сообщение об ошибке AVAssetExportSession:

Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed"
UserInfo={NSUnderlyingError=0x6040001338d0 {Error Domain=NSOSStatusErrorDomain Code=-12780 "(null)"}, 
NSLocalizedFailureReason=An unknown error occurred (-12780), NSLocalizedDescription=The operation could not be completed}

4b9b3361

Ответ 1

Дикая догадка: звуковая дорожка была отделена от своего собственного AVAsset, который затем вышел из сферы видимости. Попробуйте сохранить ссылку на звуковую дорожку AVAsset, пока не назовете exportAsynchronouslyWithCompletionHandler.

Ответ 2

Я потратил около двух дней на эту проблему… Я не выяснил причину, однако нашел, что установка audioMix для AVAssetExportSession работает.

AVMutableAudioMix *videoAudioMixTools = [AVMutableAudioMix audioMix];
AVMutableAudioMixInputParameters *firstAudioParam = [AVMutableAudioMixInputParameters audioMixInputParametersWithTrack:assetAudioTrack];
[firstAudioParam setVolumeRampFromStartVolume:1.0 toEndVolume:1.0 timeRange:CMTimeRangeMake(kCMTimeZero, CMTimeSubtract(endCropTime, startCropTime))];
[firstAudioParam setTrackID:compositionAudioTrack.trackID];
videoAudioMixTools.inputParameters = [NSArray arrayWithObject:firstAudioParam];

exportSession.audioMix = videoAudioMixTools;

Кажется, что это заставляет декодировать и перекодировать звуковую дорожку.

Ответ 3

Я знаю, что это старый вопрос, но, поскольку он не решен, я дам решение для кода ошибки 12780.

В большинстве случаев проблема заключается в выходном URL.
Убедитесь, что URL создан так:

URL(fileURLWithPath: "")

так, например:

let temp_output = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp_exported.mov")

Понравилась статья? Поделить с друзьями:
  • 1277 ошибка ниссан блюберд силфи
  • 1277 код ошибки
  • 1276 ошибка митсубиси
  • 1274 ошибка поло
  • 1273 ошибка пассат б6