How do you Apply H.264 Compression to a CMSampleBuffer

285 views Asked by At

I have been trying to apply H.264 encoding to a CMSampleBuffer using VideoToolBox in Swift, I am very new to Swift and do not know how to do this if the compression turns the CMSampleBuffer into a CVPixelBuffer that is fine too as I need to turn it into NSData in the end. All help would be appreciated!

0

There are 0 answers