Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Application getting crash at [AVAssetWriterInput appendSampleBuffer] apple framework gives suggestion to add kCMSampleBufferAttachmentKey_TrimDurationAtStart since the codec has encoder delay. #6

@swapnil6137

Description

@swapnil6137

Xcode suggestion and log :

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[AVAssetWriterInput appendSampleBuffer:] Cannot append sample buffer: First input buffer must have an appropriate kCMSampleBufferAttachmentKey_TrimDurationAtStart since the codec has encoder delay'
terminating with uncaught exception of type NSException

The function called in the project:-

Screenshot 2021-12-25 at 3 04 08 PM

Crash Log :-
Screenshot 2021-12-25 at 2 56 35 PM

Crash Log :-
Screenshot 2021-12-25 at 2 56 14 PM

Line where crash occurring :-
Screenshot 2021-12-25 at 2 53 28 PM

Screenshot 2021-12-25 at 3 02 56 PM

Please resolve asap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions