# HG changeset patch # User Yaroslav Zhuravlev # Date 1636980767 0 # Node ID 17ed193949533917395cb90a3edf684206523cb9 # Parent bcdb13e1e8c6b1a025469cee406360e5bf92f682 Documented the mp4_start_key_frame directive. diff -r bcdb13e1e8c6 -r 17ed19394953 xml/en/docs/http/ngx_http_mp4_module.xml --- a/xml/en/docs/http/ngx_http_mp4_module.xml Fri Nov 12 20:16:05 2021 +0000 +++ b/xml/en/docs/http/ngx_http_mp4_module.xml Mon Nov 15 12:52:47 2021 +0000 @@ -9,7 +9,7 @@ + rev="9">
@@ -82,6 +82,18 @@ This has the same overhead as described above. + +If the start argument points to +a non-key video frame, +the beginning of such video will be broken. +To fix this issue, the video +can be prepended with +the key frame before start point +and with all intermediate frames between them. +These frames will be hidden from playback +using an edit list (1.21.4). + + If a matching request does not include the start and end @@ -231,6 +243,26 @@ + + +on | off +off +http +server +location +1.21.4 + + +Forces output video to always start with a key video frame. +If the start argument does not point to a key frame, +initial frames are hidden using an mp4 edit list. +Edit lists are supported by major players and browsers such as +Chrome, Safari, QuickTime and ffmpeg, +partially supported by Firefox. + + + +
diff -r bcdb13e1e8c6 -r 17ed19394953 xml/ru/docs/http/ngx_http_mp4_module.xml --- a/xml/ru/docs/http/ngx_http_mp4_module.xml Fri Nov 12 20:16:05 2021 +0000 +++ b/xml/ru/docs/http/ngx_http_mp4_module.xml Mon Nov 15 12:52:47 2021 +0000 @@ -9,7 +9,7 @@ + rev="9">
@@ -82,6 +82,18 @@ Это тоже требует дополнительных ресурсов, как указано выше. + +Если аргумент start указывает на +видеокадр, не являющийся ключевым, +то начало такого видео может воспроизводиться с ошибками. +В этом случае к запрашиваемому видео +могут быть добавлены +ближайший к точке start ключевой кадр +и все промежуточные кадры между ними. +При воспроизведении эти кадры будут скрыты +при помощи edit-листа (1.21.4). + + Если запрос, обрабатываемый этим модулем, не содержит аргументов start и end, @@ -228,6 +240,26 @@ + + +on | off +off +http +server +location +1.21.4 + + +Включает режим, в котором видео всегда начинается с ключевого видеокадра. +Если аргумент start не указывает на ключевой кадр, +то первоначальные кадры будут скрыты при помощи mp4 edit-листа. +Edit-листы поддерживаются большинством плееров и браузеров +включая Chrome, Safari, QuickTime и ffmpeg, +частично поддерживаются в Firefox. + + + +