Post

Replies

Boosts

Views

Activity

Reply to Frames out of order using AVAssetWriter
Your original.mov has got crazy values in the "ctts" atom. HEVC and H.264 has got a frame type called B that can reference previous and future frames, so they are stored out of order. This means the presentation timestamp (pts) and the decode timestamp (dts) are different, and the offset between the two is stored in the mov/mp4 ctts atom. Some players ignore this atom and uses the info stored in the video bitstream, so they might not display the issue. I would check the pts/dts of the sample buffers you are passing to AVAssetWriter.
Topic: Graphics & Games SubTopic: Metal Tags:
May ’23
Reply to What is NSTextView "compatibility" mode in MacOS 10.12+
Apple rewrote the whole layout and text framework used by Cocoa views. The rewrite was incremental, so some features were not yet available on some previous macOS versions, and some behaviours may differ. Anyway, setting a layout manager makes it use the old layout and text framework, so you will have the same behaviour as in older macOS versions. You can either try to find a way to get the wanted behaviour with the new framework, or keep using the old one for now I guess. I think there is some info on the AppKit release notes and in various WWDC sessions.
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’23
Reply to App update was rejected with "Command-Q is not considered a sufficient means of quitting for a stand-alone application."
Is there a quit menu item in the menu extra?
Replies
Boosts
Views
Activity
Mar ’23
Reply to What exactly does CVBufferSetAttachment do?
I guess it depend where are you using those buffers. If you are encoding them with VideoToolbox or AVFoundation it will probably convert them to the appropriate colourspace set in the encoder, or maybe it will completely ignore it. Try and see.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to NSStackView.distribution runtime question
Either crash or throw an exception probably. Did you ever test on 10.10?
Replies
Boosts
Views
Activity
Apr ’23
Reply to Need confirmation on Apple's percentage from in-app purchases revenue in free apps
My understanding is that Apple takes 30% of every digital good sold inside your app. But check the App Store rules for confirmation.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Cannot get Metal Performance HUD To Toggle On/Off
Is that a space before "MetalHUDEnabled" or it's just Xcode indenting things in a weird way?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to XCode 14.1 always crash
Does it happens in Xcode 14.3?
Replies
Boosts
Views
Activity
Apr ’23
Reply to Gatekeeper and binaries rejected by spctl
The alert is shown only if there is a quarantine flag set on the app/executable. Homebrew doesn't add such flag.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Frames out of order using AVAssetWriter
Your original.mov has got crazy values in the "ctts" atom. HEVC and H.264 has got a frame type called B that can reference previous and future frames, so they are stored out of order. This means the presentation timestamp (pts) and the decode timestamp (dts) are different, and the offset between the two is stored in the mov/mp4 ctts atom. Some players ignore this atom and uses the info stored in the video bitstream, so they might not display the issue. I would check the pts/dts of the sample buffers you are passing to AVAssetWriter.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Is Self._printChanges() allowed in apps in the AppStore?
If it's not compiled in, it means there is no reference to it in the binary at all. So it can't be an issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to What is NSTextView "compatibility" mode in MacOS 10.12+
Apple rewrote the whole layout and text framework used by Cocoa views. The rewrite was incremental, so some features were not yet available on some previous macOS versions, and some behaviours may differ. Anyway, setting a layout manager makes it use the old layout and text framework, so you will have the same behaviour as in older macOS versions. You can either try to find a way to get the wanted behaviour with the new framework, or keep using the old one for now I guess. I think there is some info on the AppKit release notes and in various WWDC sessions.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Clang 14.0.0 does not have <memory_resouce>
Xcode's clang is an Apple maintained fork, so it won't be exactly the same as the main clang, and I guess libc++ is different too.
Replies
Boosts
Views
Activity
May ’23
Reply to "This will be disallowed in the future."
Like the message says, you have to had NSNumber to the set of allowed classes that you pass to NSKeyedUnarchiver.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Why AVPlayer returns video duration (seconds) as Double?
Yes.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to -[NSView (un)lockFocus] deprecated, what to use instead?
You can move your crosshairs to a separate CALayer or to multiple one, so you don't have to redraw anything but just changed the coordinate of such layers. No need to redraw the diagram each time. Or use CATiledLayer or something similar.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to VTPixelRotationSessionRotateImage is not working
Is the size of the destination buffer right? In your example is your source 640x480? If so the destination buffer should be 480x640. VTPixelRotationSession works correctly in my app.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Jun ’23