From owner-freebsd-questions@FreeBSD.ORG Thu Feb 18 07:39:22 2010 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 12EDA106566C for ; Thu, 18 Feb 2010 07:39:22 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id B75008FC08 for ; Thu, 18 Feb 2010 07:39:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id D0B0C3A3853; Thu, 18 Feb 2010 14:39:19 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= references:subject:subject:in-reply-to:from:from:message-id:date :date:received:received:received; s=selector1; t=1266478759; x= 1268293159; bh=lBzc1HFXzg9KFaT71mev1b9aiyS/0zhBFCpTmieFarU=; b=h t4v7LpDujGWxSyqY3nRlBh/cjpqTk3F2dAT9hIN/MIYjFpZtiIggqeNq+aWCD1G5 ZvXI0TxrxmZY3ZHNGLYJ54PDrEHAQTmD8NuebljAX3QgkR0Jhx5w9PyxtHePX0s1 JB7VJ8DORHBhYsHzRLzpFlEBYN0Pabs17f+bQFaRQQ= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by localhost (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mFLcbcDXsxY9; Thu, 18 Feb 2010 14:39:19 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id DA4243A382C; Thu, 18 Feb 2010 14:39:18 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.3/8.14.3/Submit) id o1I7dG7R028606; Thu, 18 Feb 2010 14:39:16 +0700 (ICT) (envelope-from on) Date: Thu, 18 Feb 2010 14:39:16 +0700 (ICT) Message-Id: <201002180739.o1I7dG7R028606@banyan.cs.ait.ac.th> From: Olivier Nicole To: freebsd@edvax.de In-reply-to: <20100218082919.880a6ba4.freebsd@edvax.de> (message from Polytropon on Thu, 18 Feb 2010 08:29:19 +0100) References: <20100217193330.GA95373@thought.org> <20100218082919.880a6ba4.freebsd@edvax.de> Cc: kline@thought.org, freebsd-questions@freebsd.org Subject: Re: video and FreeBSD? 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: Thu, 18 Feb 2010 07:39:22 -0000 Hi, > > If I wanted to capture a video stream (say 30fps) in RAM and > > store it or write to a file and/or sent it to a website or on > > to another computer, what ports are avalable for this kind of > > live capture? > I use mencoder for that. The input for video is a PCI video card > (Haupauge something, using bktr driver), and audio is captured from > a standard PCI sound card (cmi driver). Postprocessing to file or > piping the information is possible. Same thing. For video surveillance I caputure video from a camera with: $ /usr/local/bin/mencoder tv:// -tv driver=bsdbt848:noaudio:norm=NTSC:input=1 -nosound -o 2010-02-10.20-41-18.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=400 -really-quiet Stop the acquisition wil a kill -TERM. The file output is: $ file 2010-02-10.20-41-18.avi 2010-02-10.20-41-18.avi: RIFF (little-endian) data, AVI, 640 x 480, ~30 fps, video: FFMpeg MPEG-4 Best regards, Olivier