Choose Pull or Push
There are two types of CDN Video services - CDN Video (Pull) and CDN Video Push. Please refer to Overview of CDN services for more details.
Create a CDN Video (Pull) service
- Go to Services → New Service → Video.
- Fill in your desired CDN Service Domain. Fill in any valid domain name, please refer here for more details.
- Fill in domain name of your website (Origin Domain) as in the picture below.
- Click on the Create Service button and you will redirected to a CDN integration how-to page containing all necessary information (including optional DNS instructions) required for successful integration of your CDN service into your website.
- That's all.
Create a CDN Video Push service
- You must have at least one storage. If you don't have any storage then please refer to Creating a CDN storage for more details.
- Go to Services → New Service → Video Push.
- Fill in your desired CDN Service Domain. Fill in any valid domain name, please refer here for more details.
- Select Origin Storage as in the picture below.
- Click on the Create Service button and you will redirected to a CDN integration how-to page containing all necessary information (including optional DNS instructions) required for successful integration of your CDN service into your website.
- That's all.
Requirements on video files
Format and codecs
Please note that your videos must be in MP4 or FLV container format and encoded with H.264 video codec and AAC or MP3 audio codec.
Moov atom
The moov atom also referred as movie atom defines timescale, duration and other characteristics of the video. Please note that your videos must contain the moov atom at the beginning of the file. To view the atom tree you can use the AtomicParsley tool with --test switch.
Example - moov atom at the beginning
Atom moov @ 24 of size: 181613, ends @ 181637
Example - moov atom at the end
Atom moov @ 202493816 of size: 3171066, ends @ 205664882
Notes
- CDN Video service transcodes origin video file to 5 streaming protocols to provide compatibility with all devices, please refer to Supported CDN streaming protocols and formats for more details.
- Please note that except query string variables defined by Token Authentication CDN Video service does not support query string variables, e.g. http://12345.r.cdnsun.net/12345/_definst_/mp4:12345/myvideo.mp4/playlist.m3u8?myvariable=value.
- CDN Video service does not transcode a single origin video file to a muti bitrate CDN stream. CDN stream is published in the same bitrate as the origin video file. Read how to simultaneously publish more origin video files and create a multi bitrate CDN stream.
What next?
Read about the following topics.