Tuesday, April 2, 2024
HomeiOS Developmentswift - AVAssetWriterInputTaggedPixelBufferGroupAdaptor.appendTaggedBuffers return false on iOS, however macOS OK

swift – AVAssetWriterInputTaggedPixelBufferGroupAdaptor.appendTaggedBuffers return false on iOS, however macOS OK


I presently write an iOS app in Swift to do “Facet-By-Facet Video to MV-HEVC format” following the Apple Official doc: Changing side-by-side 3D video to multiview HEVC.

The pattern code by Apple is written for macOS command line, and I need to transfer it into an iOS app. When utilizing completely the identical conversion code in iOS, the road often returns false throughout conversion:

if !bufferInputAdapter.appendTaggedBuffers(taggedBuffers, withPresentationTime: newPTS) {
    fatalError("Didn't append tagged buffers to multiview output")
}

I print out the newPTS for debugging, it returns false at completely different time and generally cross all of the conversion. So I do not know the place is the completely different from macOS and iOS.

Have I missed something vital that I ought to pay attention to relating to iOS?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments