
unifiedstreaming/origin!logo
Unified Origin 提供一站式实时打包解决方案,支持 MPEG-DASH、Apple (HLS)、Adobe (HDS) 和 Microsoft (MSS) 协议。附加功能包括内容保护、电视重启、时移、回看电视、字幕以及多语言和音轨支持。
更多文档请访问:<[***]>
该镜像可通过环境变量进行配置,开箱即用。以下是支持的环境变量:
| 变量 | 用途 | 是否必填 |
|---|---|---|
| UspLicenseKey | 许可密钥。如需评估软件,可在 <[***]> 创建账户 | 是 |
| REMOTE_STORAGE_URL | 设置 IsmProxyPass 指向该 URL,路径为 <http://<容器>/<REMOTE_PATH>> | 否 |
| REMOTE_PATH | 远程存储路径,默认值为 "remote" | 否 |
| S3_SECRET_KEY | 使用 S3 远程存储时,设置认证所需的密钥 | 否 |
| S3_ACCESS_KEY | 使用 S3 远程存储时,设置认证所需的访问密钥 | 否 |
| S3_REGION | 使用 S3 远程存储且启用 v4 认证时,设置区域 | 否 |
| LOG_LEVEL | 设置 Apache 错误日志级别 | 否 |
| LOG_FORMAT | 设置自定义 Apache 日志格式 | 否 |
| REST_API_PORT | 启用发布点管理 REST API,并指定端口 | 否 |
可通过挂载 Docker 卷添加额外的 Apache 配置文件,示例如下:
bashdocker run \ -e UspLicenseKey=<许可密钥> \ -v foo.conf:/etc/apache2/conf.d/foo.conf \ -p 80:80 \ unifiedstreaming/origin:latest
完整教程可参考:<[***]>
注意:旧版本镜像(1.11.13 之前)通过默认清单编辑管道的访问方式不同,现在需要在路径中包含清单类型来引用。
该镜像包含清单编辑功能,提供一组默认使用场景,详见 官方文档。
可通过在 /.mpd 或 /.m3u8 URL 中添加查询参数指定管道名称,生成“编辑后的”清单。
对于 /.mpd URL,可用管道如下:
?python_pipeline_config=mpd/accessibility_add?python_pipeline_config=mpd/adaptation_sets_order?python_pipeline_config=mpd/adaptation_sets_removal?python_pipeline_config=mpd/adaptation_sets_representations_order?python_pipeline_config=mpd/adaptation_sets_switching?python_pipeline_config=mpd/audiochannelconfiguration_add?python_pipeline_config=mpd/essential_property_add?python_pipeline_config=mpd/essential_property_remove?python_pipeline_config=mpd/eventstream_value_add?python_pipeline_config=mpd/hard_of_hearing_add?python_pipeline_config=mpd/label_add?python_pipeline_config=mpd/label_remove?python_pipeline_config=mpd/low_latency?python_pipeline_config=mpd/low_latency_with_essential_property?python_pipeline_config=mpd/multiple_isms.yaml?python_pipeline_config=mpd/representations_order?python_pipeline_config=mpd/representations_remove?python_pipeline_config=mpd/role_add?python_pipeline_config=mpd/supplemental_property_add?python_pipeline_config=mpd/supplemental_property_remove?python_pipeline_config=mpd/utc_add?python_pipeline_config=mpd/utc_change?python_pipeline_config=mpd/utc_remove对于 /.m3u8 URL,可用管道如下:
?python_pipeline_config=m3u8/default_audio_language?python_pipeline_config=m3u8/default_subs_language?python_pipeline_config=m3u8/hard_of_hearing如需创建自定义管道,建议编辑本地 my_use_case.yaml 文件,并通过 Docker 卷挂载到容器中。示例命令:
bashdocker run \ -e UspLicenseKey=<许可密钥> \ -e REMOTE_PATH=usp-s3-storage \ -e REMOTE_STORAGE_URL=[***] \ -v "$(pwd)"/my_use_case.yaml:/etc/manifest-edit/my_use_case.yaml \ -p 1080:80 \ --name unified-origin-manifest-edit \ unifiedstreaming/origin:latest
编辑本地 my_use_case.yaml 文件后,可通过以下查询参数调用自定义管道:
?python_pipeline_config=my_use_casemanifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务