1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125
|
<pre>Network Working Group J. Sjoberg
Request for Comments: 4352 M. Westerlund
Category: Standards Track Ericsson
A. Lakaniemi
S. Wenger
Nokia
January 2006
<span class="h1">RTP Payload Format for the</span>
<span class="h1">Extended Adaptive Multi-Rate Wideband (AMR-WB+) Audio Codec</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2006).
Abstract
This document specifies a Real-time Transport Protocol (RTP) payload
format for Extended Adaptive Multi-Rate Wideband (AMR-WB+) encoded
audio signals. The AMR-WB+ codec is an audio extension of the AMR-WB
speech codec. It encompasses the AMR-WB frame types and a number of
new frame types designed to support high-quality music and speech. A
media type registration for AMR-WB+ is included in this
specification.
<span class="grey">Sjoberg, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Definitions .....................................................<a href="#page-4">4</a>
<a href="#section-2.1">2.1</a>. Glossary ...................................................<a href="#page-4">4</a>
<a href="#section-2.2">2.2</a>. Terminology ................................................<a href="#page-4">4</a>
<a href="#section-3">3</a>. Background of AMR-WB+ and Design Principles .....................<a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. The AMR-WB+ Audio Codec ....................................<a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. Multi-rate Encoding and Rate Adaptation ....................<a href="#page-8">8</a>
<a href="#section-3.3">3.3</a>. Voice Activity Detection and Discontinuous Transmission ....<a href="#page-8">8</a>
<a href="#section-3.4">3.4</a>. Support for Multi-Channel Session ..........................<a href="#page-8">8</a>
<a href="#section-3.5">3.5</a>. Unequal Bit-Error Detection and Protection .................<a href="#page-9">9</a>
<a href="#section-3.6">3.6</a>. Robustness against Packet Loss .............................<a href="#page-9">9</a>
<a href="#section-3.6.1">3.6.1</a>. Use of Forward Error Correction (FEC) ...............<a href="#page-9">9</a>
<a href="#section-3.6.2">3.6.2</a>. Use of Frame Interleaving ..........................<a href="#page-10">10</a>
<a href="#section-3.7">3.7</a>. AMR-WB+ Audio over IP Scenarios ...........................<a href="#page-11">11</a>
<a href="#section-3.8">3.8</a>. Out-of-Band Signaling .....................................<a href="#page-11">11</a>
<a href="#section-4">4</a>. RTP Payload Format for AMR-WB+ .................................<a href="#page-12">12</a>
<a href="#section-4.1">4.1</a>. RTP Header Usage ..........................................<a href="#page-13">13</a>
<a href="#section-4.2">4.2</a>. Payload Structure .........................................<a href="#page-14">14</a>
<a href="#section-4.3">4.3</a>. Payload Definitions .......................................<a href="#page-14">14</a>
<a href="#section-4.3.1">4.3.1</a>. Payload Header .....................................<a href="#page-14">14</a>
<a href="#section-4.3.2">4.3.2</a>. The Payload Table of Contents ......................<a href="#page-15">15</a>
<a href="#section-4.3.3">4.3.3</a>. Audio Data .........................................<a href="#page-20">20</a>
<a href="#section-4.3.4">4.3.4</a>. Methods for Forming the Payload ....................<a href="#page-21">21</a>
<a href="#section-4.3.5">4.3.5</a>. Payload Examples ...................................<a href="#page-21">21</a>
<a href="#section-4.4">4.4</a>. Interleaving Considerations ...............................<a href="#page-24">24</a>
<a href="#section-4.5">4.5</a>. Implementation Considerations .............................<a href="#page-25">25</a>
<a href="#section-4.5.1">4.5.1</a>. ISF Recovery in Case of Packet Loss ................<a href="#page-26">26</a>
<a href="#section-4.5.2">4.5.2</a>. Decoding Validation ................................<a href="#page-28">28</a>
<a href="#section-5">5</a>. Congestion Control .............................................<a href="#page-28">28</a>
<a href="#section-6">6</a>. Security Considerations ........................................<a href="#page-28">28</a>
<a href="#section-6.1">6.1</a>. Confidentiality ...........................................<a href="#page-29">29</a>
<a href="#section-6.2">6.2</a>. Authentication and Integrity ..............................<a href="#page-29">29</a>
<a href="#section-7">7</a>. Payload Format Parameters ......................................<a href="#page-29">29</a>
<a href="#section-7.1">7.1</a>. Media Type Registration ...................................<a href="#page-30">30</a>
<a href="#section-7.2">7.2</a>. Mapping Media Type Parameters into SDP ....................<a href="#page-32">32</a>
<a href="#section-7.2.1">7.2.1</a>. Offer-Answer Model Considerations ..................<a href="#page-32">32</a>
<a href="#section-7.2.2">7.2.2</a>. Examples ...........................................<a href="#page-34">34</a>
<a href="#section-8">8</a>. IANA Considerations ............................................<a href="#page-34">34</a>
<a href="#section-9">9</a>. Contributors ...................................................<a href="#page-34">34</a>
<a href="#section-10">10</a>. Acknowledgements ..............................................<a href="#page-34">34</a>
<a href="#section-11">11</a>. References ....................................................<a href="#page-35">35</a>
<a href="#section-11.1">11.1</a>. Normative References .....................................<a href="#page-35">35</a>
<a href="#section-11.2">11.2</a>. Informative References ...................................<a href="#page-35">35</a>
<span class="grey">Sjoberg, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document specifies the payload format for packetization of
Extended Adaptive Multi-Rate Wideband (AMR-WB+) [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>] encoded audio
signals into the Real-time Transport Protocol (RTP) [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>]. The payload
format supports the transmission of mono or stereo audio, aggregating
multiple frames per payload, and mechanisms enhancing the robustness
of the packet stream against packet loss.
The AMR-WB+ codec is an extension of the Adaptive Multi-Rate Wideband
(AMR-WB) speech codec. New features include extended audio bandwidth
to enable high quality for non-speech signals (e.g., music), native
support for stereophonic audio, and the option to operate on, and
switch between, several internal sampling frequencies (ISFs). The
primary usage scenario for AMR-WB+ is the transport over IP.
Therefore, interworking with other transport networks, as discussed
for AMR-WB in [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>], is not a major concern and hence not addressed in
this memo.
The expected key application for AMR-WB+ is streaming. To make the
packetization process on a streaming server as efficient as possible,
an octet-aligned payload format is desirable. Therefore, a
bandwidth-efficient mode (as defined for AMR-WB in [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>]) is not
specified herein; the bandwidth savings of the bandwidth-efficient
mode would be very small anyway, since all extension frame types are
octet aligned.
The stereo encoding capability of AMR-WB+ renders the support for
multi-channel transport at RTP payload format level, as specified for
AMR-WB [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>], obsolete. Therefore, this feature is not included in
this memo.
This specification does not include a definition of a file format for
AMR-WB+. Instead, it refers to the ISO-based 3GP file format [<a href="#ref-14" title=""Transparent end-to-end packet switched streaming service (PSS); 3GPP file format (3GP)"">14</a>],
which supports AMR-WB+ and provides all functionality required. The
3GP format also supports storage of AMR, AMR-WB, and many other
multi-media formats, thereby allowing synchronized playback.
The rest of the document is organized as follows: Background
information on the AMR-WB+ codec, and design principles, can be found
in <a href="#section-3">Section 3</a>. The payload format itself is specified in <a href="#section-4">Section 4</a>.
Sections <a href="#section-5">5</a> and <a href="#section-6">6</a> discuss congestion control and security
considerations, respectively. In <a href="#section-7">Section 7</a>, a media type
registration is provided.
<span class="grey">Sjoberg, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Definitions</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Glossary</span>
3GPP - Third Generation Partnership Project
AMR - Adaptive Multi-Rate (Codec)
AMR-WB - Adaptive Multi-Rate Wideband (Codec)
AMR-WB+ - Extended Adaptive Multi-Rate Wideband (Codec)
CN - Comfort Noise
DTX - Discontinuous Transmission
FEC - Forward Error Correction
FT - Frame Type
ISF - Internal Sampling Frequency
SCR - Source-Controlled Rate Operation
SID - Silence Indicator (the frames containing only CN
parameters)
TFI - Transport Frame Index
TS - Timestamp
VAD - Voice Activity Detection
UED - Unequal Error Detection
UEP - Unequal Error Protection
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Terminology</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-2" title=""Key words for use in RFCs to Indicate Requirement Levels"">2</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Background of AMR-WB+ and Design Principles</span>
The Extended Adaptive Multi-Rate Wideband (AMR-WB+) [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>] audio codec
is designed to compress speech and audio signals at low bit-rate and
good quality. The codec is specified by the Third Generation
Partnership Project (3GPP). The primary target applications are 1)
the packet-switched streaming service (PSS) [<a href="#ref-13" title=""Packet Switched Streaming service"">13</a>], 2) multimedia
messaging service (MMS) [<a href="#ref-18" title=""Multimedia Messaging Service (MMS); Media formats and codes"">18</a>], and 3) multimedia broadcast and
multicast service (MBMS) [<a href="#ref-19" title=""Multimedia Broadcast/Multicast Service (MBMS); Protocols and codecs"">19</a>]. However, due to its flexibility and
robustness, AMR-WB+ is also well suited for streaming services in
other highly varying transport environments, for example, the
Internet.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. The AMR-WB+ Audio Codec</span>
3GPP originally developed the AMR-WB+ audio codec for streaming and
messaging services in Global System for Mobile communications (GSM)
and third generation (3G) cellular systems. The codec is designed as
an audio extension of the AMR-WB speech codec. The extension adds
new functionality to the codec in order to provide high audio quality
<span class="grey">Sjoberg, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
for a wide range of signals including music. Stereophonic operation
has also been added. A new, high-efficiency hybrid stereo coding
algorithm enables stereo operation at bit-rates as low as 6.2 kbit/s.
The AMR-WB+ codec includes the nine frame types specified for AMR-WB,
extended by new bit-rates ranging from 5.2 to 48 kbit/s. The AMR-WB
frame types can employ only a 16000 Hz sampling frequency and operate
only on monophonic signals. The newly introduced extension frame
types, however, can operate at a number of internal sampling
frequencies (ISFs), both in mono and stereo. Please see Table 24 in
[<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>] for details. The output sampling frequency of the decoder is
limited to 8, 16, 24, 32, or 48 kHz.
An overview of the AMR-WB+ encoding operations is provided as
follows. The encoder receives the audio sampled at, for example, 48
kHz. The encoding process starts with pre-processing and resampling
to the user-selected ISF. The encoding is performed on equally sized
super-frames. Each super-frame corresponds to 2048 samples per
channel, at the ISF. The codec carries out a number of encoding
decisions for each super-frame, thereby choosing between different
encoding algorithms and block lengths, so as to achieve a fidelity-
optimized encoding adapted to the signal characteristics of the
source. The stereo encoding (if used) executes separately from the
monophonic core encoding, thus enabling the selection of different
combinations of core and stereo encoding rates. The resulting
encoded audio is produced in four transport frames of equal length.
Each transport frame corresponds to 512 samples at the ISF and is
individually usable by the decoder, provided that its position in the
super-frame structure is known.
The codec supports 13 different ISFs, ranging from 12.8 to 38.4 kHz,
as described by Table 24 of [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. The high number of ISFs allows a
trade-off between the audio bandwidth and the target bit-rate. As
encoding is performed on 2048 samples at the ISF, the duration of a
super-frame and the effective bit-rate of the frame type in use
varies.
The ISF of 25600 Hz has a super-frame duration of 80 ms. This is the
'nominal' value used to describe the encoding bit-rates henceforth.
Assuming this normalization, the ISF selection results in bit-rate
variations from 1/2 up to 3/2 of the nominal bit-rate.
The encoding for the extension modes is performed as one monophonic
core encoding and one stereo encoding. The core encoding is executed
by splitting the monophonic signal into a lower and a higher
frequency band. The lower band is encoded employing either algebraic
code excited linear prediction (ACELP) or transform coded excitation
(TCX). This selection can be made once per transport frame, but must
<span class="grey">Sjoberg, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
obey certain limitations of legal combinations within the super-
frame. The higher band is encoded using a low-rate parametric
bandwidth extension approach.
The stereo signal is encoded employing a similar frequency band
decomposition; however, here the signal is divided into three bands
that are individually parameterized.
The total bit-rate produced by the extension is the result of the
combination of the encoder's core rate, stereo rate, and ISF. The
extension supports 8 different core encoding rates, producing bit-
rates between 10.4 and 24.0 kbit/s; see Table 22 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. There are
16 stereo encoding rates generating bit-rates between 2.0 and 8.0
kbit/s; see Table 23 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. The frame type uniquely identifies the
AMR-WB modes, 4 fixed extension rates (see below), 24 combinations of
core and stereo rates for stereo signals, and the 8 core rates for
mono signals, as listed in Table 25 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. This implies that the
AMR-WB+ supports encoding rates between 10.4 and 32 kbit/s, assuming
an ISF of 25600 Hz.
Different ISFs allow for additional freedom in the produced bit-rates
and audio quality. The selection of an ISF changes the available
audio bandwidth of the reconstructed signal, and also the total bit-
rate. The bit-rate for a given combination of frame type and ISF is
determined by multiplying the frame type's bit-rate with the used
ISF's bit-rate factor; see Table 24 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>].
The extension also has four frame types which have fixed ISFs.
Please see frame types 10-13 in Table 21 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. These four pre-
defined frame types have a fixed input sampling frequency at the
encoder, which can be set at either 16 or 24 kHz. Like the AMR-WB
frame types, transport frames encoded utilizing these frame types
represent exactly 20 ms of the audio signal. However, they are also
part of 80 ms super-frames. Frame types 0-13 (AMR-WB and fixed
extension rates), as listed in Table 21 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>], do not require an
explicit ISF indication. The other frame types, 14-47, require the
ISF employed to be indicated.
The 32 different frame types of the extension, in combination with 13
ISFs, allows for a great flexibility in bit-rate and selection of
desired audio quality. A number of combinations exist that produce
the same codec bit-rate. For example, a 32 kbit/s audio stream can
be produced by utilizing frame type 41 (i.e., 25.6 kbit/s) and the
ISF of 32kHz (5/4 * (19.2+6.4) = 32 kbit/s), or frame type 47 and the
ISF of 25.6 kHz (1 * (24 + 8) = 32 kbit/s). Which combination is
more beneficial for the perceived audio quality depends on the
content. In the above example, the first case provides a higher
audio bandwidth, while the second one spends the same number of bits
<span class="grey">Sjoberg, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
on somewhat narrower audio bandwidth but provides higher fidelity.
Encoders are free to select the combination they deem most
beneficial.
Since a transport frame always corresponds to 512 samples at the used
ISF, its duration is limited to the range 13.33 to 40 ms; see Table
1. An RTP Timestamp clock rate of 72000 Hz, as mandated by this
specification, results in AMR-WB+ transport frame lengths of 960 to
2880 timestamp ticks, depending solely on the selected ISF.
Index ISF Duration(ms) Duration(TS Ticks @ 72 kHz)
------------------------------------------------------
0 N/A 20 1440
1 12800 40 2880
2 14400 35.55 2560
3 16000 32 2304
4 17067 30 2160
5 19200 26.67 1920
6 21333 24 1728
7 24000 21.33 1536
8 25600 20 1440
9 28800 17.78 1280
10 32000 16 1152
11 34133 15 1080
12 36000 14.22 1024
13 38400 13.33 960
Table 1: Normative number of RTP Timestamp Ticks for each
Transport Frame depending on ISF (ISF and Duration in
ms are rounded)
The encoder is free to change both the ISF and the encoding frame
type (both mono and stereo) during a session. For the extension
frame types with index 10-13 and 16-47, the ISF and frame type
changes are constrained to occur at super-frame boundaries. This
implies that, for the frame types mentioned, the ISF is constant
throughout a super-frame. This limitation does not apply for frame
types with index 0-9, 14, and 15; i.e., the original AMR-WB frame
types.
A number of features of the AMR-WB+ codec require special
consideration from a transport point of view, and solutions that
could perhaps be viewed as unorthodox. First, there are constraints
on the RTP timestamping, due to the relationship of the frame
duration and the ISFs. Second, each frame of encoded audio must
maintain information about its frame type, ISF, and position in the
super-frame.
<span class="grey">Sjoberg, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Multi-rate Encoding and Rate Adaptation</span>
The multi-rate encoding capability of AMR-WB+ is designed to preserve
high audio quality under a wide range of bandwidth requirements and
transmission conditions.
AMR-WB+ enables seamless switching between frame types that use the
same number of audio channels and the same ISF. Every AMR-WB+ codec
implementation is required to support all frame types defined by the
codec and must be able to handle switching between any two frame
types. Switching between frame types employing a different number of
audio channels or a different ISF must also be supported, but it may
not be completely seamless. Therefore, it is recommended to perform
such switching infrequently and, if possible, during periods of
silence.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Voice Activity Detection and Discontinuous Transmission</span>
AMR-WB+ supports the same algorithms as AMR-WB for voice activity
detection (VAD) and generation of comfort noise (CN) parameters
during silence periods. However, these functionalities can only be
used in conjunction with the AMR-WB frame types (FT=0-8). This
option allows reducing the number of transmitted bits and packets
during silence periods to a minimum. The operation of sending CN
parameters at regular intervals during silence periods is usually
called discontinuous transmission (DTX) or source controlled rate
(SCR) operation. The AMR-WB+ frames containing CN parameters are
called Silence Indicator (SID) frames. More details about the VAD
and DTX functionality are provided in [<a href="#ref-4" title=""AMR Wideband speech codec; Comfort Noise aspects"">4</a>] and [<a href="#ref-5" title=""AMR Wideband speech codec; Source Controlled Rate operation"">5</a>].
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Support for Multi-Channel Session</span>
Some of the AMR-WB+ frame types support the encoding of stereophonic
audio. Because of this native support for a two-channel stereophonic
signal, it does not seem necessary to support multi-channel transport
with separate codec instances, as specified in the AMR-WB RTP payload
[<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>]. The codec has the capability of stereo to mono downmixing as
part of the decoding process. Thus, a receiver that is only capable
of playout of monophonic audio must still be able to decode and play
signals originally encoded and transmitted as stereo. However, to
avoid spending bits on a stereo encoding that is not going to be
utilized, a mechanism is defined in this specification to signal
mono-only audio.
<span class="grey">Sjoberg, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. Unequal Bit-Error Detection and Protection</span>
The audio bits encoded in each AMR-WB frame are sorted according to
their different perceptual sensitivity to bit errors. In cellular
systems, for example, this property can be exploited to achieve
better voice quality, by using unequal error protection and detection
(UEP and UED) mechanisms. However, the bits of the extension frame
types of the AMR-WB+ codec do not have a consistent perceptual
significance property and are not sorted in this order. Thus, UEP or
UED is meaningless with the extension frame types. If there is a
need to use UEP or UED for AMR-WB frame types, it is recommended that
<a href="./rfc3267">RFC 3267</a> [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>] be used.
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. Robustness against Packet Loss</span>
The payload format supports two mechanisms to improve robustness
against packet loss: simple forward error correction (FEC) and frame
interleaving.
<span class="h4"><a class="selflink" id="section-3.6.1" href="#section-3.6.1">3.6.1</a>. Use of Forward Error Correction (FEC)</span>
Generic forward error correction within RTP is defined, for example,
in <a href="./rfc2733">RFC 2733</a> [<a href="#ref-11" title=""An RTP Payload Format for Generic Forward Error Correction"">11</a>]. Audio redundancy coding is defined in <a href="./rfc2198">RFC 2198</a>
[<a href="#ref-12" title=""RTP Payload for Redundant Audio Data"">12</a>]. Either scheme can be used to add redundant information to the
RTP packet stream and make it more resilient to packet losses, at the
expense of a higher bit rate. Please see either RFC for a discussion
of the implications of the higher bit rate to network congestion.
In addition to these media-unaware mechanisms, this memo specifies an
AMR-WB+ specific form of audio redundancy coding, which may be
beneficial in terms of packetization overhead.
Conceptually, previously transmitted transport frames are aggregated
together with new ones. A sliding window is used to group the frames
to be sent in each payload. Figure 1 below shows an example.
--+--------+--------+--------+--------+--------+--------+--------+--
| f(n-2) | f(n-1) | f(n) | f(n+1) | f(n+2) | f(n+3) | f(n+4) |
--+--------+--------+--------+--------+--------+--------+--------+--
<---- p(n-1) ---->
<----- p(n) ----->
<---- p(n+1) ---->
<---- p(n+2) ---->
<---- p(n+3) ---->
<---- p(n+4) ---->
Figure 1: An example of redundant transmission
<span class="grey">Sjoberg, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Here, each frame is retransmitted once in the following RTP payload
packet. F(n-2)...f(n+4) denote a sequence of audio frames, and
p(n-1)...p(n+4) a sequence of payload packets.
The mechanism described does not require signaling at the session
setup. In other words, the audio sender can choose to use this
scheme without consulting the receiver. For a certain timestamp, the
receiver may receive multiple copies of a frame containing encoded
audio data or frames indicated as NO_DATA. The cost of this scheme
is bandwidth and the receiver delay necessary to allow the redundant
copy to arrive.
This redundancy scheme provides a functionality similar to the one
described in <a href="./rfc2198">RFC 2198</a>, but it works only if both original frames and
redundant representations are AMR-WB+ frames. When the use of other
media coding schemes is desirable, one has to resort to <a href="./rfc2198">RFC 2198</a>.
The sender is responsible for selecting an appropriate amount of
redundancy based on feedback about the channel conditions, e.g., in
the RTP Control Protocol (RTCP) [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] receiver reports. The sender is
also responsible for avoiding congestion, which may be exacerbated by
redundancy (see <a href="#section-5">Section 5</a> for more details).
<span class="h4"><a class="selflink" id="section-3.6.2" href="#section-3.6.2">3.6.2</a>. Use of Frame Interleaving</span>
To decrease protocol overhead, the payload design allows several
audio transport frames to be encapsulated into a single RTP packet.
One of the drawbacks of such an approach is that in case of packet
loss several consecutive frames are lost. Consecutive frame loss
normally renders error concealment less efficient and usually causes
clearly audible and annoying distortions in the reconstructed audio.
Interleaving of transport frames can improve the audio quality in
such cases by distributing the consecutive losses into a number of
isolated frame losses, which are easier to conceal. However,
interleaving and bundling several frames per payload also increases
end-to-end delay and sets higher buffering requirements. Therefore,
interleaving is not appropriate for all use cases or devices.
Streaming applications should most likely be able to exploit
interleaving to improve audio quality in lossy transmission
conditions.
Note that this payload design supports the use of frame interleaving
as an option. The usage of this feature needs to be negotiated in
the session setup.
The interleaving supported by this format is rather flexible. For
example, a continuous pattern can be defined, as depicted in Figure
2.
<span class="grey">Sjoberg, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
--+--------+--------+--------+--------+--------+--------+--------+--
| f(n-2) | f(n-1) | f(n) | f(n+1) | f(n+2) | f(n+3) | f(n+4) |
--+--------+--------+--------+--------+--------+--------+--------+--
[ P(n) ]
[ P(n+1) ] [ P(n+1) ]
[ P(n+2) ] [ P(n+2) ]
[ P(n+3) ] [P(
[ P(n+4) ]
Figure 2: An example of interleaving pattern that has constant delay
In Figure 2 the consecutive frames, denoted f(n-2) to f(n+4), are
aggregated into packets P(n) to P(n+4), each packet carrying two
frames. This approach provides an interleaving pattern that allows
for constant delay in both the interleaving and deinterleaving
processes. The deinterleaving buffer needs to have room for at least
three frames, including the one that is ready to be consumed. The
storage space for three frames is needed, for example, when f(n) is
the next frame to be decoded: since frame f(n) was received in packet
P(n+2), which also carried frame f(n+3), both these frames are stored
in the buffer. Furthermore, frame f(n+1) received in the previous
packet, P(n+1), is also in the deinterleaving buffer. Note also that
in this example the buffer occupancy varies: when frame f(n+1) is the
next one to be decoded, there are only two frames, f(n+1) and f(n+3),
in the buffer.
<span class="h3"><a class="selflink" id="section-3.7" href="#section-3.7">3.7</a>. AMR-WB+ Audio over IP Scenarios</span>
Since the primary target application for the AMR-WB+ codec is
streaming over packet networks, the most relevant usage scenario for
this payload format is IP end-to-end between a server and a terminal,
as shown in Figure 3.
+----------+ +----------+
| | IP/UDP/RTP/AMR-WB+ | |
| SERVER |<------------------------>| TERMINAL |
| | | |
+----------+ +----------+
Figure 3: Server to terminal IP scenario
<span class="h3"><a class="selflink" id="section-3.8" href="#section-3.8">3.8</a>. Out-of-Band Signaling</span>
Some of the options of this payload format remain constant throughout
a session. Therefore, they can be controlled/negotiated at the
session setup. Throughout this specification, these options and
variables are denoted as "parameters to be established through out-
<span class="grey">Sjoberg, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
of-band means". In <a href="#section-7">Section 7</a>, all the parameters are formally
specified in the form of media type registration for the AMR-WB+
encoding. The method used to signal these parameters at session
setup or to arrange prior agreement of the participants is beyond the
scope of this document; however, <a href="#section-7.2">Section 7.2</a> provides a mapping of
the parameters into the Session Description Protocol (SDP) [<a href="#ref-6" title=""SDP: Session Description Protocol"">6</a>] for
those applications that use SDP.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. RTP Payload Format for AMR-WB+</span>
The main emphasis in the payload design for AMR-WB+ has been to
minimize the overhead in typical use cases, while providing full
flexibility with a slightly higher overhead. In order to keep the
specification reasonably simple, we refrained from defining frame-
specific parameters for each frame type. Instead, a few common
parameters were specified that cover all types of frames.
The payload format has two modes: basic mode and interleaved mode.
The main structural difference between the two modes is the extension
of the table of content entries with frame displacement fields when
operating in the interleaved mode. The basic mode supports
aggregation of multiple consecutive frames in a payload. The
interleaved mode supports aggregation of multiple frames that are
non-consecutive in time. In both modes it is possible to have frames
encoded with different frame types in the same payload. The ISF must
remain constant throughout the payload of a single packet.
The payload format is designed around the property of AMR-WB+ frames
that the frames are consecutive in time and share the same frame
duration (in the absence of an ISF change). This enables the
receiver to derive the timestamp for an individual frame within a
payload. In basic mode, the deriving process is based on the order
of frames. In interleaved mode, it is based on the compact
displacement fields. The frame timestamps are used to regenerate the
correct order of frames after reception, identify duplicates, and
detect lost frames that require concealment.
The interleaving scheme of this payload format is significantly more
flexible than the one specified in <a href="./rfc3267">RFC 3267</a>. The AMR and AMR-WB
payload format is only capable of using periodic patterns with frames
taken from an interleaving group at fixed intervals. The
interleaving scheme of this specification, in contrast, allows for
any interleaving pattern, as long as the distance in decoding order
between any two adjacent frames is not more than 256 frames. Note
that even at the highest ISF this allows an interleaving depth of up
to 3.41 seconds.
<span class="grey">Sjoberg, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
To allow for error resiliency through redundant transmission, the
periods covered by multiple packets MAY overlap in time. A receiver
MUST be prepared to receive any audio frame multiple times. All
redundantly sent frames MUST use the same frame type and ISF, and
MUST have the same RTP timestamp, or MUST be a NO_DATA frame (FT=15).
The payload consists of octet-aligned elements (header, ToC, and
audio frames). Only the audio frames for AMR-WB frame types (0-9)
require padding for octet alignment. If additional padding is
desired, then the P bit in the RTP header MAY be set, and padding MAY
be appended as specified in [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>].
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. RTP Header Usage</span>
The format of the RTP header is specified in [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>]. This payload
format uses the fields of the header in a manner consistent with that
specification.
The RTP timestamp corresponds to the sampling instant of the first
sample encoded for the first frame in the packet. The timestamp
clock frequency SHALL be 72000 Hz. This frequency allows the frame
duration to be integer RTP timestamp ticks for the ISFs specified in
Table 1. It also provides reasonable conversion factors to the
input/output audio sampling frequencies supported by the codec. See
<a href="#section-4.3.2.3">Section 4.3.2.3</a> for guidance on how to derive the RTP timestamp for
any audio frame beyond the first one.
The RTP header marker bit (M) SHALL be set to 1 whenever the first
frame carried in the packet is the first frame in a talkspurt (see
the definition of talkspurt in Section 4.1 of [<a href="#ref-9" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">9</a>]). For all other
packets, the marker bit SHALL be set to zero (M=0).
The assignment of an RTP payload type for the format defined in this
memo is outside the scope of this document. The RTP profile in use
either assigns a static payload type or mandates binding the payload
type dynamically.
The media type parameter "channels" is used to indicate the maximum
number of channels allowed for a given payload type. A payload type
where channels=1 (mono) SHALL only carry mono content. A payload
type for which channels=2 has been declared MAY carry both mono and
stereo content. Note that this definition is different from the one
in <a href="./rfc3551">RFC 3551</a> [<a href="#ref-9" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">9</a>]. As mentioned before, the AMR-WB+ codec handles the
support of stereo content and the (eventual) downmixing of stereo to
mono internally. This makes it unnecessary to negotiate for the
number of channels for reasons other than bit-rate efficiency.
<span class="grey">Sjoberg, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Payload Structure</span>
The payload consists of a payload header, a table of contents, and
the audio data representing one or more audio frames. The following
diagram shows the general payload format layout:
+----------------+-------------------+----------------
| payload header | table of contents | audio data ...
+----------------+-------------------+----------------
Payloads containing more than one audio frame are called compound
payloads.
The following sections describe the variations taken by the payload
format depending on the mode in use: basic mode or interleaved mode.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Payload Definitions</span>
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. Payload Header</span>
The payload header carries data that is common for all frames in the
payload. The structure of the payload header is described below.
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
| ISF |TFI|L|
+-+-+-+-+-+-+-+-+
ISF (5 bits): Indicates the Internal Sampling Frequency employed for
all frames in this payload. The index value corresponds to
internal sampling frequency as specified in Table 24 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. This
field SHALL be set to 0 for payloads containing frames with Frame
Type values 0-13.
TFI (2 bits): Transport Frame Index, from 0 (first) to 3 (last),
indicating the position of the first transport frame of this
payload in the AMR-WB+ super-frame structure. For payloads with
frames of only Frame Type values 0-9, this field SHALL be set to 0
by the sender. The TFI value for a frame of type 0-9 SHALL be
ignored by the receiver. Note that the frame type is coded in the
table of contents (as discussed later); hence, the mentioned
dependencies of the frame type can be applied easily by
interpreting only values carried in the payload header. It is not
necessary to interpret the audio bit stream itself.
<span class="grey">Sjoberg, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
L (1 bit): Long displacement field flag for payloads in interleaved
mode. If set to 0, four-bit displacement fields are used to
indicate interleaving offset; if set to 1, displacement fields of
eight bits are used (see <a href="#section-4.3.2.2">Section 4.3.2.2</a>). For payloads in the
basic mode, this bit SHALL be set to 0 and SHALL be ignored by the
receiver.
Note that frames employing different ISF values require encapsulation
in separate packets. Thus, special considerations apply when
generating interleaved packets and an ISF change is executed. In
particular, frames that, according to the previously used
interleaving pattern, would be aggregated into a single packet have
to be separated into different packets, so that the aforementioned
condition (all frames in a packet share the ISF) remains true. A
naive implementation that splits the frames with different ISF into
different packets can result in up to twice the number of RTP
packets, when compared to an optimal interleaved solution.
Alteration of the interleaving before and after the ISF change may
reduce the need for extra RTP packets.
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. The Payload Table of Contents</span>
The table of contents (ToC) consists of a list of entries, each entry
corresponds to a group of audio frames carried in the payload, as
depicted below.
+----------------+----------------+- ... -+----------------+
| ToC entry #1 | ToC entry #2 | ToC entry #N |
+----------------+----------------+- ... -+----------------+
When multiple groups of frames are present in a payload, the ToC
entries SHALL be placed in the packet in order of increasing RTP
timestamp value (modulo 2^32) of the first transport frame the TOC
entry represents.
<span class="h5"><a class="selflink" id="section-4.3.2.1" href="#section-4.3.2.1">4.3.2.1</a>. ToC Entry in the Basic Mode</span>
A ToC entry of a payload in the basic mode has the following format:
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Frame Type | #frames |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
F (1 bit): If set to 1, indicates that this ToC entry is followed by
another ToC entry; if set to 0, indicates that this ToC entry is
the last one in the ToC.
<span class="grey">Sjoberg, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Frame Type (FT) (7 bits): Indicates the audio codec frame type used
for the group of frames referenced by this ToC entry. FT
designates the combination of AMR-WB+ core and stereo rate, one of
the special AMR-WB+ frame types, the AMR-WB rate, or comfort
noise, as specified by Table 25 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>].
#frames (8 bits): Indicates the number of frames in the group
referenced by this ToC entry. ToC entries with this field equal
to 0 (which would indicate zero frames) SHALL NOT be used, and
received packets with such a TOC entry SHALL be discarded.
<span class="h5"><a class="selflink" id="section-4.3.2.2" href="#section-4.3.2.2">4.3.2.2</a>. ToC Entry in the Interleaved Mode</span>
Two different ToC entry formats are defined in interleaved mode.
They differ in the length of the displacement field, 4 bits or 8
bits. The L-bit in the payload header differentiates between the two
modes.
If L=0, a ToC entry has the following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Frame Type | #frames | DIS1 | ... | DISi | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | ... | DISn | Padd |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
F (1 bit): See definition in 4.3.2.1.
Frame Type (FT) (7 bits): See definition in 4.3.2.1.
#frames (8 bits): See definition in 4.3.2.1.
DIS1...DISn (4 bits): A list of n (n=#frames) displacement fields
indicating the displacement of the i:th (i=1..n) audio frame
relative to the preceding audio frame in the payload, in units of
frames. The four-bit unsigned integer displacement values may be
between 0 and 15, indicating the number of audio frames in
decoding order between the (i-1):th and the i:th frame in the
payload. Note that for the first ToC entry of the payload, the
value of DIS1 is meaningless. It SHALL be set to zero by a sender
and SHALL be ignored by a receiver. This frame's location in the
decoding order is uniquely defined by the RTP timestamp and TFI in
the payload header. Note also that for subsequent ToC entries,
DIS1 indicates the number of frames between the last frame of the
previous group and the first frame of this group.
<span class="grey">Sjoberg, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Padd (4 bits): To ensure octet alignment, four padding bits SHALL be
included at the end of the ToC entry in case there is odd number
of frames in the group referenced by this entry. These bits SHALL
be set to zero and SHALL be ignored by the receiver. If a group
containing an even number of frames is referenced by this ToC
entry, these padding bits SHALL NOT be included in the payload.
If L=1, a ToC entry has the following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|F| Frame Type | #frames | DIS1 | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | DISn |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
F (1 bit): See definition in 4.3.2.1.
Frame Type (FT) (7 bits): See definition in 4.3.2.1.
#frames (8 bits): See definition in 4.3.2.1.
DIS1...DISn (8 bits): A list of n (n=#frames) displacement fields
indicating the displacement of the i:th (i=1..n) audio frame
relative to the preceding audio frame in the payload, in units of
frames. The eight-bit unsigned integer displacement values may be
between 0 and 255, indicating the number of audio frames in
decoding order between the (i-1):th and the i:th frame in the
payload. Note that for the first ToC entry of the payload, the
value of DIS1 is meaningless. It SHALL be set to zero by a sender
and SHALL be ignored by a receiver. This frame's location in the
decoding order is uniquely defined by the RTP timestamp and TFI in
the payload header. Note also that for subsequent ToC entries,
DIS1 indicates the displacement between the last frame of the
previous group and the first frame of this group.
<span class="h5"><a class="selflink" id="section-4.3.2.3" href="#section-4.3.2.3">4.3.2.3</a>. RTP Timestamp Derivation</span>
The RTP Timestamp value for a frame SHALL be the timestamp value of
the first audio sample encoded in the frame. The timestamp value for
a frame is derived differently depending on the payload mode, basic
or interleaved. In both cases, the first frame in a compound packet
has an RTP timestamp equal to the one received in the RTP header. In
the basic mode, the RTP time for any subsequent frame is derived in
two steps. First, the sum of the frame durations (see Table 1) of
all the preceding frames in the payload is calculated. Then, this
sum is added to the RTP header timestamp value. For example, let's
<span class="grey">Sjoberg, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
assume that the RTP Header timestamp value is 12345, the payload
carries four frames, and the frame duration is 16 ms (ISF = 32 kHz)
corresponding to 1152 timestamp ticks. Then the RTP timestamp of the
fourth frame in the payload is 12345 + 3 * 1152 = 15801.
In interleaved mode, the RTP timestamp for each frame in the payload
is derived from the RTP header timestamp and the sum of the time
offsets of all preceding frames in this payload. The frame
timestamps are computed based on displacement fields and the frame
duration derived from the ISF value. Note that the displacement in
time between frame i-1 and frame i is (DISi + 1) * frame duration
because the duration of the (i-1):th must also be taken into account.
The timestamp of the first frame of the first group of frames (TS(1))
(i.e., the first frame of the payload) is the RTP header timestamp.
For subsequent frames in the group, the timestamp is computed by
TS(i) = TS(i-1) + (DISi + 1) * frame duration, 2 < i < n
For subsequent groups of frames, the timestamp of the first frame is
computed by
TS(1) = TSprev + (DIS1 + 1) * frame duration,
where TSprev denotes the timestamp of the last frame in the previous
group. The timestamps of the subsequent frames in the group are
computed in the same way as for the first group.
The following example derives the RTP timestamps for the frames in an
interleaved mode payload having the following header and ToC
information:
RTP header timestamp: 12345
ISF = 32 kHz
Frame 1 displacement field: DIS1 = 0
Frame 2 displacement field: DIS2 = 6
Frame 3 displacement field: DIS3 = 4
Frame 4 displacement field: DIS4 = 7
Assuming an ISF of 32 kHz, which implies a frame duration of 16 ms,
one frame lasts 1152 ticks. The timestamp of the first frame in the
payload is the RTP timestamp, i.e., TS(1) = RTP TS. Note that the
displacement field value for this frame must be ignored. For the
second frame in the payload, the timestamp can be calculated as TS(2)
= TS(1) + (DIS2 + 1) * 1152 = 20409. For the third frame, the
timestamp is TS(3) = TS(2) + (DIS3 + 1) * 1152 = 26169. Finally, for
the fourth frame of the payload, we have TS(4) = TS(3) + (DIS4 + 1) *
1152 = 35385.
<span class="grey">Sjoberg, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h5"><a class="selflink" id="section-4.3.2.4" href="#section-4.3.2.4">4.3.2.4</a>. Frame Type Considerations</span>
The value of Frame Type (FT) is defined in Table 25 in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. FT=14
(AUDIO_LOST) is used to denote frames that are lost. A NO_DATA
(FT=15) frame could result from two situations: First, that no data
has been produced by the audio encoder; and second, that no data is
transmitted in the current payload. An example for the latter would
be that the frame in question has been or will be sent in an earlier
or later packet. The duration for these non-included frames is
dependent on the internal sampling frequency indicated by the ISF
field.
For frame types with index 0-13, the ISF field SHALL be set 0. The
frame duration for these frame types is fixed to 20 ms in time, i.e.,
1440 ticks in 72 kHz. For payloads containing only frames of type
0-9, the TFI field SHALL be set to 0 and SHALL be ignored by the
receiver. In a payload combining frames of type 0-9 and 10-13, the
TFI values need to be set to match the transport frames of type
10-13. Thus, frames of type 0-9 will also have a derived TFI, which
is ignored.
<span class="h5"><a class="selflink" id="section-4.3.2.5" href="#section-4.3.2.5">4.3.2.5</a>. Other TOC Considerations</span>
If a ToC entry with an undefined FT value is received, the whole
packet SHALL be discarded. This is to avoid the loss of data
synchronization in the depacketization process, which can result in a
severe degradation in audio quality.
Packets containing only NO_DATA frames SHOULD NOT be transmitted.
Also, NO_DATA frames at the end of a frame sequence to be carried in
a payload SHOULD NOT be included in the transmitted packet. The
AMR-WB+ SCR/DTX is identical with AMR-WB SCR/DTX described in [<a href="#ref-5" title=""AMR Wideband speech codec; Source Controlled Rate operation"">5</a>] and
can only be used in combination with the AMR-WB frame types (0-8).
When multiple groups of frames are present, their ToC entries SHALL
be placed in the ToC in order of increasing RTP timestamp value
(modulo 2^32) of the first transport frame the TOC entry represents,
independent of the payload mode. In basic mode, the frames SHALL be
consecutive in time, while in interleaved mode the frames MAY not
only be non-consecutive in time but MAY even have varying inter-frame
distances.
<span class="h5"><a class="selflink" id="section-4.3.2.6" href="#section-4.3.2.6">4.3.2.6</a>. ToC Examples</span>
The following example illustrates a ToC for three audio frames in
basic mode. Note that in this case all audio frames are encoded
using the same frame type, i.e., there is only one ToC entry.
<span class="grey">Sjoberg, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0| Frame Type1 | #frames = 3 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The next example depicts a ToC of three entries in basic mode. Note
that in this case the payload also carries three frames, but three
ToC entries are needed because the frames of the payload are encoded
using different frame types.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1| Frame Type1 | #frames = 1 |1| Frame Type2 | #frames = 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0| Frame Type3 | #frames = 1 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The following example illustrates a ToC with two entries in
interleaved mode using four-bit displacement fields. The payload
includes two groups of frames, the first one including a single
frame, and the other one consisting of two frames.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|1| Frame Type1 | #frames = 1 | DIS1 | padd |0| Frame Type2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| #frames = 2 | DIS1 | DIS2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
<span class="h4"><a class="selflink" id="section-4.3.3" href="#section-4.3.3">4.3.3</a>. Audio Data</span>
Audio data of a payload consists of zero or more audio frames, as
described in the ToC of the payload.
ToC entries with FT=14 or 15 represent frame types with a length of
0. Hence, no data SHALL be placed in the audio data section to
represent frames of this type.
As already discussed, each audio frame of an extension frame type
represents an AMR-WB+ transport frame corresponding to the encoding
of 512 samples of audio, sampled with the internal sampling frequency
specified by the ISF indicator. As an exception, frame types with
index 10-13 are only capable of using a single internal sampling
frequency (25600 Hz). The encoding rates (combination of core bit-
rate and stereo bit-rate) are indicated in the frame type field of
<span class="grey">Sjoberg, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
the corresponding ToC entry. The octet length of the audio frame is
implicitly defined by the frame type field and is given in Tables 21
and 25 of [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. The order and numbering notation of the bits are as
specified in [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>]. For the AMR-WB+ extension frame types and comfort
noise frames, the bits are in the order produced by the encoder. The
last octet of each audio frame MUST be padded with zeroes at the end
if not all bits in the octet are used. In other words, each audio
frame MUST be octet-aligned.
<span class="h4"><a class="selflink" id="section-4.3.4" href="#section-4.3.4">4.3.4</a>. Methods for Forming the Payload</span>
The payload begins with the payload header, followed by the table of
contents, which consists of a list of ToC entries.
The audio data follows the table of contents. All the octets
comprising an audio frame SHALL be appended to the payload as a unit.
The audio frames are packetized in timestamp order within each group
of frames (per ToC entry). The groups of frames are packetized in
the same order as their corresponding ToC entries. Note that there
are no data octets in a group having a ToC entry with FT=14 or FT=15.
<span class="h4"><a class="selflink" id="section-4.3.5" href="#section-4.3.5">4.3.5</a>. Payload Examples</span>
<span class="h5"><a class="selflink" id="section-4.3.5.1" href="#section-4.3.5.1">4.3.5.1</a>. Example 1: Basic Mode Payload Carrying Multiple Frames Encoded</span>
<span class="h5"> Using the Same Frame Type</span>
Figure 4 depicts a payload that carries three AMR-WB+ frames encoded
using 14 kbit/s frame type (FT=26) with a frame length of 280 bits
(35 bytes). The internal sampling frequency in this example is 25.6
kHz (ISF = 8). The TFI for the first frame is 2, indicating that the
first transport frame in this payload is the third in a super-frame.
Since this payload is in the basic mode, the subsequent frames of the
payload are consecutive frames in decoding order, i.e., the fourth
transport frame of the current super-frame and the first transport
frame of the next super-frame. Note that because the frames are all
encoded using the same frame type, only one ToC entry is required.
<span class="grey">Sjoberg, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ISF = 8 | 2 |0|0| FT = 26 | #frames = 3 | f1(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f1(272...279) | f2(0...7) | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| f2(272...279) | f3(0...7) | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f3(272...279) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 4: An example of a basic mode payload carrying three frames
of the same frame type
<span class="h5"><a class="selflink" id="section-4.3.5.2" href="#section-4.3.5.2">4.3.5.2</a>. Example 2: Basic Mode Payload Carrying Multiple Frames Encoded</span>
<span class="h5"> Using Different Frame Types</span>
Figure 5 depicts a payload that carries three AMR-WB+ frames; the
first frame is encoded using 18.4 kbit/s frame type (FT=33) with a
frame length of 368 bits (46 bytes), and the two subsequent frames
are encoded using 20 kbit/s frame type (FT=35) having frame length of
400 bits (50 bytes). The internal sampling frequency in this example
is 32 kHz (ISF = 10), implying the overall bit-rates of 23 kbit/s for
the first frame of the payload, and 25 kbit/s for the subsequent
frames. The TFI for the first frame is 3, indicating that the first
transport frame in this payload is the fourth in a super-frame.
Since this is a payload in the basic mode, the subsequent frames of
the payload are consecutive frames in decoding order, i.e., the first
and second transport frames of the current super-frame. Note that
since the payload carries two different frame types, there are two
ToC entries.
<span class="grey">Sjoberg, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ISF=10 | 3 |0|1| FT = 33 | #frames = 1 |0| FT = 35 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| #frames = 2 | f1(0...7) | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f1(360...367) | f2(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| f2(392...399) | f3(0...7) | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f3(392...399) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 5: An example of a basic mode payload carrying three frames
employing two different frame types
<span class="h5"><a class="selflink" id="section-4.3.5.3" href="#section-4.3.5.3">4.3.5.3</a>. Example 3: Payload in Interleaved Mode</span>
The example in Figure 6 depicts a payload in interleaved mode,
carrying four frames encoded using 32 kbit/s frame type (FT=47) with
frame length of 640 bits (80 bytes). The internal sampling frequency
is 38.4 kHz (ISF = 13), implying a bit-rate of 48 kbit/s for all
frames in the payload. The TFI for the first frame is 0; hence, it
is the first transport frame of a super-frame. The displacement
fields for the subsequent frames are DIS2=18, DIS3=15, and DIS4=10,
which indicates that the subsequent frames have the TFIs of 3, 3, and
2, respectively. The long displacement field flag L in the payload
header is set to 1, which results in the use of eight bits for the
displacement fields in the ToC entry. Note that since all frames of
this payload are encoded using the same frame type, there is need
only for a single ToC entry. Furthermore, the displacement field for
the first frame (corresponding to the first ToC entry with DIS1=0)
must be ignored, since its timestamp and TFI are defined by the RTP
timestamp and the TFI found in the payload header.
The RTP timestamp values of the frames in this example are:
Frame1: TS1 = RTP Timestamp
Frame2: TS2 = TS1 + 19 * 960
Frame3: TS3 = TS2 + 16 * 960
Frame4: TS4 = TS3 + 11 * 960
<span class="grey">Sjoberg, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ISF=13 | 0 |1|0| FT = 47 | #frames = 4 | DIS1 = 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| DIS2 = 18 | DIS3 = 15 | DIS4 = 10 | f1(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f1(632...639) | f2(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f2(632...639) | f3(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f3(632...639) | f4(0...7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | f4(632...639) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 6: An example of an interleaved mode payload carrying four
frames at the same frame type
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Interleaving Considerations</span>
The use of interleaving requires further considerations. As
presented in the example in <a href="#section-3.6.2">Section 3.6.2</a>, a given interleaving
pattern requires a certain amount of the deinterleaving buffer. This
buffer space, expressed in a number of transport frame slots, is
indicated by the "interleaving" media type parameter. The number of
frame slots needed can be converted into actual memory requirements
by considering the 80 bytes per frame used by the largest combination
of AMR-WB+'s core and stereo rates.
The information about the frame buffer size is not always sufficient
to determine when it is appropriate to start consuming frames from
the interleaving buffer. There are two cases in which additional
information is needed: first, when switching of the ISF occurs, and
second, when the interleaving pattern changes. The "int-delay" media
type parameter is defined to convey this information. It allows a
sender to indicate the minimal media time that needs to be present in
the buffer before the decoder can start consuming frames from the
buffer. Because the sender has full control over ISF changes and the
interleaving pattern, it can calculate this value.
<span class="grey">Sjoberg, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
In certain cases (for example, if joining a multicast session with
interleaving mid-session), a receiver may initially receive only part
of the packets in the interleaving pattern. This initial partial
reception (in frame sequence order) of frames can yield too few
frames for acceptable quality from the audio decoding. This problem
also arises when using encryption for access control, and the
receiver does not have the previous key.
Although the AMR-WB+ is robust and thus tolerant to a high random
frame erasure rate, it would have difficulties handling consecutive
frame losses at startup. Thus, some special implementation
considerations are described. In order to handle this type of
startup efficiently, it must be noted that decoding is only possible
to start at the beginning of a super-frame, and that holds true even
if the first transport frame is indicated as lost. Secondly,
decoding is only RECOMMENDED to start if at least 2 transport frames
are available out of the 4 belonging to that super-frame.
After receiving a number of packets, in the worst case as many
packets as the interleaving pattern covers, the previously described
effects disappear and normal decoding is resumed.
Similar issues arise when a receiver leaves a session or has lost
access to the stream. If the receiver leaves the session, this would
be a minor issue since playout is normally stopped. It is also a
minor issue for the case of lost access, since the AMR-WB+ error
concealment will fade out the audio if massive consecutive losses are
encountered.
The sender can avoid this type of problem in many sessions by
starting and ending interleaving patterns correctly when risks of
losses occur. One such example is a key-change done for access
control to encrypted streams. If only some keys are provided to
clients and there is a risk of their receiving content for which they
do not have the key, it is recommended that interleaving patterns not
overlap key changes.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Implementation Considerations</span>
An application implementing this payload format MUST understand all
the payload parameters. Any mapping of the parameters to a signaling
protocol MUST support all parameters. So an implementation of this
payload format in an application using SDP is required to understand
all the payload parameters in their SDP-mapped form. This
requirement ensures that an implementation always can decide whether
it is capable of communicating.
<span class="grey">Sjoberg, et al. Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Both basic and interleaved mode SHALL be implemented. The
implementation burden of both is rather small, and requiring both
ensures interoperability. As the AMR-WB+ codec contains the full
functionality of the AMR-WB codec, it is RECOMMENDED to also
implement the payload format in <a href="./rfc3267">RFC 3267</a> [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>] for the AMR-WB frame
types when implementing this specification. Doing so makes
interoperability with devices that only support AMR-WB more likely.
The switching of ISF, when combined with packet loss, could result in
concealment using the wrong audio frame length. This can occur if
packet losses result in lost frames directly after the point of ISF
change. The packet loss would prevent the receiver from noticing the
changed ISF and thereby conceal the lost transport frame with the
previous ISF, instead of the new one. Although always later
detectable, such an error results in frame boundary misalignment,
which can cause audio distortions and problems with synchronization,
as too many or too few audio samples were created. This problem can
be mitigated in most cases by performing ISF recovery prior to
concealment as outlined in <a href="#section-4.5.1">Section 4.5.1</a>.
<span class="h4"><a class="selflink" id="section-4.5.1" href="#section-4.5.1">4.5.1</a>. ISF Recovery in Case of Packet Loss</span>
In case of packet loss, it is important that the AMR-WB+ decoder
initiates a proper error concealment to replace the frames carried in
the lost packet. A loss concealment algorithm requires a codec
framing that matches the timestamps of the correctly received frames.
Hence, it is necessary to recover the timestamps of the lost frames.
Doing so is non-trivial because the codec frame length that is
associated with the ISF may have changed during the frame loss.
In the following, the recovery of the timestamp information of lost
frames is illustrated by the means of an example. Two frames with
timestamps t0 and t1 have been received properly, the first one being
the last packet before the loss, and the latter one being the first
packet after the loss period. The ISF values for these packets are
isf0 and isf1, respectively. The TFIs of these frames are tfi0 and
tfi1, respectively. The associated frame lengths (in timestamp
ticks) are given as L0 and L1, respectively. In this example three
frames with timestamps x1 - x3 have been lost. The example further
assumes that ISF changes once from isf0 to isf1 during the frame loss
period, as shown in the figure below.
Since not all information required for the full recovery of the
timestamps is generally known in the receiver, an algorithm is needed
to estimate the ISF associated with the lost frames. Also, the
number of lost frames needs to be recovered.
<span class="grey">Sjoberg, et al. Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
|<---L0--->|<---L0--->|<-L1->|<-L1->|<-L1->|
| Rxd | lost | lost | lost | Rxd |
--+----------+----------+------+------+------+--
t0 x1 x2 x3 t1
Example Algorithm:
Start: # check for frame loss
If (t0 + L0) == t1 Then goto End # no frame loss
Step 1: # check case with no ISF change
If (isf0 != isf1) Then goto Step 2 # At least one ISF change
If (isFractional(t1 - t0)/L0) Then goto Step 3
# More than 1 ISF change
Return recovered timestamps as
x(n) = t0 + n*L1 and associated ISF equal to isf0,
for 0 < n < (t1 - t0)/L0
goto End
Step 2:
Loop initialization: n := 4 - tfi0 mod 4
While n <= (t1-t0)/L0
Evaluate m := (t1 - t0 - n*L0)/L1
If (isInteger(m) AND ((tfi0+n+m) mod 4 == tfi1)) Then goto found;
n := n+4
endloop
goto step 3 # More than 1 ISF change
found:
Return recovered timestamps and ISFs as
x(i) = t0 + i*L0 and associated ISF equal to isf0, for 0 < i <= n
x(i) = t0 + n*L0 + (i-n)*L1 and associated ISF equal to isf1,
for n < i <= n+m
goto End
Step 3:
More than 1 ISF change has occurred. Since ISF changes can be
assumed to be infrequent, such a situation occurs only if long
sequences of frames are lost. In that case it is probably not useful
to try to recover the timestamps of the lost frames. Rather, the
AMR-WB+ decoder should be reset, and decoding should be resumed
starting with the frame with timestamp t1.
End:
<span class="grey">Sjoberg, et al. Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
The above algorithm still does not solve the issue when the receiver
buffer depth is shallower than the loss burst. In this kind of case,
where the concealment must be done without any knowledge about future
frames, the concealment may result in loss of frame boundary
alignment. If that occurs, it may be necessary to reset and restart
the codec to perform resynchronization.
<span class="h4"><a class="selflink" id="section-4.5.2" href="#section-4.5.2">4.5.2</a>. Decoding Validation</span>
If the receiver finds a mismatch between the size of a received
payload and the size indicated by the ToC of the payload, the
receiver SHOULD discard the packet. This is recommended because
decoding a frame parsed from a payload based on erroneous ToC data
could severely degrade the audio quality.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Congestion Control</span>
The general congestion control considerations for transporting RTP
data apply; see RTP [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] and any applicable RTP profile like AVP [<a href="#ref-9" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">9</a>].
However, the multi-rate capability of AMR-WB+ audio coding provides a
mechanism that may help to control congestion, since the bandwidth
demand can be adjusted (within the limits of the codec) by selecting
a different coding frame type or lower internal sampling rate.
The number of frames encapsulated in each RTP payload highly
influences the overall bandwidth of the RTP stream due to header
overhead constraints. Packetizing more frames in each RTP payload
can reduce the number of packets sent and hence the header overhead,
at the expense of increased delay and reduced error robustness.
If forward error correction (FEC) is used, the amount of FEC-induced
redundancy needs to be regulated such that the use of FEC itself does
not cause a congestion problem.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
RTP packets using the payload format defined in this specification
are subject to the general security considerations discussed in RTP
[<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] and any applicable profile such as AVP [<a href="#ref-9" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">9</a>] or SAVP [<a href="#ref-10" title=""The Secure Real-time Transport Protocol (SRTP)"">10</a>]. As this
format transports encoded audio, the main security issues include
confidentiality, integrity protection, and data origin authentication
of the audio itself. The payload format itself does not have any
built-in security mechanisms. Any suitable external mechanisms, such
as SRTP [<a href="#ref-10" title=""The Secure Real-time Transport Protocol (SRTP)"">10</a>], MAY be used.
<span class="grey">Sjoberg, et al. Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
This payload format and the AMR-WB+ decoder do not exhibit any
significant non-uniformity in the receiver-side computational
complexity for packet processing, and thus are unlikely to pose a
denial-of-service threat due to the receipt of pathological data.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Confidentiality</span>
In order to ensure confidentiality of the encoded audio, all audio
data bits MUST be encrypted. There is less need to encrypt the
payload header or the table of contents since they only carry
information about the frame type. This information could also be
useful to a third party, for example, for quality monitoring.
The use of interleaving in conjunction with encryption can have a
negative impact on confidentiality, for a short period of time.
Consider the following packets (in brackets) containing frame numbers
as indicated: {10, 14, 18}, {13, 17, 21}, {16, 20, 24} (a popular
continuous diagonal interleaving pattern). The originator wishes to
deny some participants the ability to hear material starting at time
16. Simply changing the key on the packet with the timestamp at or
after 16, and denying that new key to those participants, does not
achieve this; frames 17, 18, and 21 have been supplied in prior
packets under the prior key, and error concealment may make the audio
intelligible at least as far as frame 18 or 19, and possibly further.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Authentication and Integrity</span>
To authenticate the sender of the speech, an external mechanism MUST
be used. It is RECOMMENDED that such a mechanism protects both the
complete RTP header and the payload (speech and data bits).
Data tampering by a man-in-the-middle attacker could replace audio
content and also result in erroneous depacketization/decoding that
could lower the audio quality.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Payload Format Parameters</span>
This section defines the parameters that may be used to select
features of the AMR-WB+ payload format. The parameters are defined
as part of the media type registration for the AMR-WB+ audio codec.
A mapping of the parameters into the Session Description Protocol
(SDP) [<a href="#ref-6" title=""SDP: Session Description Protocol"">6</a>] is also provided for those applications that use SDP.
Equivalent parameters could be defined elsewhere for use with control
protocols that do not use MIME or SDP.
The data format and parameters are only specified for real-time
transport in RTP.
<span class="grey">Sjoberg, et al. Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Media Type Registration</span>
The media type for the Extended Adaptive Multi-Rate Wideband
(AMR-WB+) codec is allocated from the IETF tree, since AMR-WB+ is
expected to be a widely used audio codec in general streaming
applications.
Note: Parameters not listed below MUST be ignored by the receiver.
Media Type name: audio
Media subtype name: AMR-WB+
Required parameters:
None
Optional parameters:
channels: The maximum number of audio channels used by the
audio frames. Permissible values are 1 (mono) or 2
(stereo). If no parameter is present, the maximum
number of channels is 2 (stereo). Note: When set to
1, implicitly the stereo frame types cannot be used.
interleaving: Indicates that interleaved mode SHALL
be used for the payload. The parameter specifies
the number of transport frame slots required in a
deinterleaving buffer (including the frame that is
ready to be consumed). Its value is equal to one
plus the maximum number of frames that precede any
frame in transmission order and follow the frame in
RTP timestamp order. The value MUST be greater than
zero. If this parameter is not present,
interleaved mode SHALL NOT be used.
int-delay: The minimal media time delay in RTP timestamp ticks
that is needed in the deinterleaving buffer, i.e.,
the difference in RTP timestamp ticks between the
earliest and latest audio frame present in the
deinterleaving buffer.
ptime: See <a href="./rfc2327#section-6">Section 6 in RFC 2327</a> [<a href="#ref-6" title=""SDP: Session Description Protocol"">6</a>].
maxptime: See <a href="./rfc3267#section-8">Section 8 in RFC 3267</a> [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>].
Restriction on Usage:
This type is only defined for transfer via RTP (STD 64).
<span class="grey">Sjoberg, et al. Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Encoding considerations:
An RTP payload according to this format is binary data
and thus may need to be appropriately encoded in non-
binary environments. However, as long as used within
RTP, no encoding is necessary.
Security considerations:
See <a href="./rfc4352#section-6">Section 6 of RFC 4352</a>.
Interoperability considerations:
To maintain interoperability with AMR-WB-capable end-
points, in cases where negotiation is possible and the
AMR-WB+ end-point supporting this format also supports
<a href="./rfc3267">RFC 3267</a> for AMR-WB transport, an AMR-WB+ end-point
SHOULD declare itself also as AMR-WB capable (i.e.,
supporting also "audio/AMR-WB" as specified in <a href="./rfc3267">RFC</a>
<a href="./rfc3267">3267</a>).
As the AMR-WB+ decoder is capable of performing stereo
to mono conversions, all receivers of AMR-WB+ should be
able to receive both stereo and mono, although the
receiver is only capable of playout of mono signals.
Public specification:
<a href="./rfc4352">RFC 4352</a>
3GPP TS 26.290, see reference [<a href="#ref-1" title=""Audio codec processing functions; Extended Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding functions"">1</a>] of <a href="./rfc4352">RFC 4352</a>
Additional information:
This MIME type is not applicable for file storage.
Instead, file storage of AMR-WB+ encoded audio is
specified within the 3GPP-defined ISO-based multimedia
file format defined in 3GPP TS 26.244; see reference
[<a href="#ref-14" title=""Transparent end-to-end packet switched streaming service (PSS); 3GPP file format (3GP)"">14</a>] of <a href="./rfc4352">RFC 4352</a>. This file format has the MIME types
"audio/3GPP" or "video/3GPP" as defined by <a href="./rfc3839">RFC 3839</a>
[<a href="#ref-15" title=""MIME Type Registrations for 3rd Generation Partnership Project (3GPP) Multimedia files"">15</a>].
Person & email address to contact for further information:
magnus.westerlund@ericsson.com
ari.lakaniemi@nokia.com
Intended usage: COMMON.
It is expected that many IP-based streaming
applications will use this type.
Change controller:
IETF Audio/Video Transport working group delegated from
the IESG.
<span class="grey">Sjoberg, et al. Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Mapping Media Type Parameters into SDP</span>
The information carried in the media type specification has a
specific mapping to fields in the Session Description Protocol (SDP)
[<a href="#ref-6" title=""SDP: Session Description Protocol"">6</a>], which is commonly used to describe RTP sessions. When SDP is
used to specify an RTP session using this RTP payload format, the
mapping is as follows:
- The media type ("audio") is used in SDP "m=" as the media name.
- The media type (payload format name) is used in SDP "a=rtpmap" as
the encoding name. The RTP clock rate in "a=rtpmap" SHALL be
72000 for AMR-WB+, and the encoding parameter number of channels
MUST either be explicitly set to 1 or 2, or be omitted, implying
the default value of 2.
- The parameters "ptime" and "maxptime" are placed in the SDP
attributes "a=ptime" and "a=maxptime", respectively.
- Any remaining parameters are placed in the SDP "a=fmtp" attribute
by copying them directly from the MIME media type string as a
semicolon-separated list of parameter=value pairs.
<span class="h4"><a class="selflink" id="section-7.2.1" href="#section-7.2.1">7.2.1</a>. Offer-Answer Model Considerations</span>
To achieve good interoperability in an Offer-Answer [<a href="#ref-8" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">8</a>] negotiation
usage, the following considerations should be taken into account:
For negotiable offer/answer usage the following interpretation rules
SHALL be applied:
- The "interleaving" parameter is symmetric, thus requiring that the
answerer must also include it for the answer to an offered payload
type that contains the parameter. However, the buffer space value
is declarative in usage in unicast. For multicast usage, the same
value in the response is required in order to accept the payload
type. For streams declared as sendrecv or recvonly: The receiver
will accept reception of streams using the interleaved mode of the
payload format. The value declares the amount of buffer space the
receiver has available for the sender to utilize. For sendonly
streams, the parameter indicates the desired configuration and
amount of buffer space. An answerer is RECOMMENDED to respond
using the offered value, if capable of using it.
<span class="grey">Sjoberg, et al. Standards Track [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
- The "int-delay" parameter is declarative. For streams declared as
sendrecv or recvonly, the value indicates the maximum initial
delay the receiver will accept in the deinterleaving buffer. For
sendonly streams, the value is the amount of media time the sender
desires to use. The value SHOULD be copied into any response.
- The "channels" parameter is declarative. For "sendonly" streams,
it indicates the desired channel usage, stereo and mono, or mono
only. For "recvonly" and "sendrecv" streams, the parameter
indicates what the receiver accepts to use. As any receiver will
be capable of receiving stereo frame type and perform local mixing
within the AMR-WB+ decoder, there is normally only one reason to
restrict to mono only: to avoid spending bit-rate on data that are
not utilized if the front-end is only capable of mono.
- The "ptime" parameter works as indicated by the offer/answer model
[<a href="#ref-8" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">8</a>]; "maxptime" SHALL be used in the same way.
- To maintain interoperability with AMR-WB in cases where
negotiation is possible, an AMR-WB+ capable end-point that also
implements the AMR-WB payload format [<a href="#ref-7" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">7</a>] is RECOMMENDED to declare
itself capable of AMR-WB as it is a subset of the AMR-WB+ codec.
In declarative usage, like SDP in RTSP [<a href="#ref-16" title=""Real Time Streaming Protocol (RTSP)"">16</a>] or SAP [<a href="#ref-17" title=""Session Announcement Protocol"">17</a>], the
following interpretation of the parameters SHALL be done:
- The "interleaving" parameter, if present, configures the payload
format in that mode, and the value indicates the number of frames
that the deinterleaving buffer is required to support to be able
to handle this session correctly.
- The "int-delay" parameter indicates the initial buffering delay
required to receive this stream correctly.
- The "channels" parameter indicates if the content being
transmitted can contain either both stereo and mono rates, or only
mono.
- All other parameters indicate values that are being used by the
sending entity.
<span class="grey">Sjoberg, et al. Standards Track [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h4"><a class="selflink" id="section-7.2.2" href="#section-7.2.2">7.2.2</a>. Examples</span>
One example of an SDP session description utilizing AMR-WB+ mono and
stereo encoding follows.
m=audio 49120 RTP/AVP 99
a=rtpmap:99 AMR-WB+/72000/2
a=fmtp:99 interleaving=30; int-delay=86400
a=maxptime:100
Note that the payload format (encoding) names are commonly shown in
uppercase. Media subtypes are commonly shown in lowercase. These
names are case-insensitive in both places. Similarly, parameter
names are case-insensitive both in MIME types and in the default
mapping to the SDP a=fmtp attribute.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
The IANA has registered one new MIME subtype (audio/amr-wb+); see
<a href="#section-7">Section 7</a>.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Contributors</span>
Daniel Enstrom has contributed in writing the codec introduction
section. Stefan Bruhn has contributed by writing the ISF recovery
algorithm.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Acknowledgements</span>
The authors would like to thank Redwan Salami and Stefan Bruhn for
their significant contributions made throughout the writing and
reviewing of this document. Dave Singer contributed by reviewing and
suggesting improved language. Anisse Taleb and Ingemar Johansson
contributed by implementing the payload format and thus helped locate
some flaws. We would also like to acknowledge Qiaobing Xie, coauthor
of <a href="./rfc3267">RFC 3267</a>, on which this document is based.
<span class="grey">Sjoberg, et al. Standards Track [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. References</span>
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. Normative References</span>
[<a id="ref-1">1</a>] 3GPP TS 26.290 "Audio codec processing functions; Extended
Adaptive Multi-Rate Wideband (AMR-WB+) codec; Transcoding
functions", version 6.3.0 (2005-06), 3rd Generation Partnership
Project (3GPP).
[<a id="ref-2">2</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-3">3</a>] Schulzrinne, H., Casner, S., Frederick, R., and V. Jacobson,
"RTP: A Transport Protocol for Real-Time Applications", STD 64,
<a href="./rfc3550">RFC 3550</a>, July 2003.
[<a id="ref-4">4</a>] 3GPP TS 26.192 "AMR Wideband speech codec; Comfort Noise
aspects", version 6.0.0 (2004-12), 3rd Generation Partnership
Project (3GPP).
[<a id="ref-5">5</a>] 3GPP TS 26.193 "AMR Wideband speech codec; Source Controlled
Rate operation", version 6.0.0 (2004-12), 3rd Generation
Partnership Project (3GPP).
[<a id="ref-6">6</a>] Handley, M. and V. Jacobson, "SDP: Session Description
Protocol", <a href="./rfc2327">RFC 2327</a>, April 1998.
[<a id="ref-7">7</a>] Sjoberg, J., Westerlund, M., Lakaniemi, A., and Q. Xie, "Real-
Time Transport Protocol (RTP) Payload Format and File Storage
Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate
Wideband (AMR-WB) Audio Codecs", <a href="./rfc3267">RFC 3267</a>, June 2002.
[<a id="ref-8">8</a>] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model with
Session Description Protocol (SDP)", <a href="./rfc3264">RFC 3264</a>, June 2002.
[<a id="ref-9">9</a>] Schulzrinne, H. and S. Casner, "RTP Profile for Audio and Video
Conferences with Minimal Control", STD 65, <a href="./rfc3551">RFC 3551</a>, July 2003.
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. Informative References</span>
[<a id="ref-10">10</a>] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K.
Norrman, "The Secure Real-time Transport Protocol (SRTP)", <a href="./rfc3711">RFC</a>
<a href="./rfc3711">3711</a>, March 2004.
[<a id="ref-11">11</a>] Rosenberg, J. and H. Schulzrinne, "An RTP Payload Format for
Generic Forward Error Correction", <a href="./rfc2733">RFC 2733</a>, December 1999.
<span class="grey">Sjoberg, et al. Standards Track [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
[<a id="ref-12">12</a>] Perkins, C., Kouvelas, I., Hodson, O., Hardman, V., Handley, M.,
Bolot, J., Vega-Garcia, A., and S. Fosse-Parisis, "RTP Payload
for Redundant Audio Data", <a href="./rfc2198">RFC 2198</a>, September 1997.
[<a id="ref-13">13</a>] 3GPP TS 26.233 "Packet Switched Streaming service", version
5.7.0 (2005-03), 3rd Generation Partnership Project (3GPP).
[<a id="ref-14">14</a>] 3GPP TS 26.244 "Transparent end-to-end packet switched streaming
service (PSS); 3GPP file format (3GP)", version 6.4.0 (2005-09),
3rd Generation Partnership Project (3GPP).
[<a id="ref-15">15</a>] Castagno, R. and D. Singer, "MIME Type Registrations for 3rd
Generation Partnership Project (3GPP) Multimedia files", <a href="./rfc3839">RFC</a>
<a href="./rfc3839">3839</a>, July 2004.
[<a id="ref-16">16</a>] Schulzrinne, H., Rao, A., and R. Lanphier, "Real Time Streaming
Protocol (RTSP)", <a href="./rfc2326">RFC 2326</a>, April 1998.
[<a id="ref-17">17</a>] Handley, M., Perkins, C., and E. Whelan, "Session Announcement
Protocol", <a href="./rfc2974">RFC 2974</a>, October 2000.
[<a id="ref-18">18</a>] 3GPP TS 26.140 "Multimedia Messaging Service (MMS); Media
formats and codes", version 6.2.0 (2005-03), 3rd Generation
Partnership Project (3GPP).
[<a id="ref-19">19</a>] 3GPP TS 26.140 "Multimedia Broadcast/Multicast Service (MBMS);
Protocols and codecs", version 6.3.0 (2005-12), 3rd Generation
Partnership Project (3GPP).
Any 3GPP document can be downloaded from the 3GPP webserver,
"<a href="http://www.3gpp.org/">http://www.3gpp.org/</a>", see specifications.
<span class="grey">Sjoberg, et al. Standards Track [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Authors' Addresses
Johan Sjoberg
Ericsson Research
Ericsson AB
SE-164 80 Stockholm
SWEDEN
Phone: +46 8 7190000
EMail: Johan.Sjoberg@ericsson.com
Magnus Westerlund
Ericsson Research
Ericsson AB
SE-164 80 Stockholm
SWEDEN
Phone: +46 8 7190000
EMail: Magnus.Westerlund@ericsson.com
Ari Lakaniemi
Nokia Research Center
P.O. Box 407
FIN-00045 Nokia Group
FINLAND
Phone: +358-71-8008000
EMail: ari.lakaniemi@nokia.com
Stephan Wenger
Nokia Corporation
P.O. Box 100
FIN-33721 Tampere
FINLAND
Phone: +358-50-486-0637
EMail: Stephan.Wenger@nokia.com
<span class="grey">Sjoberg, et al. Standards Track [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc4352">RFC 4352</a> RTP Payload Format for AMR-WB+ January 2006</span>
Full Copyright Statement
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is provided by the IETF
Administrative Support Activity (IASA).
Sjoberg, et al. Standards Track [Page 38]
</pre>
|