Welcome! Log In Create A New Profile

Advanced

Re: mp4 module

September 29, 2011 09:22AM
On Wed, Sep 28, 2011 at 05:46:40AM -0400, arty777 wrote:
> Пришлось откатиться обратно .... а так
> хочется нативный модуль под высокой
> нагрузкой поюзать :)
>
> в общем бы хотелось получить
> адекватную реакцию на
> http://fs1.uakino.net/video/10607.mp4?start=3774.2915999998888888888888888888

А какие плееры настолько неадекватны ?
Прилагаемый патч увеличивает число цифр после запятой до 4.


--
Игорь Сысоев
http://sysoev.ru
Index: src/http/modules/ngx_http_mp4_module.c
===================================================================
--- src/http/modules/ngx_http_mp4_module.c (revision 4155)
+++ src/http/modules/ngx_http_mp4_module.c (working copy)
@@ -499,7 +499,7 @@

if (ngx_http_arg(r, (u_char *) "start", 5, &value) == NGX_OK) {

- start = ngx_atofp(value.data, value.len, 3);
+ start = ngx_atofp(value.data, value.len, 4);

if (start != NGX_ERROR) {
r->allow_ranges = 0;
@@ -1168,7 +1168,7 @@
"mvhd timescale:%uD, duration:%uL, time:%.3fs",
timescale, duration, (double) duration / timescale);

- duration -= (uint64_t) mp4->start * timescale / 1000;
+ duration -= (uint64_t) mp4->start * timescale / 10000;

ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"mvhd new duration:%uL, time:%.3fs",
@@ -1341,7 +1341,7 @@
"tkhd duration:%uL, time:%.3fs",
duration, (double) duration / mp4->timescale);

- duration -= (uint64_t) mp4->start * mp4->timescale / 1000;
+ duration -= (uint64_t) mp4->start * mp4->timescale / 10000;

ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"tkhd new duration:%uL, time:%.3fs",
@@ -1472,7 +1472,7 @@
"mdhd timescale:%uD, duration:%uL, time:%.3fs",
timescale, duration, (double) duration / timescale);

- duration -= (uint64_t) mp4->start * timescale / 1000;
+ duration -= (uint64_t) mp4->start * timescale / 10000;

ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"mdhd new duration:%uL, time:%.3fs",
@@ -1875,7 +1875,7 @@
}

entries = trak->time_to_sample_entries;
- start_time = mp4->start * trak->timescale / 1000;
+ start_time = mp4->start * trak->timescale / 10000;

ngx_log_debug1(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"time-to-sample start_time:%uL", start_time);
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

mp4 module

Igor Sysoev September 09, 2011 07:44AM

Re: mp4 module

Андрей Василишин September 09, 2011 09:20AM

Re: mp4 module

Igor Sysoev September 09, 2011 09:28AM

Re: mp4 module

Igor Sysoev September 12, 2011 01:28AM

Re: mp4 module

Igor Sysoev September 12, 2011 08:26AM

Re: mp4 module

Андрей Василишин September 12, 2011 08:36AM

Re: mp4 module

Igor Sysoev September 12, 2011 08:42AM

Re: mp4 module

Igor Sysoev September 12, 2011 09:04AM

Re: mp4 module

Андрей Василишин September 12, 2011 08:40AM

Re: mp4 module

Igor Sysoev September 14, 2011 02:54AM

Re: mp4 module

Андрей Василишин September 14, 2011 01:06PM

Re: mp4 module

gus September 20, 2011 09:09PM

Re: mp4 module

Igor Sysoev September 20, 2011 11:36PM

Re: mp4 module

Rush September 21, 2011 01:10AM

Re[2]: mp4 module

Михаил Монашёв September 21, 2011 05:12AM

Re: mp4 module

gus September 21, 2011 03:51AM

Re: mp4 module

gus September 21, 2011 04:17AM

Re: mp4 module

Igor Sysoev September 21, 2011 03:58AM

Re: mp4 module

fedechka September 21, 2011 04:20AM

Re: mp4 module

Igor Sysoev September 21, 2011 05:26AM

Re: mp4 module

Igor Sysoev September 21, 2011 05:28AM

Re: mp4 module

