A little supplement to the audio packets in rtmp or FLV protocols

Source: Internet
Author: User

If we want to encapsulate Speex encoding into rtmp or FLV, we may encounter problems with how to populate Audiotagheader, Speex encoding supports 8k,16k,32k sample rate, but only 16k in rtmp or FLV protocol, At this point the sampling rate needs to be treated as 11.025k, that is, the packet of this byte is 0xb6

For the AAC encoding in RTMP or FLV packets, AAC sampling rate may be 48k, this time to be as a 44.1k packet, its audiotagheader the first byte of 0xAF

The support for AAC and Speex in Flash Player is 9,0,115,0 and 10, respectively.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.