From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +H0jJZPI0F6HMwAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 08:32:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qAMaIZPI0F4lUwAAB5/wlQ (envelope-from ) for ; Fri, 29 May 2020 08:32:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E7E46940039 for ; Fri, 29 May 2020 08:32:18 +0000 (UTC) Received: from localhost ([::1]:47784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeaR6-0007bz-Ry for larch@yhetil.org; Fri, 29 May 2020 04:32:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeaQw-0007ZG-Dj for help-guix@gnu.org; Fri, 29 May 2020 04:32:06 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:29274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeaQu-0008FH-96 for help-guix@gnu.org; Fri, 29 May 2020 04:32:05 -0400 Date: Fri, 29 May 2020 08:31:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1590741119; bh=MiVExaqwwPhDbNMLIwK9Y5fcIlhef9sMAZBc3p021LY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=qEyYaW6xXlH6JlANravK1G2qVrciBr9LyVbp1cD47s7gMis/03z4vUMR0dEgb94dn 3qN/weqPCXHQ5G2eWCZHuri0elVQ5Nc5DPDoIDvLLwWfqGV5uObAjOzbtzMQcaWc3/ oExZxhYt3zrH9q1AHi1WpcrV3BVEYC46TBRlXdVU= To: Leo Famulari From: Ekaitz Zarraga Subject: Re: ffmpeg and alsa/pulseaudio Message-ID: <9g4-oPiGW1KcD2rBiliRz7XQIi7tsTaGGjrDOFdYkajzYe7DqUwLsSIxmtDHmtK5t7MLCVrGU_Ooo-TX9XWrUr0Q_rVqrDdU0Aa6Inf8iZw=@elenq.tech> In-Reply-To: <20200529013434.GH5443@jasmine.lan> References: <20200529013434.GH5443@jasmine.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=ekaitz@elenq.tech; helo=mail1.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/29 04:31:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: "help-guix\\\\@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=qEyYaW6x; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: /KQZUGMOxfL1 =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, May 29, 2020 3:34 AM, Leo Famulari wrote: > On Tue, Apr 07, 2020 at 11:54:35AM +0000, Ekaitz Zarraga wrote: > > > Hi, > > I'm trying to make a screencast with ffmpeg and I'm having issues. > > I had a screen recording script on the past, based on alsa, but it's no= t working in guix because it looks like ffmpeg wasn't compiled with alsa. I= s that true? Is there something I missing to activate alsa on ffmpeg? > > This is the command I was running: > > ffmpeg \ > > -y -f x11grab -draw_mouse 1 -framerate 25 -video_size 1920x1080 -i $DIS= PLAY \ > > -f alsa -ac 2 -i default \ > > -pix_fmt yuv420p -c:v libx264 -preset veryfast \ > > -c:a libmp3lame -q:v 1 -s 1920x1080 -f matroska \ > > output.mkv > > I tried this but it failed with ":0: Invalid argument". That's the > $DISPLAY variable. Do you know what it should say? Hi Leo, Thanks for the answer. I have :1 in DISPLAY and it's not failing because of= that. More on the issue: I had to use a different microphone for this just becaus= e of this issue. Looks like when I use a USB microphone and use pulseaudio = engine it breaks somehow and records audio with wrong timestamps. An analog= microphone works well. With alsa I found a working configuration but it doesn't work :( Thanks!