abedelazizshe / lightcompressor_ios Goto Github PK
View Code? Open in Web Editor NEWA powerful and easy-to-use video compression swift package for iOS.
License: MIT License
A powerful and easy-to-use video compression swift package for iOS.
License: MIT License
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
See the attached screenshot and video as well which you can use to check the issue
https://drive.google.com/file/d/1DY_7PvFhaQEkCru-ahJzrxPxXMFkhNEs/view?usp=sharing
Could you please help us
Thanks In Advance..!!!!
** 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
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)
.
Is there a way to move the moov atom to the start of the video after compression? This would make it more useful for streaming the video if downloading from the web.
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
** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetReader startReading] cannot be called again after reading has already started'
It looks like AVAssetWriter fails when the app goes into the background.
Is there a way to keep compressing even when in background?
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:-
Please resolve asap.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.