annotate xml/ru/docs/http/ngx_http_mp4_module.xml @ 87:f5539fb36bbb

Russian translation of ngx_http_mp4_module.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 14 Oct 2011 08:45:37 +0000
parents
children c76a257f3fd4
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
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
4
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
5 <module name="Модуль ngx_http_mp4_module"
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 link="/ru/docs/http/ngx_http_mp4_module.html"
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7 lang="ru">
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 <section name="Обзор">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12 Модуль <code>ngx_http_mp4_module</code> обеспечивает серверную поддержку
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 псевдо-стриминга для файлов в формате H.264/AAC. Такие файлы обычно
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14 имеют расширения
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 <pathname>.mp4</pathname>, <pathname>.m4v</pathname>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 и <pathname>.m4a</pathname>.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
19 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20 Псевдо-стриминг работает в паре с совместимым Flash-плеером.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 Плеер посылает серверу HTTP-запрос с указанием точки времени старта
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 <parameter>start</parameter>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 строки запроса (время задаётся в секундах), а сервер в
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 ответ посылает поток, у которого начальная позиция соответствует
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 запрошенному времени, например:
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 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
29 </example>
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 позиционирование, а также начать воспроизведение с середины
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32 временной шкалы.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33 </para>
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 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 В форматах, основанных на H.264, метаданные, необходимые для поддержки
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37 позиционирования, хранятся в так называемом “moov атоме.”
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
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41 <para>
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 Для этого он отсылает специальный запрос с аргументом
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 <parameter>start=0</parameter>.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 Многие кодирующие программы добавляют метаданные в конец файла.
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 в начале файла, иначе потребуется загрузить файл целиком, прежде
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48 чем начать воспроизведение. Если файл отформатирован хорошо,
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 с метаданными в начале файла, nginx просто посылает в ответ
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 файл и подготовить новый поток, в котором метаданные предшествуют
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 медийным данным. Это требует дополнительного процессорного
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53 времени, памяти и дискового ввода/вывода, поэтому лучше
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 <link
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55 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
56 подготовить исходный файл для псевдо-стриминга</link>,
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 нежели чем заставлять nginx делать это для каждого запроса.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 Для запроса с ненулевым аргументом
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62 <parameter>start</parameter>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 nginx считывает из файла метаданные, готовит поток с запрошенного
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64 смещения, и отправляет его клиенту.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 Это тоже требует дополнительных ресурсов, как указано выше.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69 Если запрос, обрабатываемый этим модулем, не содержит аргумента
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 <parameter>start</parameter>,
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 Некоторые плееры также поддерживают запросы с указанием диапазона
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
74 запрашиваемых байт (byte-range requests), для них вообще не
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 требуется этот модуль.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
76 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
77
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 <para>
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 <code>--with-http_mp4_module</code>.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
82 <note>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
83 Если вы ранее использовали сторонний модуль mp4, не забудьте его отключить.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
84 </note>
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 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
88 Схожая поддержка псевдо-стриминга для FLV-файлов обеспечивается модулем
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
89 <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
90 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
91
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
92 </section>
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
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
95 <section id="example" name="Пример конфигурации">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
96
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 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
99 location /video/ {
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
100 mp4;
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
101 mp4_buffer_size 1m;
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
102 mp4_max_buffer_size 5m;
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 </example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
105 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
106
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
107 </section>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
108
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
109
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
110 <section id="directives" name="Директивы">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
111
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
112 <directive name="mp4">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
113 <syntax>mp4</syntax>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
114 <default/>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
115 <context>location</context>
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 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
118 Включает в содержащем location обработку этим модулем.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
119 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
120
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
121 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
122
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 <directive name="mp4_buffer_size">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
125 <syntax>mp4_buffer_size <argument>размер</argument></syntax>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
126 <default>mp4_buffer_size 512K</default>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
127 <context>http</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
128 <context>server</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
129 <context>location</context>
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 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
132 Задаёт начальный размер буфера памяти, используемого при обработке MP4 файлов.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
133 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
134
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
135 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
136
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 <directive name="mp4_max_buffer_size">
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
139 <syntax>mp4_max_buffer_size <argument>размер</argument></syntax>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
140 <default>mp4_max_buffer_size 10M</default>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
141 <context>http</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
142 <context>server</context>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
143 <context>location</context>
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 <para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
146 В процессе обработки метаданных может понадобиться буфер большего размера.
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
147 Его размер не может превышать указанного,
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
148 иначе nginx возвращает серверную ошибку
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
149 <http-status code="500" text="Internal Server Error"/>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
150 и протоколирует следующее:
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
151 <example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
152 "/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
153 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
154 </example>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
155 </para>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
156
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
157 </directive>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
158
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
159 </section>
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
160
f5539fb36bbb Russian translation of ngx_http_mp4_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
161 </module>