RTP封包中的有效负载类型(Payload Type)的栏位长度为7位元,因此RTP可以支援128种不通的有效负载类型。这个栏位用来指示声音或影像使用的编码类型,而且由发送端决定,不过当然前提是接收端也要拥有处理的能力。如果发送端在会话或者广播的中途决定改变编码方式,发送端可通过这个栏位来通知接收端。下面列出一些目前RTP所能支援的声音、影像有效负载类型。
有效负载号 (PT) enconding name audio/video(A/V) clock rate(Hz) channels(audio)
------------------------------------------------------------------------------------------------------------------------------------------
0 PCMU A 8000 1 [RFC1890]
1 1016 A 8000 1 [RFC1890]
2 G.726-32 A 8000 1 [RFC1890]
3 GSM A 8000 1 [RFC1890]
4 G.723 A 8000 1 [Kumar]
5 DVI4 A 8000 1 [RFC1890]
6 DVI4 A 16000 1 [RFC1890]
7 LPC A 8000 1 [RFC1890]
8 PCMA A 8000 1 [RFC1890]
9 G.722 A 8000 1 [RFC1890]
10 L16 A 44100 2 [RFC1890]
11 L16 A 44100 1 [RFC1890]
12 QCELP A 8000 1
13 reserved A
14 MPA A 90000 [RFC1890,2250]
15 G.728 A 8000 1 [RFC1890]
16 DVI4 A 11025 1 [DiPol]
17 DVI4 A 22050 1 [DiPol]
18 G.729 A 8000 1
19 reserved A
20 unassigned A
21 unassigned A
22 unassigned A
23 unassigned A
dyn GSM-HR A 8000 1
dyn GSM-EFR A 8000 1
dyn L8 A var. var.
dyn RED A
dyn VDVI A var. 1
24 unassigned V
25 CelB V 90000 [RFC2029]
26 JPEG V 90000 [RFC2435]
27 unassigned V
28 nv V 90000 [RFC1890]
29 unassigned V
30 unassigned V
31 H.261 V 90000 [RFC2032]
32 MPV V 90000 [RFC2250]
33 MP2T AV 90000 [RFC2250]
34 H.263 V 90000 [Zhu]
35--71 unassigned ?
72--76 reserved for RTCP conflict avoidance [RFC1889]
77--95 unassigned ?
96--127 dynamic ? [RFC1890]
dyn BT656 V 90000
dyn H.263-1998 V 90000
dyn MP1S V 90000
dyn MP2P V 90000
有效负载号 (PT) enconding name audio/video(A/V) clock rate(Hz) channels(audio)
------------------------------------------------------------------------------------------------------------------------------------------
0 PCMU A 8000 1 [RFC1890]
1 1016 A 8000 1 [RFC1890]
2 G.726-32 A 8000 1 [RFC1890]
3 GSM A 8000 1 [RFC1890]
4 G.723 A 8000 1 [Kumar]
5 DVI4 A 8000 1 [RFC1890]
6 DVI4 A 16000 1 [RFC1890]
7 LPC A 8000 1 [RFC1890]
8 PCMA A 8000 1 [RFC1890]
9 G.722 A 8000 1 [RFC1890]
10 L16 A 44100 2 [RFC1890]
11 L16 A 44100 1 [RFC1890]
12 QCELP A 8000 1
13 reserved A
14 MPA A 90000 [RFC1890,2250]
15 G.728 A 8000 1 [RFC1890]
16 DVI4 A 11025 1 [DiPol]
17 DVI4 A 22050 1 [DiPol]
18 G.729 A 8000 1
19 reserved A
20 unassigned A
21 unassigned A
22 unassigned A
23 unassigned A
dyn GSM-HR A 8000 1
dyn GSM-EFR A 8000 1
dyn L8 A var. var.
dyn RED A
dyn VDVI A var. 1
24 unassigned V
25 CelB V 90000 [RFC2029]
26 JPEG V 90000 [RFC2435]
27 unassigned V
28 nv V 90000 [RFC1890]
29 unassigned V
30 unassigned V
31 H.261 V 90000 [RFC2032]
32 MPV V 90000 [RFC2250]
33 MP2T AV 90000 [RFC2250]
34 H.263 V 90000 [Zhu]
35--71 unassigned ?
72--76 reserved for RTCP conflict avoidance [RFC1889]
77--95 unassigned ?
96--127 dynamic ? [RFC1890]
dyn BT656 V 90000
dyn H.263-1998 V 90000
dyn MP1S V 90000
dyn MP2P V 90000
dyn BMPEG V 90000
h264 的vidieo 负载类型就可以用 96。