Not a stupid question. Need to show up to 40 streams simultaneously. And on older Apple TV’s the AVPlayers take too much CPU, especially on startup and recovery of streams. So want to try if this approach is better.
I think my issue is in:
incorrectly extracting the SPS and PPS data
incorrectly extracting the IDR and BF frames
passing the data in wrong order to the CMBlockBuffer
all of the above
And I was hoping that people with more knowledge can see the errors in my code.