itsmeichigo / icgvideotrimmer Goto Github PK
View Code? Open in Web Editor NEWA library for quick video trimming, mimicking the behavior of Instagram's
License: MIT License
A library for quick video trimming, mimicking the behavior of Instagram's
License: MIT License
The video layer is black, but the audio is playing. This issue is visible only in iOS 10. Below versions are working fine. Even the observeValueForKeyPath status returns AVPlayerStatusReadyToPlay, but the video somehow is not rendering.
hi
thanks for code. but after selecting video its showing only one first frame static.please reply asap
How to get video's size when I change the slider, please suggest, any little help would be a great relief.
Hi, for some reason I am able to scroll vertically on my trimmer. I attached an image below showing where the thumbnails have been scrolled out of the trimbar. I am not sure what I did wrong since the example project works for me. The only thing I'm doing differently is that I've implemented the trimmer in Swift.
I have solved the problem only displays the first frame, but if the video is not compressed, and a long time would be very slow to load frame, recommend using UITableView lazy load each frame
Hi, I am using the ICGVideoTrimmer in my project. I am using two trimmer views in a view for playing two videos. I want adjust the trimmer view max length of one trimmer view while changing other automatically. how to know the trimming video length without saving in seconds
On iOS13, video player preview is not working. UIView is there, play is called, but no video... Added AVPlayerLayer manually solves the problem.
AVPlayerLayer *avPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player]; avPlayerLayer.frame = CGRectMake(0, 100, self.view.frame.size.width, 400); [avPlayerLayer setBackgroundColor:[UIColor clearColor].CGColor]; [self.view.layer addSublayer:avPlayerLayer];
I tried to build an interface from a UI perspective, using SnapKit. When I try to instantiate my ICGVideoTrimmer, the component does not initialize correctly when the videos are longer than one frame. I've tried multiple approaches here, and verified that it works correctly when using a storyboard. Any thoughts on why this could be occurring?
Is it possible to set the max period of time
eg: 1min maximum
How to change startTime and endtime when i create ICGVideoTrimmer
Hi,
How to restrict moving the left thumbview and right thumbview when particular time is set i.e when i set the length to 15 seconds , while moving the left thumbview and right thumbview is moving it is restricted to 15 seconds only. is it possible to implement this feature.
Is it possible to move the scroll the images from outside like coub App. we are scrolling the images between the left and right thumb views.
Thank you
Thank you very much for the library, I used, I have no other on video editing library recommendation, making music albums, filters, stickers and so on
Hi,
just a question, why the trackerColor
property is not strong
in ICGVideoTrimmerView.h?
I got crash reports for ICGVideoTrimmerView.m line 129
self.trackerView.backgroundColor = self.trackerColor ? self.trackerColor : [UIColor whiteColor];
Am I correct?
I tried to set minLength
and maxLength
to both 1 second, but then the trimmer between the two thumbnails becomes full width. In other words, I couldn't see the overlay views anymore?
How should I set this correctly?
Thanks
Hi ,
I am trying to using your video trim library into the demo project,
But i have noticed the getting issue like Ruler frame is not matching with the Playing video,
Can you guide me to resolve this?
Hello,
Thank you for providing us so good open source code. I met with a problem and help you could help me.
My video type is mp4, and when run to code " Float64 duration = CMTimeGetSeconds([self.asset duration]);". It said that asset can't count mp4's duration. So how can I do? Must I transfer Mp4 to .mov?
Thanks a lot!
if video one minute or more and needs to be cut for 30 seconds?How to do this
Please upload code for swift 3/4
How can I export timing VIDEO to disk not Album?
Is it possible to programmatically position the left and right thumb to some fixed timeline of the video?
Hi I am using ICGVideoTrimmer. Actually I download the videos and saved in localpath with .mp4 and playing the localpath videos. For the localpath videos the scale is not displaying at the bottom of the trimmer View. While getting the videos from the albums Scale is displaying. How to display the scale while getting and playing the videos from the local paths.
Thank you
Thank you for sharing great sources!!
I found a bug so I report it..
If user selects a video which is shorter than _minLength, rightOverlayView moved weird..
Please fix it.. I tried to fix, but too complicated for me..
Hi there,
i've using your trimmer and try to use it on my video editing project demo, but I've notice that , trimmer's left n right slider will only work 'on sight' ,witch means within frame that trimmer view was displayed, if set a video which length might be 1:00,you might lost video data which out of range,is there any possible way to make it resizable ? like make a transform so let thumbimgs can be displayed fully? so that the user will not losing video clips due to thumbs was out of range?
I don't think github has a "discussion" secion, so I'm putting this here...
The Objective-C-ness of this is driving me crazy. And to a lesser extent, the non-autolayout-ness. I'm rewriting to Swift in a...new project I guess? I guess it doesn't make sense to fork it since it will be all new code? Has anyone already done this, or is there any reason I shouldn't?
I have a 8 minutes video, and my maximum trim size is 40 seconds. However I am seeing too little thumbnails to trim correctly. I am getting 1 thumb per each 30 seconds. I have tried to change thumbwidth but it doesn't change it.
Any ideas?
trying to move the right thumb from the left side of it or to move the left thumb from the right side of it is not working.
checking the code ICGThumbView:pointInside is not being called with the above scenario.
When there are only 2 count for the images then the following code not getting executed.
dispatch_async(dispatch_get_main_queue(), ^{
UIImageView *imageView = (UIImageView *)[self.frameView viewWithTag:i];
[imageView setImage:videoScreen];
});
Is it possible that the we'll set the position of left and right slider on the seconds we want. For example the video is of 15 seconds and I want the left to be on 5th seconds and right to be on 10th seconds when the view is loaded.
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.