VideoIO
VideoIO copied to clipboard
Video Input/Output Utilities
Also allows changes to be locked (for macOS) and the configurator to be set when switching video device Includes change from PR #37
This is only available on iOS
This PR includes previous changes included in #37, but I have added them here too in case this PR is not desirable, while the other can be merged.
let context = try! MTIContext(device: MTLCreateSystemDefaultDevice()!) let handler = MTIAsyncVideoCompositionRequestHandler(context: context, tracks: asset.tracks(withMediaType: .video)) { request in return FilterGraph.makeImage { output in request.anySourceImage => filterA => filterB => output }!...
Hi! After exporting videos using VideoIO, I am experiencing artifacts on the video, even without applying any filters. Additionally, when using the same codecs (in my case, .hevc), the video...
import VideoIO var configuration = AssetExportSession.Configuration(fileType: .mp4, videoSettings: .h264(videoSize: composition.renderSize), audioSettings: .aac(channels: 2, sampleRate: 44100, bitRate: 128 * 1000)) configuration.videoComposition = composition.makeAVVideoComposition() self.exporter = try! AssetExportSession(asset: asset, outputURL: outputURL, configuration:...
Camera.swift:403 `Stored properties cannot be marked unavailable with '@available'` PlayerVideoOutput.swift:63 `'CADisplayLink' is only available in macOS 14.0 or newer` PlayerVideoOutput.swift:208 `'CADisplayLink' is only available in macOS 14.0 or newer` It...
This PR adds support for macOS 14. macOS 14 adds support for CADisplayLink which means the current source will not compile. This PR resolves the discussion in #45.
This PR adds support for audio switching using the methods discussed in #38, #36 and #42 Changes: - Renamed `defaultCameraDeviceTypes` to `defaultVideoDeviceTypes` - Deprecated initializer - Added new initializer: `init(captureSessionPreset:defaultCameraPosition:defaultVideoDeviceTypes:...