MPEG-TS multiple PES packets from one ES frame

1.5k Views Asked by At

What is the proper logic when creating PES packets from video ES frame that is larger than 65527 bytes ? Because PES_packet_length is 16bits in length not entire ES frame can be represented.

Should one split one ES frame in multiple PES packets ? If yes and video frame is keyframe does only first PES packet's TS packet have random_access_indicator==1 ? If yes should all PES packets have PTS/DTS set to same value or just first PES packet have PTS/DTS ?

1

There are 1 best solutions below

7
On BEST ANSWER

For video frames, it is legal to use a size of 0 for the PES length.