public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ?
Date: Sun, 13 Nov 2011 22:57:48 +0000	[thread overview]
Message-ID: <201111132258.06753.michaelkintzios@gmail.com> (raw)
In-Reply-To: <CAK2H+efCcmh2Ejx8muWob9WpybtKUA6XN4P7Wy=-8+Js7oeH2A@mail.gmail.com>

[-- Attachment #1: Type: Text/Plain, Size: 2774 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-11-13 22:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-13 18:21 [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ? Mark Knecht
2011-11-13 19:16 ` Pandu Poluan
2011-11-13 19:45   ` Mark Knecht
2011-11-13 22:57     ` Mick [this message]
2011-11-14  0:20       ` Pandu Poluan
2011-11-15 19:57       ` [gentoo-user] " Steven J Long
2011-11-14  4:37     ` [gentoo-user] " Stroller
2011-11-13 19:22 ` Mick
2011-11-13 20:08   ` Mark Knecht
2011-11-13 19:28 ` Chris Brennan
2011-11-14 14:57 ` [gentoo-user] " Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201111132258.06753.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox