Mercurial > hg > nginx-site
changeset 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 | 8a8cab5a131b |
children | eeb690d4212b |
files | xml/en/docs/http/ngx_http_mp4_module.xml xml/ru/docs/http/ngx_http_mp4_module.xml |
diffstat | 2 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_mp4_module.xml +++ b/xml/en/docs/http/ngx_http_mp4_module.xml @@ -45,12 +45,14 @@ whole file. <para> To start playback, a player first needs to read metadata. This is done by sending a special request with the -<literal>start=0</literal> -argument. Much of encoding software will insert the metadata at -the end of the file. This is bad for pseudo-streaming: +<literal>start=0</literal> argument. +Much of encoding software will insert the metadata at +the end of the file. +This is bad for pseudo-streaming: the metadata should be located at the beginning of the file, or else the entire file will have to be downloaded to -start playing. If a file is well-formed (with metadata at the +start playing. +If a file is well-formed (with metadata at the beginning of a file), nginx just sends back the file contents. Otherwise, it has to read the file and prepare a new stream so that the metadata comes before the media data.
--- a/xml/ru/docs/http/ngx_http_mp4_module.xml +++ b/xml/ru/docs/http/ngx_http_mp4_module.xml @@ -49,11 +49,14 @@ http://example.com/elephants_dream.mp4?s Многие кодирующие программы добавляют метаданные в конец файла. Для псевдо-стриминга это плохо: метаданные должны быть расположены в начале файла, иначе потребуется загрузить файл целиком, прежде -чем начать воспроизведение. Если файл отформатирован хорошо, -с метаданными в начале файла, nginx просто посылает в ответ -содержимое файла. В противном случае, он вынужден будет прочитать +чем начать воспроизведение. +Если файл отформатирован хорошо, с метаданными в начале файла, +nginx просто посылает в ответ +содержимое файла. +В противном случае, он вынужден будет прочитать файл и подготовить новый поток, в котором метаданные предшествуют -медийным данным. Это требует дополнительного процессорного +медийным данным. +Это требует дополнительного процессорного времени, памяти и дискового ввода/вывода, поэтому лучше <link url="http://flowplayer.org/plugins/streaming/pseudostreaming.html#prepare">