Opened 19 years ago

Closed 19 years ago

#1730 closed enhancement (fixed)

Seeking in mythweb streams

Reported by: adrian.wilkins@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version: head
Severity: medium Keywords: stream seek recording
Cc: adrian.wilkins@… Ticket locked: no

Description

xris asked for this info.

To allow seeking in mythweb streams (at least from mplayer), the perl streaming code could support partial HTTP GET.

A few lines from my apache access log where I was seeking around in an AVI file.

It would appear that mplayer is using a partial GET to grab the index from the end of the file ; it may be that it also uses the response to this in order to determine seekability, but there was no such activity on the perl module ; suspect that mplayer is reading the HTTP headers coming back from the first response to determine the capacity for partial GET and that any implementation must also return suitable response in the "Accept-ranges" header field in order for it to be noted as seekable. (ie not accept-ranges=none)

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35

# from the perl streaming module
192.168.11.2 - - [24/Apr/2006:19:53:16 +0100] "GET /mythweb/pl/stream/1009/1144616400 HTTP/1.0" 200 11436032
192.168.11.2 - - [24/Apr/2006:19:53:58 +0100] "GET /mythweb/pl/stream/1014/1145743200 HTTP/1.0" 200 11993088
192.168.11.2 - - [24/Apr/2006:19:54:39 +0100] "GET /mythweb/pl/stream/1009/1145736000 HTTP/1.0" 200 34484224
192.168.11.2 - - [24/Apr/2006:19:57:57 +0100] "GET /mythweb/pl/stream/1000/1145729700 HTTP/1.0" 200 7675904
192.168.11.2 - - [24/Apr/2006:19:58:14 +0100] "GET /mythweb/pl/stream/1009/1145649600 HTTP/1.0" 200 9138176
192.168.11.2 - - [24/Apr/2006:19:58:48 +0100] "GET /mythweb/pl/stream/1009/1145221200 HTTP/1.0" 200 8720384
192.168.11.2 - - [24/Apr/2006:20:02:13 +0100] "GET /mythweb/pl/stream/1001/1145132700 HTTP/1.0" 200 9138176

# plain HTTP serving 
192.168.11.2 - - [24/Apr/2006:20:10:49 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 200 86555648
192.168.11.2 - - [24/Apr/2006:20:10:50 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 2552832
192.168.11.2 - - [24/Apr/2006:20:10:52 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 86553600
192.168.11.2 - - [24/Apr/2006:20:10:56 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 84474880
192.168.11.2 - - [24/Apr/2006:20:11:08 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 82224128
192.168.11.2 - - [24/Apr/2006:20:11:11 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 79047680
192.168.11.2 - - [24/Apr/2006:20:11:13 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 77243392
192.168.11.2 - - [24/Apr/2006:20:11:29 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 76200960
192.168.11.2 - - [24/Apr/2006:20:11:38 +0100] "GET /mythweb/data/video/Enterprise%20Season%201%20(80mb)/Enterprise%20-%201x12%20-%20Silent%20Enemy.avi HTTP/1.0" 206 76403712

Change History (1)

comment:1 Changed 19 years ago by xris

Resolution: fixed
Status: newclosed

(In [9797]) Implement partial file retrieval, closes #1730

Note: See TracTickets for help on using tickets.