After the audio extraction feature is enabled, Alibaba Cloud CDN (CDN) edge nodes extract audio data from a video file and then return only the audio data to clients. This reduces bandwidth and data usage. This topic describes how to enable audio extraction.
Background information
When a client requests a video file, the client sends a request to the nearest CDN
node. The request contains the URL of the video file, for example, http://www.aliyun.com/test.flv?ali_audio_only=1
. Then, the CDN node returns the audio data extracted from the video file to the client.
The client must support the following transmission method: Transfer-Encoding: chunked
.
- The audio extraction feature does not support range requests. Browsers such as Safari initiate a range request when a user plays a video. We recommend that you provide user-developed clients to your users for extracting audio data.
- If you also want to allow users to seek audio or video content, configure the audio or video seeking feature. When a client seeks through a video file, the client reads the metadata of the video file to determine the total length of the video file. The video file can be sought based on the length of the video file. For more information, see Video seeking.
- Audio extraction does not support MP4 files whose box header size is 16 (64 bits). It only supports MP4 files whose box header size is 8.