AbedElazizShe / LightCompressor_iOS

A powerful and easy-to-use video compression swift package for iOS.
MIT License
98 stars 18 forks source link

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

Open swapnil6137 opened 2 years ago

swapnil6137 commented 2 years ago

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.

Razanajam commented 2 years ago

Kindly remove this library from github, this is useless and time wasting to use the library full of bugs, this issue has been faced so many times.

AbedElazizShe commented 2 years ago

@swapnil6137 sorry you're facing this, we will release an update very soon to fix all the issue encountered, we're working on it at the moment

AbedElazizShe commented 2 years ago

@Razanajam write your own code, no one is forcing you to use this repo.

AwaisFayyaz commented 1 year ago

Kindly remove this library from github, this is useless and time wasting to use the library full of bugs, this issue has been faced so many times.

@Razanajam

No one is forcing you to use this library.

Instead of appreciating the author, you are being disrespectful 😞 .

I have used this library and found it useful and did not encounter any issue. If you are having any issue then you should do R & D, fix the issue, and make a pull request so that others can also benefit.

And also, you should remove this comment of yours because it is not adding any value here.

Peace.

krutikdobariya commented 6 months ago

In Low, Very_Low, medium, high in all method compress same?