Origin Server supports the generation of just-in-time HDS or HLS VOD streams from an mp4 file that is copied to the local disk of Origin Server or located on the network.
For a VOD module on Origin Server, the following MP4 JIT transformations are available:
| MP4 location | JIT MP4 URI |
| local disk | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.f4m or http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.m3u8 |
| on network |
< HTTP-Base-URL >/ mp4_relative_path should be mentioned in the stream configuration at Origin. At the client side (player), the requesting URL is http: // origin - server / container _ name / module _ name / filename . mp4.f4m or http: // origin - server / container _ name / module _ name / filename . mp4.m3u8 |
An MP4 file is not directly accessible. If you access an MP4 file directly, a 403 error occurs. You can access MP4 file only through one of the following JIT transformations:
| JIT Transformation available | URI |
| HLS | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.m3u8 |
| HLS Selected Tracks Only | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.m3u8?trackid=id1,id2 |
| HLS Key Frame Only (first video track) | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.m3u8 |
| HLS Key Frame Only (specified video track) | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.m3u8?trackid=Video_Track_ID |
| HLS Key Frame Only from the Selected Tracks | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.m3u8?trackid=id1,id2 |
| HLS Audio Only (first audio track) | http://origin-server/container_name/module_name/audio_only/mp4_relative_path/filename.mp4.m3u8 |
| HLS Audio Only (specified audio track) | http://origin-server/container_name/module_name/audio_only/mp4_relative_path/filename.mp4.m3u8?trackid=Audio_Track_ID |
| HLS Audio only from the Selected Tracks | http://origin-server/container_name/module_name/audio_only/mp4_relative_path/filename.mp4.m3u8?trackid=id1,id2 |
| HDS | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.f4m |
| HDS Selected Tracks Only | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.f4m?trackid=id1,id2 |
| HDS Key Frame Only (first video track) | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.f4m |
| HDS Key Frame Only (specified video track) | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.f4m?trackid=Video_Track_ID |
| HDS Key Frame Only from the Selected Tracks | http://origin-server/container_name/module_name/kfonly/mp4_relative_path/filename.mp4.f4m?trackid=id1,id2 |
| HDS Audio Only (first audio track) | http://origin-server/container_name/module_name/audio_only/mp4_relative_path/filename.mp4.f4m |
| HDS Audio Only (specified audio track) | http://origin-server/container_name/module_name/mp4_relative_path/filename.mp4.f4m?trackid=Audio_Track_ID |
| HDS Audio only from the Selected Tracks | http://origin-server/container_name/module_name/audio_only/mp4_relative_path/filename.mp4.f4m?trackid=id1,id2 |
The following configuration parameters have been added or modified in vod.xml file:
| Name | Description |
|---|---|
| Config/MP4/FragmentDuration | Fragment duration in milliseconds to be used for MP4 JIT Packaging(both HDS and HLS). If not specified, default value of 4000 ms is used. |
| Config/MP4/TargetDuration | HLS Target duration in milliseconds to be used for MP4 JIT HLS Packaging. It's an optional parameter. In case it's not specified, target duration is set as the duration of the longest fragment. For details about target duration, refer HLS Spec at http://tools.ietf.org/html/draft-pantos-http-live-streaming-10. If the longest fragment created is longer than the target duration specified by user, then the longest fragment duration is used as the target duration. |
| Config/MP4/MaxIndexCacheSize | Approximate upper limit of the total size of the cached MP4-Index entries in bytes. This parameter should be set to a value less than the maximum heap size, for example half the heap size. The default value is 512MB. |
| Config/MP4/HTTP/HttpAccessPlugin/Class | Fully qualified class name of the Http Access Plugin to access remote mp4 files |
| Config/MP4/HTTP/HttpAccessPlugin/Init | XML Config for the Http Access Plugin must be specified under this element. |
| Config/Auth/SecurityToken/Key | The AES-128 bit key to be used for decrypting the PUT/POST token. This value shall be a string of 32 hexadecimal digits. |
| Config/Auth/SecurityToken/Timeout | Optional 'Timeout' for Token values in seconds. Default value is 600 seconds (10 minutes). |
| Config/Auth/DeleteSecurityToken/Key | The AES-128 bit key to be used for decrypting the DELETE token. This value shall be a string of 32 hexadecimal digits. |
| Config/Auth/DeleteSecurityToken/Timeout | Optional 'Timeout' for DELETE Token values in seconds. Default value is 600 seconds (10 minutes). |
| Config/CueMode | The format of cue info to be added in the JIT generated f4m/m3u8. The allowed values for this config option are:PT_1_0, DPISimple, DPIScte35. The default value is DPIScte35 |