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?