From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E1078138010 for ; Tue, 9 Oct 2012 07:49:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 505DC21C015; Tue, 9 Oct 2012 07:49:06 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 6991E21C007 for ; Tue, 9 Oct 2012 07:47:40 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwKAG6Zu09FpZgY/2dsb2JhbABEsnYDgRiBCIIVAQEEATocKAsLNAERFCU3iAkFC6tHjjeLCFqBRII8YgONPodchV+IOoFYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200900893" Received: from 69-165-152-24.dsl.teksavvy.com (HELO waltdnes.org) ([69.165.152.24]) by ironport2-out.teksavvy.com with SMTP; 09 Oct 2012 03:47:38 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Tue, 09 Oct 2012 03:47:23 -0400 From: "Walter Dnes" Date: Tue, 9 Oct 2012 03:47:23 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Questions about recording webcam+mic on netbook Message-ID: <20121009074723.GA5371@waltdnes.org> References: <20121005071946.GA1248@waltdnes.org> <20121006090301.GA2642@waltdnes.org> 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: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 1d32668c-ebdc-48e8-80ba-81b17dbd94db X-Archives-Hash: b553ea2cdc78eb63eca5cac715741e4d On Sat, Oct 06, 2012 at 07:48:50AM -0400, Michael Mol wrote > When I last used guvcview, it muxed both audio and video into an > appropriate container format for me, but it was all very configurable. > I do recall I went with MJPEG for a video codec.[1] > > I realize you're not fond of GNOME, but guvcview doesn't require > pulling in all of gnome. Though looking at it now, it may require > pulseaudio. > > I haven't tried luvcview, sorry. > > [1] This video was recorded with guvcview, and then uploaded as-is. > http://www.youtube.com/watch?v=kul0eGILCI4 I eventually did it "the unix way", stringing together a couple of programs. The following is one long line... ffmpeg -y -f alsa -i plughw:0,0 -f video4linux2 -i /dev/video0 -f avi -vcodec mpeg4 /dev/stdout | tee output.avi | mplayer -cache 32 - ffmpeg encodes the streams from webcam+microphone, and spits it out to stdout, which is piped to the "tee" program. "tee" sends out 2 duplicate streams... 1) to diskfile output.avi 2) to stdout, which is piped to mplayer, which displays a copy of the stream onscreen There's approximately a 1-second lag, but that's OK. The terminal from which the command is launched produces warnings each time the cache is emptied, but it works. Remember that this is an early Intel Atom Z520 which is rather weak. There is finally an open source kernel driver for the Intel/Poulsbo GPU, but it has no acceleration. The fact that it works acceptably is a minor miracle. The only mplayer video option that works properly is the barebones "x11" option. All others except the "fbdev2" either produce no video, or output in "seconds per frame", rather than "frames per second" . fbdev2 may be a bit faster than x11, but it has its own issues... 1) Since it bangs away directly at the framebuffer, you need higher permissions; i.e. either root or setuid. 2) It slaps the output in the upper left corner of the screen, overwriting X, because it writes directly to framebuffer. -- Walter Dnes I don't run "desktop environments"; I run useful applications