alexiscn / mttransitions Goto Github PK
View Code? Open in Web Editor NEWiOS Transitions ports from GL-Transitions.
Home Page: https://github.com/alexiscn/MTTransitions
License: MIT License
iOS Transitions ports from GL-Transitions.
Home Page: https://github.com/alexiscn/MTTransitions
License: MIT License
Hi
I'm using this library with swift. Video is well playing with AVPlayer but when I use MTVideoExporter to save video it does not contain transition, frames between video display as black screen. Any help will be appreciated
Thanks
Saba
please, solve this issue , i want to create video from images of different size but i cant do that. video only create with first image size, and all images are can not scal to fit in video frame. give me some suggestion what should i do.
Hello Sir,
I try to set background color to MTIImageView but it alsways show black color behind imageview, so please help me,
Hello,
I'm using the library to make transitions between clips. It works fine 1 or 2 times, but after that I have a crash related to memory. I can see the memory inspector which increases the memory leaks after each processing. I'm using the merge function.
Please add Swift Package Manager it this project. Every one moving SPM .
Hello Team,
you made great example of transition between videos but when I use your library its always gives me wrong orientation video. can you please help me for the same.
Thanks in advance
I used MTTransition latest version, my project is developing by using SwiftUI. The user merges clips and playing the video, when playing the video, the user should see the transitions.
i run your code but this is not working for Create Video From Images with transition, it just blinking only one image, i try to fix it but not getting done by me, so i request you to provide this solution. please look 'MTMovieMaker' class, thanks,
when create video from images and change frame duratio 1.0 to 7.0 ... video represent with very low clearity. Please tell me what should i do ?
Hello,
I'd like to merge two videos using these transitions. There is only MTIImage and I can't use the transitions for video processing.
Please let me know how to implement the video transitions.
Thank you.
Dear Sir,
How to make zoom in/out animation for every transition like show in iMovie app?
thanks,
suppose frameduration 3 seconds first image can not stay 3 seconds Why its happend?.can you explain it? thanks
I want CVPixelBuffer for process frame like filter. i did this with my custom class but its return only transition time pixel buffer. if have sometime please check this project. i am wating for your response.
CustomCompositionMetal.zip
hi there,thank you for your amazing repo, I like it very much.
I want to implement a custom transition like this https://motionarray.com/after-effects-templates/pixelation-transitions-959355/
So, is there any guide for custom transition or any build-in transition mostly closed to this pixelation transitions?
thanks in advance!!!
Fatal error: Can not start writing: file MTTransitions/MTMovieMaker.swift, line 130
I am taking one portrait video and one landscape video.
Now at the time of transition my landscape video gets aspect-fill and after that it gets aspect-fit.
Metal API Validation Enabled
Export error:Error Domain=AVFoundationErrorDomain Code=-11858 "Source frame missing" UserInfo={NSUnderlyingError=0x280250db0 {Error Domain=NSOSStatusErrorDomain Code=-12500 "(null)"}, NSLocalizedFailureReason=The video could not be composited., NSDebugDescription=Source frame missing, NSLocalizedDescription=Operation Stopped}
Hi , i am using this library and its way too good but i am stuck when trying to add dynamic duration to each image in array
for example there are 6 images and adding duration to each image like [0.0,4.0,2.0,0.5,5.0,6.0].
it only works fine when i am adding static duration for all images like [2.0], then all images duration will be 2.0.
Pleas help me to provide flexible duration for each image while creating video of images.
Below is the Error:-
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-16364), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x28023c5a0 {Error Domain=NSOSStatusErrorDomain Code=-16364 ["(null)"}}``](url
)
Incorrect argument label in call (have 'cgImage:isOpaque:', expected '__cgImage:isOpaque:')
Replace 'cgImage' with '__cgImage'
Hi @alexiscn
Great job on MTTranstions! Do you have any upcoming plans for additional features?
I was considering to work on a similar project, but it would make more sense to contribute in your repository if you're still actively developing it.
I think these transitions could be used in a high-level context, similarly to the UIViewController transitions which you've already implemented. My idea would be to create an UIKit compatible transition effect which could be applied on any UIView subclass.
If you are interested let me know and I could share an example here!
image view get memory issue and crash
'Invalid parameter not satisfying: [kernel.alphaTypeHandlingRule _canHandleAlphaTypesInImages:images]'
If different size image transition are not good Why explain behind the reason. How to fix it for different image size thanks.
I'm trying to use this library to add transitions between movie clips selected by the user but it doesn't apply the correct video orientation to the output.
TLDR: i'm selecting 2 portrait videos and the output shows them in landscape with the transition effect in portrait.
I want to use filter on video. thats why is use VideoIO. filter work but the problem is transition.
` func videoFilterSet(){
guard let result = result else{
return}
let context = try! MTIContext(device: MTLCreateSystemDefaultDevice()!)
let handler = MTIAsyncVideoCompositionRequestHandler(context: context, tracks: result.composition.tracks, on: .main) { request in
self.filter.inputImage = request.anySourceImage
return self.filter.outputImage!
}
let composition = VideoComposition(propertiesOf: result.composition, compositionRequestHandler: handler.handle(request:))
let playerItem = AVPlayerItem(asset: result.composition)
playerItem.videoComposition = composition.makeAVVideoComposition()
player.replaceCurrentItem(with: playerItem)
self.player.seek(to: .zero)
self.player.replaceCurrentItem(with: playerItem)
self.player.play()
}`
please see this code for filter
你好,我想知道OC环境的项目想接入MTTransitions,怎么调用库里面的方法,想知道有OC的Demo吗
我用的是xcode11.5的模拟器
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.