Post

Replies

Boosts

Views

Activity

Comment on AVAssetWriter settings for ProRes422
Ok I see that. But when I record video using AVCaptureVideoDataOutput, I do see some elements in AVVideoCompressionPropertiesKey dictionary through recommendedSettings. I am not sure what would be the result to omitting AVVideoCompressionPropertiesKey, but is there a way to copy this dictionary from input video file for instance (I can't find a way to do this though)?
Topic: Media Technologies SubTopic: Audio Tags:
Oct ’21
Comment on How to observe AVCaptureDevice.isCenterStageEnabled?
This way certainly works but it is a legacy way of observing properties. I was thinking if there is modern Swift KVO based method for the same. Sorry to omit those details in my question here , I should have mentioned the details like i mentioned on stackoverflow.(https://stackoverflow.com/questions/69505085/swift-kvo-addobserver-observevalue-for-class-objects)
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Comment on Swift generic usage inside class
Value needs to adhere to protocol Interpolable and Codable. And Interpolable protocol includes just one function that returns interpolated value from value A to value B by a float amount. So all math types Int, Float, Double, and types such as CGRect, CGAffineTransform, UIColor that can be interpolated, Value can be that type.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’21
Comment on AVPlayer seek completion handler not called
I see this problem is reproducible only when playerItem.seekingWaitsForVideoCompositionRendering = true is set. Otherwise I have not been able to reproduce it so far.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on AVPlayer seek completion handler not called
It will take time to prepare a minimally reproducible sample code, I shall definitely do that. But in any case I need a workaround or alternative way to detect seek has finished.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Passing MTLTexture to Metal Core Image Kernel
I think in this case, CIContext may also need to be initialised with metalDevice, correct?
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Create Tone Curve Filter in CoreImage
@YuAo, I saw your kernel code. I don't understand why 0.5 offset has been added in both x and y coordinates when you compute `vec2 redCoord = samplerTransform(toneCurveTexture,vec2(textureColor.r * 255.0 + 0.5 + toneCurveTextureExtent.x, toneCurveTextureExtent.y + 0.5)); ?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on Create Tone Curve Filter in CoreImage
Why do we need to add 0.5 offset I wonder?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on AVAssetWriter settings for ProRes422
Sure I would file a bug!
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on AVAssetWriter settings for ProRes422
Ok I see that. But when I record video using AVCaptureVideoDataOutput, I do see some elements in AVVideoCompressionPropertiesKey dictionary through recommendedSettings. I am not sure what would be the result to omitting AVVideoCompressionPropertiesKey, but is there a way to copy this dictionary from input video file for instance (I can't find a way to do this though)?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on AVAssetWriter settings for ProRes422
I want to use my custom export session class that uses AVAssetReader/Writer as I am using it in my workflow. How to correctly adapt it to ProRes videos?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on How to observe AVCaptureDevice.isCenterStageEnabled?
Thanks for the answer. I will definitely post it on Swift forums.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on How to observe AVCaptureDevice.isCenterStageEnabled?
This way certainly works but it is a legacy way of observing properties. I was thinking if there is modern Swift KVO based method for the same. Sorry to omit those details in my question here , I should have mentioned the details like i mentioned on stackoverflow.(https://stackoverflow.com/questions/69505085/swift-kvo-addobserver-observevalue-for-class-objects)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Can MTKView display HDR CIImage/CVPixelBuffer?
I am wondering why this limitation, what kind of technical reasons stop it?
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Urgent: XCode 13 unable to delete lines of code
I don't see these icons, how do I see them?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Swift generic usage inside class
Value needs to adhere to protocol Interpolable and Codable. And Interpolable protocol includes just one function that returns interpolated value from value A to value B by a float amount. So all math types Int, Float, Double, and types such as CGRect, CGAffineTransform, UIColor that can be interpolated, Value can be that type.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Swift generic usage inside class
But then I have to update EffectModel with EffectModel where ever object of type EffectModel was used. I just want to avoid touching EffectModel.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on What exactly is CIImage extent
Ok I used trigonometry to calculate the new extent. Formulas work! Thank you so much for clarifying.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21