Skip to content
New issue

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

SDAVAssetExportSession takes a long time #65

Open
scarlettSS opened this issue Mar 14, 2017 · 2 comments
Open

SDAVAssetExportSession takes a long time #65

scarlettSS opened this issue Mar 14, 2017 · 2 comments

Comments

@scarlettSS
Copy link

SDAVAssetExportSession compress & export a video taken from photo library (about 300M)takes about 40s,but sysytem AVAssetExportSession takes only 20s..who can help me to find out?
settings:

        QUINT64 bitrate = (naturalSize.width * naturalSize.height * 3); 
        NSDictionary *videoSettings = @{
                                        AVVideoCodecKey: AVVideoCodecH264,
                                        AVVideoWidthKey: CZ_NSNumber(naturalSize.width),
                                        AVVideoHeightKey: CZ_NSNumber(naturalSize.height),
                                        AVVideoCompressionPropertiesKey: @
                                            {
                                              AVVideoAverageBitRateKey: @(bitrate)
                                            }
                                        };
        exportSession.videoSettings = videoSettings;
        
        exportSession.audioSettings = @
        {
            AVFormatIDKey: CZ_NSNumber(kAudioFormatMPEG4AAC),
            AVNumberOfChannelsKey: CZ_NSNumber(1),
            AVSampleRateKey: @(44100),
            AVEncoderBitRateKey:  @(64000),
        };
@balkarov
Copy link

balkarov commented Nov 9, 2017

I have the same problem.
Did you know about it?

@alirazamsp
Copy link

I am doing audio M4a recording using SDAVAssetExportSession but it takes a long time to export it same as AVAssetExportSession. I have seen no difference. Can someone point me in right direction ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants