Coder Social home page Coder Social logo

lightcompressor_ios's People

Contributors

abed-binary avatar abedelazizshe avatar hasanabuzayed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lightcompressor_ios's Issues

Got crash while compression multiple file in loop, more than 4 media file

** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetReader startReading] cannot be called again after reading has already started'
*** First throw call stack:
(0x19c817298 0x1b0571480 0x1a3c92638 0x100ac49d0 0x100ac4e48 0x10060cf04 0x1a3cb3834 0x1026b7ae8 0x1026b932c 0x1026c038c 0x1026c1010 0x1026cc820 0x1e4d3d5bc 0x1e4d4086c)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetReader startReading] cannot be called again after reading has already started'
terminating with uncaught exception of type NSException

Ask a question

Why choose very_high bitrate to use Int(bitrate * 0.5) instead of Int(bitrate * 0.8). When I change it to Int(bitrate * 0.8) or other higher coefficients in the project, the compressed video will not play normally. So I want to know why you use Int(bitrate * 0.5).

Crash

** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetReader startReading] cannot be called again after reading has already started'

Why do you have to tag iOS11 to use it?

A little confused as to why it has to be set to iOS11, I looked at the compressVideo method implementation and found no API usage with this restriction. Want to know what the author's thinking is based on

The minimum iOS system requirement of my project is 11. Is it necessary to make compatible logic

background compress

Hello! I'm using your project, and It works wonderful!

But I want to compress video in background mode.

How can I write code for this work?

I tried to cover compressVideo function using DispatchQueue.global in background mode... but it doesn't work.

DispatchQueue.global(qos: .background).sync{
            compression = videoCompressor.compressVideo(source: videoToCompress, ..)
 ....
}

Any words can help! HELP ME!

Process of Video get stuck after some percentage

Hey Abed!

This library helping us a lot but we are facing some issues while compressing those videos using this library.

I am running the sample project with the tags 1.0.0 and 0.1.9 both are having the same issue

Process to reproduce it

  • Downloaded the project
  • Running in the real device
  • Picking up the video from the gallery and it reached 67% or random any percentage and getting stuck there

See the attached screenshot and video as well which you can use to check the issue

IMG_BEA7D3743289-1
https://drive.google.com/file/d/1DY_7PvFhaQEkCru-ahJzrxPxXMFkhNEs/view?usp=sharing

Could you please help us
Thanks In Advance..!!!!

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

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.

Crash

Hey Abed!

The library works great on short videos. But when I try to compress a large file 50seconds. I run unto this error:

Screenshot 2023-01-28 at 4 04 25 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.