From patchwork Tue Nov 5 07:15:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 52604 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:288a:b0:48e:c0f8:d0de with SMTP id hy10csp281910vqb; Mon, 4 Nov 2024 23:18:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV0uE1cTIROK/PQzqxglLoT1qviwFUl0fwySOGTpHYO4zedgOiamGqhrBe7RUhJgRKefdMNYIclJ9Y2oUaukJCo@gmail.com X-Google-Smtp-Source: AGHT+IHjrqCmwMmNrU6HWRiSnWL3BPCiCoTuednI2aTSxr8zbdPwDyYbeOLDHFE8/9lwhJKNHLNd X-Received: by 2002:a17:907:2d90:b0:a99:4c5e:1b28 with SMTP id a640c23a62f3a-a9de61d47fdmr1247334966b.14.1730791094115; Mon, 04 Nov 2024 23:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730791094; cv=none; d=google.com; s=arc-20240605; b=X6VHgMPUi8Mef4pTLzCbrFMg2I4wdI4u6coHtPIcPbSnGElPdVILoNZpoe0lS782JU AV0zYqfn3J14unn03ZfOBw3Pb63SeqU5W8rHs4qEUxrINOLZXN+F6KYZgUmNC8ZcaeNL 6ArLJiTwFkOrpb/8RmgQimS9cs8Mhb4Z1iXVN92rog4+xiE0wo0X9gIbB5xR6XWeAwzh a33lmWpQi/LN8BeTcqbmKjHtXeHBh2OlyjIACeATSZ6CDG/51WI38dud+n/XunGnLFkF NR4p7WTiliK8tTIiKUSQL1PCRWc9SC5TN6z92ZsPhv+SAmNxspzokECMPwqVz67Gjodw EvQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=CdmIIrIpH0TavtFWMEH++1QkMFhDsc22pku+ah3WvbM=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=DGShUE/Gxit219H9/m4R13MdpiDsJGnPp9nRxeguAXgDecOy3L7x+eZXje+EiF/7sa FNz1zIjolP58Sqzf9e94jQUuEJb8u71ifYQ1+7iufcH03IQqRxP5zVy8f8MTVSqNnjf0 YvJGF4q3ViY0W8HuAcz64EIS1XDZHPjCTYkmIuUY+qccQv9wwyXPajNU/hiseUiF4muV JFCOVLahxGTAlMYRg2r7K2tf3cJ95+Xw+LocAASt5LGVnwLR7lTQktO8LWVT6EwbkbVE ouI9Zu9zYDcQJaef6FwaN+XbLItKwe8mD5Jzt6Ev7OZFhfBQ2rTTVrQc+xaIacU/GENr L6eQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a9eb1813b4csi85675466b.694.2024.11.04.23.18.13; Mon, 04 Nov 2024 23:18:14 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CBCD168D9B1; Tue, 5 Nov 2024 09:18:10 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3CFC968DBD2 for ; Tue, 5 Nov 2024 09:18:04 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id E7531EB051; Tue, 5 Nov 2024 08:18:03 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ggts5HE9xMy; Tue, 5 Nov 2024 08:17:34 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id CB9F3EAC11; Tue, 5 Nov 2024 08:17:33 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Tue, 5 Nov 2024 08:15:31 +0100 Message-ID: <20241105071725.8348-1-cus@passwd.hu> X-Mailer: git-send-email 2.43.0 In-Reply-To: <173078920752.15947.7154362848371881006@lain.khirnov.net> References: <173078920752.15947.7154362848371881006@lain.khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 4/4] tests/fate/filter-audio: add aloop test X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: J0Hu48iYpNyL v2: use -filter_complex instead of -f lavfi to generate input Signed-off-by: Marton Balint --- tests/fate/filter-audio.mak | 3 +++ tests/ref/fate/filter-aloop | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tests/ref/fate/filter-aloop diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak index 84478740c7..343fa40e9d 100644 --- a/tests/fate/filter-audio.mak +++ b/tests/fate/filter-audio.mak @@ -418,6 +418,9 @@ fate-filter-atempo: CMD = pcm -i $(TARGET_PATH)/tests/data/asynth-44100-1.wav -a fate-filter-atempo: CMP = oneoff fate-filter-atempo: REF = $(SAMPLES)/filter-reference/atempo.pcm +fate-filter-aloop: CMD = framecrc -filter_complex "sine=r=48000:f=480:d=4,aloop=loop=4:start=48000:size=48000,asetnsamples=9600" +FATE_AFILTER-$(call ALLYES, SINE_FILTER ALOOP_FILTER ASETNSAMPLES_FILTER PCM_S16LE_ENCODER FRAMECRC_MUXER PIPE_PROTOCOL) += fate-filter-aloop + fate-filter-crazychannels: tests/data/filtergraphs/crazychannels fate-filter-crazychannels: CMD = framecrc -auto_conversion_filters -/filter_complex $(TARGET_PATH)/tests/data/filtergraphs/crazychannels FATE_AFILTER-$(call FILTERFRAMECRC, ARESAMPLE SINE JOIN ATRIM CHANNELMAP CHANNELSPLIT) += fate-filter-crazychannels diff --git a/tests/ref/fate/filter-aloop b/tests/ref/fate/filter-aloop new file mode 100644 index 0000000000..d6286d8855 --- /dev/null +++ b/tests/ref/fate/filter-aloop @@ -0,0 +1,45 @@ +#tb 0: 1/48000 +#media_type 0: audio +#codec_id 0: pcm_s16le +#sample_rate 0: 48000 +#channel_layout_name 0: mono +0, 0, 0, 9600, 19200, 0x1476501c +0, 9600, 9600, 9600, 19200, 0x1476501c +0, 19200, 19200, 9600, 19200, 0x1476501c +0, 28800, 28800, 9600, 19200, 0x1476501c +0, 38400, 38400, 9600, 19200, 0x1476501c +0, 48000, 48000, 9600, 19200, 0x1476501c +0, 57600, 57600, 9600, 19200, 0x1476501c +0, 67200, 67200, 9600, 19200, 0x1476501c +0, 76800, 76800, 9600, 19200, 0x1476501c +0, 86400, 86400, 9600, 19200, 0x1476501c +0, 96896, 96896, 9600, 19200, 0x1476501c +0, 106496, 106496, 9600, 19200, 0x1476501c +0, 116096, 116096, 9600, 19200, 0x1476501c +0, 125696, 125696, 9600, 19200, 0x1476501c +0, 135296, 135296, 9600, 19200, 0x1476501c +0, 144896, 144896, 9600, 19200, 0x1476501c +0, 154496, 154496, 9600, 19200, 0x1476501c +0, 164096, 164096, 9600, 19200, 0x1476501c +0, 173696, 173696, 9600, 19200, 0x1476501c +0, 183296, 183296, 9600, 19200, 0x1476501c +0, 192896, 192896, 9600, 19200, 0x1476501c +0, 202496, 202496, 9600, 19200, 0x1476501c +0, 212096, 212096, 9600, 19200, 0x1476501c +0, 221696, 221696, 9600, 19200, 0x1476501c +0, 231296, 231296, 9600, 19200, 0x1476501c +0, 240896, 240896, 9600, 19200, 0x1476501c +0, 250496, 250496, 9600, 19200, 0x1476501c +0, 260096, 260096, 9600, 19200, 0x1476501c +0, 269696, 269696, 9600, 19200, 0x1476501c +0, 279296, 279296, 9600, 19200, 0x1476501c +0, 288896, 288896, 9600, 19200, 0x1476501c +0, 298496, 298496, 9600, 19200, 0x1476501c +0, 308096, 308096, 9600, 19200, 0x1476501c +0, 317696, 317696, 9600, 19200, 0x1476501c +0, 327296, 327296, 9600, 19200, 0x1476501c +0, 336896, 336896, 9600, 19200, 0x1476501c +0, 346496, 346496, 9600, 19200, 0x1476501c +0, 356096, 356096, 9600, 19200, 0x1476501c +0, 365696, 365696, 9600, 19200, 0x1476501c +0, 375296, 375296, 9600, 19200, 0x1476501c