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