VTCompressionSessionEncodeFrame -12912

When I use the real machine of IOS16, the H264 code will report an error and fail, but the simulator will succeed. The trouble will be solved quickly and I'm tired of it

I have a possibly related problem with h264 on iPhone but with decoding instead of encoding. In my case the problem occurs with a streaming source that has Encoder set to H.264 or H.264B only (but not H264High).

When the streaming source is encoded with H.264H (H.264high) the iPhone decodes the stream successfully.

But when decoding in iOS simulator, it doesn't matter which of the 3 encodings is used by the source!

Have you tried all 3 encodings in your project?

I know this is a long shot but there is some similarity: Different results between physical iPhone versus simulator on h.264 streams.

VTCompressionSessionEncodeFrame -12912
 
 
Q