跳转至

f4fhds: NGINX 模块用于 Adobe f4f 格式

安装

您可以在任何基于 RHEL 的发行版中安装此模块,包括但不限于:

  • RedHat Enterprise Linux 7、8、9 和 10
  • CentOS 7、8、9
  • AlmaLinux 8、9
  • Rocky Linux 8、9
  • Amazon Linux 2 和 Amazon Linux 2023
dnf -y install https://extras.getpagespeed.com/release-latest.rpm
dnf -y install nginx-module-f4fhds
yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install nginx-module-f4fhds

通过在 /etc/nginx/nginx.conf 的顶部添加以下内容来启用该模块:

load_module modules/ngx_http_f4fhds_module.so;

本文档描述了 nginx-module-f4fhds v0.0.1,于 2020 年 10 月 24 日发布。


Nginx 模块用于 Adobe f4f 格式。

此模块实现了对“/videoSeg1-Frag1”形式的 HTTP 动态流请求的处理——使用 videoSeg1.f4x 索引文件从 videoSeg1.f4f 文件中提取所需的片段。该模块是 Adobe 的 f4f 模块(HTTP Origin Module)在 Apache 中的替代方案。

它是商业 ngx_http_f4f_module 模块的开源等效版本。

概述

location /video/ {
    f4fhds;
    ...
}

限制

  • 假设所有文件都包含一个单一(第一个)片段,例如 Seg1
  • 文件应位于本地非网络文件系统中,因为使用了 mmap(2)

GitHub

您可以在 nginx-module-f4fhds 的 GitHub 仓库 中找到此模块的其他配置提示和文档。