Skip to content

Mac Support #1

@jaysonlane

Description

@jaysonlane

I've been working to add macOS support which basically amounts to changing out the CIContext in the VideoFilterExporter initializer from EAGLContext to MTLContext (as OpenGL ES is not available on mac):

let metalDevice = MTLCreateSystemDefaultDevice()!
let context = CIContext(MTLDevice: metalDevice, options: [kCIContextWorkingColorSpace : NSNull()])

This compiles and, I believe, is sufficient, however, I've noticed that the startVideoCompositionRequest on the custom compositor is never called [note: this is the only change]. When I run the export method a new video file is written but the filter is never applied. I saw that you ran into this issue when originally developing this for iOS from a StackOverflow question. I think this is the same issue, with the passthrough track ID causing the sole track to not have the filter applied and thus not calling the startVideoCompositionRequest. Do you have any insight into possible solutions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions