On Sunday 13 Nov 2011 19:45:38 Mark Knecht wrote: > Wow! That certainly qualifies for the simple part! The trick seemed to > be to cd to the video directory before running python, but once I did > that I am able to get video. > > One 'problem' if you will is the video isn't streaming but rather the > whole file is being copied and then xine is being run. That leads to > no disk space over time.
It is not streaming, because you are not running a streaming server and in all
likelihood the video file is not in 'streaming' media format. Therefore when
you click on the link the ipod downloads a complete file.
> Is this a function of Firefox being set up to use xine as opposed to
> some other app or plugin? I'd really like to understand a little more
> about getting it to stream instead of copy, if possible.
You can have a true streaming server (MMS, RTP, RTSP) or you can have a
webserver (HTTP) which serves streaming media format files.
Have you tried setting up vlc as a streaming server on your PC? It will also
transcode files into streaming media.
Alternatively, use a device with a large enough storage on it to be able to
save the whole of the downloaded file.
> The other thing I just tested was accessing the server using my wife's
> iPod Touch. It can browse to the video files but then Quicktime
> doesn't play them. Back in the python terminal I see a lot of message
> like this:
>
> ----------------------------------------
> 192.168.1.243 - - [13/Nov/2011 11:44:26] "GET /H/Howard%27s%20End.m4v
> HTTP/1.1" 200 -
> ----------------------------------------
> Exception happened during processing of request from ('192.168.1.243',
> 49450) Traceback (most recent call last):
> File "/usr/lib64/python2.7/SocketServer.py", line 284, in
> _handle_request_noblock
> self.process_request(request, client_address)
> File "/usr/lib64/python2.7/SocketServer.py", line 310, in process_request
> self.finish_request(request, client_address)
> File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request
> self.RequestHandlerClass(request, client_address, self)
> File "/usr/lib64/python2.7/SocketServer.py", line 641, in __init__
> self.finish()
> File "/usr/lib64/python2.7/SocketServer.py", line 694, in finish
> self.wfile.flush()
> File "/usr/lib64/python2.7/socket.py", line 303, in flush
> self._sock.sendall(view[write_offset:write_offset+buffer_size])
> error: [Errno 32] Broken pipe
> ----------------------------------------
>
> None the less it's an interesting start. Thanks!!
I'm pretty much clueless in python so can't interpret the messages - hopefully
someone more knowledgeable will chime in.
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

