Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?
Date: Sun, 13 Nov 2011 22:59:18
Message-Id: 201111132258.06753.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ? by Mark Knecht
1 On Sunday 13 Nov 2011 19:45:38 Mark Knecht wrote:
2
3 > Wow! That certainly qualifies for the simple part! The trick seemed to
4 > be to cd to the video directory before running python, but once I did
5 > that I am able to get video.
6 >
7 > One 'problem' if you will is the video isn't streaming but rather the
8 > whole file is being copied and then xine is being run. That leads to
9 > no disk space over time.
10
11 It is not streaming, because you are not running a streaming server and in all
12 likelihood the video file is not in 'streaming' media format. Therefore when
13 you click on the link the ipod downloads a complete file.
14
15
16 > Is this a function of Firefox being set up to use xine as opposed to
17 > some other app or plugin? I'd really like to understand a little more
18 > about getting it to stream instead of copy, if possible.
19
20 You can have a true streaming server (MMS, RTP, RTSP) or you can have a
21 webserver (HTTP) which serves streaming media format files.
22
23 Have you tried setting up vlc as a streaming server on your PC? It will also
24 transcode files into streaming media.
25
26 Alternatively, use a device with a large enough storage on it to be able to
27 save the whole of the downloaded file.
28
29
30 > The other thing I just tested was accessing the server using my wife's
31 > iPod Touch. It can browse to the video files but then Quicktime
32 > doesn't play them. Back in the python terminal I see a lot of message
33 > like this:
34 >
35 > ----------------------------------------
36 > 192.168.1.243 - - [13/Nov/2011 11:44:26] "GET /H/Howard%27s%20End.m4v
37 > HTTP/1.1" 200 -
38 > ----------------------------------------
39 > Exception happened during processing of request from ('192.168.1.243',
40 > 49450) Traceback (most recent call last):
41 > File "/usr/lib64/python2.7/SocketServer.py", line 284, in
42 > _handle_request_noblock
43 > self.process_request(request, client_address)
44 > File "/usr/lib64/python2.7/SocketServer.py", line 310, in process_request
45 > self.finish_request(request, client_address)
46 > File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request
47 > self.RequestHandlerClass(request, client_address, self)
48 > File "/usr/lib64/python2.7/SocketServer.py", line 641, in __init__
49 > self.finish()
50 > File "/usr/lib64/python2.7/SocketServer.py", line 694, in finish
51 > self.wfile.flush()
52 > File "/usr/lib64/python2.7/socket.py", line 303, in flush
53 > self._sock.sendall(view[write_offset:write_offset+buffer_size])
54 > error: [Errno 32] Broken pipe
55 > ----------------------------------------
56 >
57 > None the less it's an interesting start. Thanks!!
58
59 I'm pretty much clueless in python so can't interpret the messages - hopefully
60 someone more knowledgeable will chime in.
61
62 --
63 Regards,
64 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies