From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-131042-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RPkJ1-0007VD-1w for garchives@archives.gentoo.org; Mon, 14 Nov 2011 00:21:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF2C321C054; Mon, 14 Nov 2011 00:21:35 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 3F087E0459 for <gentoo-user@lists.gentoo.org>; Mon, 14 Nov 2011 00:20:35 +0000 (UTC) Received: from mail-bw0-f53.google.com ([209.85.214.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from <pandu@poluan.info>) id 1RPkHr-001y6l-5m for gentoo-user@lists.gentoo.org; Mon, 14 Nov 2011 07:20:35 +0700 Received: by bkaq10 with SMTP id q10so6792746bka.40 for <gentoo-user@lists.gentoo.org>; Sun, 13 Nov 2011 16:20:31 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.145.130 with SMTP id d2mr17088695bkv.78.1321230031159; Sun, 13 Nov 2011 16:20:31 -0800 (PST) Received: by 10.223.74.16 with HTTP; Sun, 13 Nov 2011 16:20:30 -0800 (PST) Received: by 10.223.74.16 with HTTP; Sun, 13 Nov 2011 16:20:30 -0800 (PST) In-Reply-To: <201111132258.06753.michaelkintzios@gmail.com> References: <CAK2H+edVRq_4dmqsE2=YChQH5vVRYKvjEXniGRD-A3rxgusXrw@mail.gmail.com> <CAA2qdGViswuyRKWC_i8Wrm=+BC2oiM+iNcyPnen+tcYckY3TWg@mail.gmail.com> <CAK2H+efCcmh2Ejx8muWob9WpybtKUA6XN4P7Wy=-8+Js7oeH2A@mail.gmail.com> <201111132258.06753.michaelkintzios@gmail.com> Date: Mon, 14 Nov 2011 07:20:30 +0700 Message-ID: <CAA2qdGUCuMCcxOM74vRB+LY5WsOSNkXwJ+VYUpOJuev-r-a6AQ@mail.gmail.com> Subject: Re: [gentoo-user] The SIMPLEST web server to config (this time - just for serving video files) ? From: Pandu Poluan <pandu@poluan.info> To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=0015175cabc6ac83cd04b1a6d677 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: 2d3d7515-8aae-4ad1-927f-11ac58f3ff75 X-Archives-Hash: adc93509e04a549b3470605aeecf87c3 --0015175cabc6ac83cd04b1a6d677 Content-Type: text/plain; charset=UTF-8 On Nov 14, 2011 6:01 AM, "Mick" <michaelkintzios@gmail.com> wrote: > > 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. > Actually, if the server supports the byte-range option (i.e., ability to do random access 'seek') AND the server returns the proper Content-Type header, then the server can stream. > > 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. > That will make the server neither light nor simple, though :-) > 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): ----- >8 snip ----- > > > > 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. > Neither am I, but it seems SimpleHTTPServer is too simple. Rgds, --0015175cabc6ac83cd04b1a6d677 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p><br> On Nov 14, 2011 6:01 AM, "Mick" <<a href=3D"mailto:michaelkint= zios@gmail.com">michaelkintzios@gmail.com</a>> wrote:<br> ><br> > On Sunday 13 Nov 2011 19:45:38 Mark Knecht wrote:<br> ><br> > > Wow! That certainly qualifies for the simple part! The trick seem= ed to<br> > > be to cd to the video directory before running python, but once I= did<br> > > that I am able to get video.<br> > ><br> > > One 'problem' if you will is the video isn't streamin= g but rather the<br> > > whole file is being copied and then xine is being run. That leads= to<br> > > no disk space over time.<br> ><br> > It is not streaming, because you are not running a streaming server an= d in all<br> > likelihood the video file is not in 'streaming' media format. = =C2=A0Therefore when<br> > you click on the link the ipod downloads a complete file.<br> ></p> <p>Actually, if the server supports the byte-range option (i.e., ability to= do random access 'seek') AND the server returns the proper Content= -Type header, then the server can stream.</p> <p>> > Is this a function of Firefox being set up to use xine as oppo= sed to<br> > > some other app or plugin? I'd really like to understand a lit= tle more<br> > > about getting it to stream instead of copy, if possible.<br> ><br> > You can have a true streaming server (MMS, RTP, RTSP) or you can have = a<br> > webserver (HTTP) which serves streaming media format files.<br> ><br> > Have you tried setting up vlc as a streaming server on your PC? =C2=A0= It will also<br> > transcode files into streaming media.<br> ></p> <p>That will make the server neither light nor simple, though :-) </p> <p>> Alternatively, use a device with a large enough storage on it to be= able to<br> > save the whole of the downloaded file.<br> ><br> ><br> > > The other thing I just tested was accessing the server using my w= ife's<br> > > iPod Touch. It can browse to the video files but then Quicktime<b= r> > > doesn't play them. Back in the python terminal I see a lot of= message<br> > > like this:<br> > ><br> > > ----------------------------------------<br> > > 192.168.1.243 - - [13/Nov/2011 11:44:26] "GET /H/Howard%27s%= 20End.m4v<br> > > HTTP/1.1" 200 -<br> > > ----------------------------------------<br> > > Exception happened during processing of request from ('192.16= 8.1.243',<br> > > 49450) Traceback (most recent call last):</p> <p>----- >8 snip -----</p> <p>> ><br> > > None the less it's an interesting start. Thanks!!<br> ><br> > I'm pretty much clueless in python so can't interpret the mess= ages - hopefully<br> > someone more knowledgeable will chime in.<br> ></p> <p>Neither am I, but it seems SimpleHTTPServer is too simple.</p> <p>Rgds,<br> </p> --0015175cabc6ac83cd04b1a6d677--