annotate xml/ru/docs/http/ngx_http_mp4_module.xml @ 1096:f34be6b26447

Corrected text formatting for ngx_http_mp4_module.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 04 Mar 2014 13:02:21 +0000
parents 95c3c3bbf1ce
children 1fcf8c840dbe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
1 <?xml version="1.0"?>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2
580
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 365
diff changeset
3 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 365
diff changeset
4 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 365
diff changeset
5 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 365
diff changeset
6
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9 <module name="Модуль ngx_http_mp4_module"
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 link="/ru/docs/http/ngx_http_mp4_module.html"
589
764fbac1b8b4 Added document revision.
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
11 lang="ru"
764fbac1b8b4 Added document revision.
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
12 rev="1">
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13
110
40eec261c2a6 Added proper support for anonymous sections, notably for the summary.
Ruslan Ermilov <ru@nginx.com>
parents: 102
diff changeset
14 <section id="summary">
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 <para>
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
17 Модуль <literal>ngx_http_mp4_module</literal> обеспечивает серверную поддержку
365
b082f02cb7a3 Style fixed.
Ruslan Ermilov <ru@nginx.com>
parents: 271
diff changeset
18 псевдо-стриминга для файлов в формате H.264/AAC.
b082f02cb7a3 Style fixed.
Ruslan Ermilov <ru@nginx.com>
parents: 271
diff changeset
19 Такие файлы обычно имеют расширения
148
682163f2b298 Unified article/path and module/pathname into a single "path".
Ruslan Ermilov <ru@nginx.com>
parents: 110
diff changeset
20 <path>.mp4</path>, <path>.m4v</path> и <path>.m4a</path>.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 Псевдо-стриминг работает в паре с совместимым Flash-плеером.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 Плеер посылает серверу HTTP-запрос с указанием точки времени старта
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 в аргументе
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
27 <literal>start</literal>
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 строки запроса (время задаётся в секундах), а сервер в
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29 ответ посылает поток, у которого начальная позиция соответствует
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30 запрошенному времени, например:
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32 http://example.com/elephants_dream.mp4?start=238.88
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33 </example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
34 Это позволяет в любой момент времени выполнить произвольное
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35 позиционирование, а также начать воспроизведение с середины
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 временной шкалы.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40 В форматах, основанных на H.264, метаданные, необходимые для поддержки
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41 позиционирования, хранятся в так называемом “moov атоме.”
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
42 Это часть файла, которая содержит индексную информацию для всего файла.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46 До начала воспроизведения плееру необходимо прочитать метаданные.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47 Для этого он отсылает специальный запрос с аргументом
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
48 <literal>start=0</literal>.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 Многие кодирующие программы добавляют метаданные в конец файла.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50 Для псевдо-стриминга это плохо: метаданные должны быть расположены
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51 в начале файла, иначе потребуется загрузить файл целиком, прежде
1096
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
52 чем начать воспроизведение.
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
53 Если файл отформатирован хорошо, с метаданными в начале файла,
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
54 nginx просто посылает в ответ
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
55 содержимое файла.
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
56 В противном случае, он вынужден будет прочитать
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 файл и подготовить новый поток, в котором метаданные предшествуют
1096
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
58 медийным данным.
f34be6b26447 Corrected text formatting for ngx_http_mp4_module.
Yaroslav Zhuravlev <yar@nginx.com>
parents: 966
diff changeset
59 Это требует дополнительного процессорного
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60 времени, памяти и дискового ввода/вывода, поэтому лучше
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 <link
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62 url="http://flowplayer.org/plugins/streaming/pseudostreaming.html#prepare">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 подготовить исходный файл для псевдо-стриминга</link>,
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64 нежели чем заставлять nginx делать это для каждого запроса.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 Для запроса с ненулевым аргументом
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
69 <literal>start</literal>
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 nginx считывает из файла метаданные, готовит поток с запрошенного
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
71 смещения, и отправляет его клиенту.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
72 Это тоже требует дополнительных ресурсов, как указано выше.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
73 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
74
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
76 Если запрос, обрабатываемый этим модулем, не содержит аргумента
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
77 <literal>start</literal>,
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 дополнительные ресурсы не тратятся, а файл отсылается просто как
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
79 статический ресурс.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
80 Некоторые плееры также поддерживают запросы с указанием диапазона
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
81 запрашиваемых байт (byte-range requests), для них вообще не
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
82 требуется этот модуль.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
83 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
84
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
85 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
86 По умолчанию этот модуль не собирается, его сборку необходимо
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
87 разрешить с помощью конфигурационного параметра
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
88 <literal>--with-http_mp4_module</literal>.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
89 <note>
659
77a3314c74a7 Avoid the uses of second person.
Ruslan Ermilov <ru@nginx.com>
parents: 589
diff changeset
90 Если ранее использовался сторонний модуль mp4, следует его отключить.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
91 </note>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
92 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
93
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
94 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
95 Схожая поддержка псевдо-стриминга для FLV-файлов обеспечивается модулем
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
96 <link doc="ngx_http_flv_module.xml">ngx_http_flv_module</link>.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
97 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
98
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
99 </section>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
100
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
101
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
102 <section id="example" name="Пример конфигурации">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
103
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
104 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
105 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
106 location /video/ {
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
107 mp4;
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
108 mp4_buffer_size 1m;
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
109 mp4_max_buffer_size 5m;
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
110 }
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
111 </example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
112 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
113
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
114 </section>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
115
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
116
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
117 <section id="directives" name="Директивы">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
118
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
119 <directive name="mp4">
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 87
diff changeset
120 <syntax/>
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
121 <default/>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
122 <context>location</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
123
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
124 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
125 Включает в содержащем location обработку этим модулем.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
126 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
127
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
128 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
129
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
130
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
131 <directive name="mp4_buffer_size">
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
132 <syntax><value>размер</value></syntax>
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 87
diff changeset
133 <default>512K</default>
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
134 <context>http</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
135 <context>server</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
136 <context>location</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
137
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
138 <para>
966
95c3c3bbf1ce Text review.
Egor Nikitin <yegor.nikitin@gmail.com>
parents: 659
diff changeset
139 Задаёт начальный размер буфера памяти, используемого при обработке MP4-файлов.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
140 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
141
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
142 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
143
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
144
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
145 <directive name="mp4_max_buffer_size">
271
4c6d2c614d2c Cleaned up XML tag mess:
Ruslan Ermilov <ru@nginx.com>
parents: 148
diff changeset
146 <syntax><value>размер</value></syntax>
102
c76a257f3fd4 The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents: 87
diff changeset
147 <default>10M</default>
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
148 <context>http</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
149 <context>server</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
150 <context>location</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
151
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
152 <para>
966
95c3c3bbf1ce Text review.
Egor Nikitin <yegor.nikitin@gmail.com>
parents: 659
diff changeset
153 В ходе обработки метаданных может понадобиться буфер большего размера.
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
154 Его размер не может превышать указанного,
966
95c3c3bbf1ce Text review.
Egor Nikitin <yegor.nikitin@gmail.com>
parents: 659
diff changeset
155 иначе nginx вернёт серверную ошибку
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
156 <http-status code="500" text="Internal Server Error"/>
966
95c3c3bbf1ce Text review.
Egor Nikitin <yegor.nikitin@gmail.com>
parents: 659
diff changeset
157 и запишет в лог следующее сообщение:
87
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
158 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
159 "/some/movie/file.mp4" mp4 moov atom is too large:
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
160 12583268, you may want to increase mp4_max_buffer_size
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
161 </example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
162 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
163
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
164 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
165
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
166 </section>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
167
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
168 </module>