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 ) id 1RPj1C-0005HY-C6 for garchives@archives.gentoo.org; Sun, 13 Nov 2011 22:59:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAF5E21C043; Sun, 13 Nov 2011 22:59:07 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 1EAFF21C043 for ; Sun, 13 Nov 2011 22:58:06 +0000 (UTC) Received: by wyg19 with SMTP id 19so1921516wyg.40 for ; Sun, 13 Nov 2011 14:58:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=Fc0y97hG+XjGmwBvkMVLorX76M+LvxitjisSDzSWFu8=; b=ARY3ioQX0kfoTmfnsGncXEmq49hq1HPQd+2fmTmMtDFX7BHHSobb0Ee4Oh2MW0+4u3 0oYdIbrori7M8ig0ed+0F+S+5KsC5+dpIxmeBeDH9WU8Oe9CR83SA+mIb5YIYQpBrJKu vg6BV2E/bVagrIHdfvzD+UtcgAlYvvirVvjMk= Received: by 10.227.197.69 with SMTP id ej5mr13259793wbb.1.1321225085766; Sun, 13 Nov 2011 14:58:05 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPS id gd6sm22626538wbb.1.2011.11.13.14.58.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Nov 2011 14:58:04 -0800 (PST) From: Mick 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 User-Agent: KMail/1.13.7 (Linux/3.0.6-gentoo; KDE/4.6.5; x86_64; ; ) References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1811569.6FvsJrd5iJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111132258.06753.michaelkintzios@gmail.com> X-Archives-Salt: 8f85162d-1b14-4c36-8720-a70a94c3702a X-Archives-Hash: 9ef05cd5f4fbbd6e9f6e89c5c02f9e2c --nextPart1811569.6FvsJrd5iJ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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. >=20 > 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=20 likelihood the video file is not in 'streaming' media format. Therefore wh= en=20 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=20 webserver (HTTP) which serves streaming media format files. Have you tried setting up vlc as a streaming server on your PC? It will al= so=20 transcode files into streaming media. Alternatively, use a device with a large enough storage on it to be able to= =20 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: >=20 > ---------------------------------------- > 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_reque= st > 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 > ---------------------------------------- >=20 > None the less it's an interesting start. Thanks!! I'm pretty much clueless in python so can't interpret the messages - hopefu= lly=20 someone more knowledgeable will chime in. =2D-=20 Regards, Mick --nextPart1811569.6FvsJrd5iJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk7AS34ACgkQVTDTR3kpaLb63wCfZniiLIz/CC8EmGvV7/fIBkZZ Q3cAoNsq8ZZ+xvPnhygB0REXJebjftzf =/ymC -----END PGP SIGNATURE----- --nextPart1811569.6FvsJrd5iJ--