How to generate the Packetised Elementary Stream (PES) from Elementary Stream

I was able to encode raw CMSampleBufferRef using VideoToolBox framework and was able to generate the "Elementary Stream" from encoded CMSampleBufferRef with the help of Extracting h264 from CMBlockBuffer.

Now I would like to generate the "Packetized Elementary Stream" from "Elementary Stream" and then put it in a MPEG-TS container before transmitting over network.

Could any one please let me know how can we generate PES and MPEG-TS any sample code would be helpful.

Thanks.

Category:ios Time:2018-12-25 Views:0

Related post

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 1.164 (s). 13 q(s)