From owner-freebsd-questions@FreeBSD.ORG Mon May 25 22:27:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF76C1065672 for ; Mon, 25 May 2009 22:27:07 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id 40A038FC19 for ; Mon, 25 May 2009 22:27:06 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id n4PMQZLP013153; Tue, 26 May 2009 00:26:35 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Tue, 26 May 2009 00:26:35 +0200 User-Agent: KMail/1.11.3 (FreeBSD/8.0-CURRENT; KDE/4.2.3; amd64; ; ) References: <4A1A9FF0.40609@webrz.net> In-Reply-To: <4A1A9FF0.40609@webrz.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905260026.35379.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Jos Chrispijn Subject: Re: Streaming server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 22:27:08 -0000 On Monday 25 May 2009 15:41:04 Jos Chrispijn wrote: > I have some short movies (a la YouTube) that I would like to show as > video streams. Presenting them by download is messing up my bandwidth > (...). Can someone tell me if there is a simple solution installing such a > stream service/server into FreeBDS 7.2? Generally you can't reduce bandwidth unless you use multicast, which will (obviously) only work for live streams. The easiest solution is to imitate youtube: encode your movies to flash video (ffmpeg can do that), then use a flash movie player on your website to stream. This basically streams the movie over HTTP. Some (non-flash) players (like VLC) can also stream over HTTP. The hard way is to install DarwinStreamingServer, encode your movies to a format you want (it should fit in an mpeg4 container), add hinting tracks (using MP4Box) and let your users play the movies through mplayer/vlc or an embedded movie object on your website. You can even stream to most handsets this way. This method uses RTSP/RTP over UDP to deliver the content. Using modern codecs which deliver a high compression ratio w/ good quality (for example H264 video and AAC audio) will go a long way in reducing bandwidth. -- Pieter de Goeje