fedechka September 21, 2011 05:43AM

Re: mp4 module

Андрей Василишин September 21, 2011 06:02AM

Re: mp4 module

fedechka September 21, 2011 06:09AM

Re: mp4 module

fedechka September 21, 2011 06:32AM

Re: mp4 module

Андрей Василишин September 21, 2011 07:12AM

Re: mp4 module

fedechka September 21, 2011 07:16AM

Re: mp4 module

Андрей Василишин September 21, 2011 07:28AM

Re: mp4 module

fedechka September 21, 2011 07:54AM

Re: mp4 module

Андрей Василишин September 21, 2011 08:04AM

Re: mp4 module

gus September 21, 2011 03:57PM

Re: mp4 module

arty777 September 28, 2011 05:06AM

Re: mp4 module

arty777 September 28, 2011 05:31AM

Re: mp4 module

arty777 September 28, 2011 05:46AM

Re: mp4 module

floydback September 28, 2011 10:24AM

Re: mp4 module

arty777 September 28, 2011 10:39AM

Re: mp4 module

Igor Sysoev September 29, 2011 09:22AM

Re: mp4 module

arty777 September 29, 2011 10:20AM

Re: mp4 module

Igor Sysoev September 29, 2011 11:30AM

Re: mp4 module

arty777 September 29, 2011 01:04PM

Re: mp4 module

arty777 September 29, 2011 01:20PM

Re: mp4 module

Igor Sysoev September 29, 2011 01:26PM

Re: mp4 module

arty777 September 29, 2011 01:31PM

Re: mp4 module

arty777 September 29, 2011 01:41PM

Re: mp4 module

arty777 September 29, 2011 01:44PM

Re: mp4 module

arty777 September 29, 2011 02:01PM

Re: mp4 module

arty777 September 29, 2011 02:18PM

Re: mp4 module

arty777 September 29, 2011 02:18PM

Re: mp4 module

arty777 September 29, 2011 02:23PM

Re: mp4 module

arty777 September 29, 2011 02:46PM

Re: mp4 module

arty777 September 29, 2011 03:51PM

Re: mp4 module

arty777 September 29, 2011 03:53PM

Re: mp4 module

Igor Sysoev September 29, 2011 01:36PM

Re: mp4 module

Igor Sysoev September 29, 2011 01:46PM

Re: mp4 module

Igor Sysoev September 29, 2011 01:48PM

Re: mp4 module

Igor Sysoev September 29, 2011 02:06PM

Re: mp4 module

Oleksandr V. Typlyns'kyi September 29, 2011 02:14PM

Re: mp4 module

Igor Sysoev September 29, 2011 02:22PM

Re: mp4 module

Rush September 29, 2011 02:40PM

Re: mp4 module

Igor Sysoev September 29, 2011 02:56PM

Re: mp4 module

arty777 September 30, 2011 01:35PM

Re: mp4 module

Igor Sysoev September 29, 2011 09:40AM

Re: mp4 module

floydback September 29, 2011 05:01PM

Re: mp4 module

arty777 October 01, 2011 03:31PM

Re: mp4 module

arty777 October 02, 2011 03:42AM

Re: mp4 module

arty777 October 02, 2011 01:21PM

Re: mp4 module

MARS October 09, 2011 08:39AM

Re: mp4 module

arty777 October 09, 2011 12:25PM

Re: mp4 module

MARS October 09, 2011 01:04PM

Re: mp4 module

Igor Sysoev October 09, 2011 12:48PM

Re: mp4 module

MARS October 09, 2011 01:52PM

Re: mp4 module

Igor Sysoev October 09, 2011 02:22PM

Re: mp4 module Attachments

Igor Sysoev October 09, 2011 02:42PM

Re: mp4 module

MARS October 09, 2011 03:32PM

Re: mp4 module

arty777 October 10, 2011 02:29AM

Re: mp4 module

Igor Sysoev October 10, 2011 02:50AM

Re: mp4 module

Elifan April 16, 2012 10:08AM

Re: mp4 module

Gena Makhomed April 16, 2012 11:22AM

Re: mp4 module

Elifan April 16, 2012 02:28PM

Re: mp4 module

Gena Makhomed April 18, 2012 04:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready