From patchwork Thu Jul 28 17:38:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petru Rares Sincraian X-Patchwork-Id: 22 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.67 with SMTP id o64csp915945vsd; Thu, 28 Jul 2016 10:38:56 -0700 (PDT) X-Received: by 10.28.31.133 with SMTP id f127mr40451921wmf.90.1469727536067; Thu, 28 Jul 2016 10:38:56 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b17si14125504wjb.145.2016.07.28.10.38.55; Thu, 28 Jul 2016 10:38:56 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@outlook.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; dmarc=fail (p=NONE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8264368A431; Thu, 28 Jul 2016 20:38:36 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from BLU004-OMC4S8.hotmail.com (blu004-omc4s8.hotmail.com [65.55.111.147]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 02B9368A2A9 for ; Thu, 28 Jul 2016 20:38:22 +0300 (EEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com ([65.55.111.136]) by BLU004-OMC4S8.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 28 Jul 2016 10:38:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7lSCwIir+B6b8Xk+2nWk5rbTs7tEuCRqgxA9lrLfGxs=; b=Okt4Q0aDBZQbEwQQqMFE+xbkmtoTZc7dCPzY3XV2KX5rXuOzlQLyDA85U5FV7LpLF+LR3ZshPvm29C35EKb55btAP9hBGeWr8knd2gyv+5E+PAIzBAEcP/VphIDjraVWwOwhAFaR7nUmS2NUQMaeu5d0s9jJQQzwTtfgXe8++giSqk7S7cOq1uWR4TCwvXB3NN3Bs0rM7H7OxIm2W2tRrQ6M9vYu6RUaGQFgPyFNVj3YiLGsFOB+8bwxTUl8DwVH45NV3/58gpejdv36RLnCWmBdbNqgDIYC2O6dtmqx3QoX7rFjaKBGwhNO8PmPIm7UYgGL24YES/SR91ZF6XRCEQ== Received: from VE1EUR01FT009.eop-EUR01.prod.protection.outlook.com (10.152.2.55) by VE1EUR01HT020.eop-EUR01.prod.protection.outlook.com (10.152.3.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.5; Thu, 28 Jul 2016 17:38:18 +0000 Received: from HE1PR1001MB0827.EURPRD10.PROD.OUTLOOK.COM (10.152.2.53) by VE1EUR01FT009.mail.protection.outlook.com (10.152.2.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.5 via Frontend Transport; Thu, 28 Jul 2016 17:38:18 +0000 Received: from HE1PR1001MB0827.EURPRD10.PROD.OUTLOOK.COM ([10.167.192.145]) by HE1PR1001MB0827.EURPRD10.PROD.OUTLOOK.COM ([10.167.192.145]) with mapi id 15.01.0549.016; Thu, 28 Jul 2016 17:38:17 +0000 From: Petru Rares Sincraian To: FFmpeg development discussions and patches Thread-Topic: [PATCH] fate: add test for silenceremove filter Thread-Index: AQHR6PbJMZlgn6oaykycZ8vPPZif5g== Date: Thu, 28 Jul 2016 17:38:17 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: spf=softfail (sender IP is 10.152.2.53) smtp.mailfrom=outlook.com; ffmpeg.org; dkim=none (message not signed) header.d=none; ffmpeg.org; dmarc=fail action=none header.from=outlook.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning outlook.com discourages use of 10.152.2.53 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [PlyOEwFn1HDjI8Og3dJ0CE1dqhat3FXb] x-eopattributedmessage: 0 x-forefront-antispam-report: CIP:10.152.2.53; IPV:NLI; CTRY:; EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR01HT020; H:HE1PR1001MB0827.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; x-microsoft-exchange-diagnostics: 1; VE1EUR01HT020; 5:rlVIic8NUufM8hmx1wvwVTnH3nIbEVJNC7zV5M2slFxqmRp83uM3IuRYFIO0kWm6nFp0z6tauMRQQGd4ExZ0HfWsARXCv6heqpqYYMUgrh3ukZj0P40NleLrXED0OaivQnt1IqishUS/nF/MGI5dRw==; 24:HNm2XL4m+FU8eGPHooul/RFFazDgnNZkSL/dbDDhgXnZevfoxboAwJJABVKGh6ncPkyLEJRcSnJiJ6gpPgGw4FORoRsrdbAwZ4apw5i+GB8=; 7:xqG/5uaJz/IlGPXwNIhr2BkrDUf/njl0QqwdP6kev2Ac/0NmeSsuuNbhGwIfRdBYfDTlO+JST6Cr9JOOnE7LtIeTEIfM1Ng6CO87NJRx4kH+tnzaG/uTzpuAgBMyPqhYdpYiTtZj/5iXuf81qqL49kCkrjJJBDKrFw5uelvIdly4A+ernbUAb6AbzEhbzKMzTn3zBtSmCqFn0kP2cq5HSpVGZ4/bRiHGyOqk+jBwOWnyJXHdl4G2qemKc8rUW3Pm x-ms-office365-filtering-correlation-id: 812b7302-e831-4d50-22ca-08d3b70df59c x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1601125047); SRVR:VE1EUR01HT020; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(102415321)(82015046); SRVR:VE1EUR01HT020; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR01HT020; x-forefront-prvs: 00179089FD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2016 17:38:17.0428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT020 X-OriginalArrivalTime: 28 Jul 2016 17:38:26.0359 (UTC) FILETIME=[D8935C70:01D1E8F6] Subject: [FFmpeg-devel] [PATCH] fate: add test for silenceremove filter X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi there, Here is a test for silenceremove filter. Regards, Petru :) From c91678a65751beee3959977af07f263cf879468a Mon Sep 17 00:00:00 2001 From: Petru Rares Sincraian Date: Thu, 28 Jul 2016 19:31:55 +0200 Subject: [PATCH] fate: add test for silenceremove filter --- tests/fate/filter-audio.mak | 4 ++++ tests/ref/fate/filter-silenceremove | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 tests/ref/fate/filter-silenceremove diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak index 32787a7..d83c3b6 100644 --- a/tests/fate/filter-audio.mak +++ b/tests/fate/filter-audio.mak @@ -114,6 +114,10 @@ fate-filter-extrastereo: tests/data/asynth-44100-2.wav fate-filter-extrastereo: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav fate-filter-extrastereo: CMD = framecrc -i $(SRC) -aframes 20 -af extrastereo=m=2 +FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, SILENCEREMOVE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-silenceremove +fate-filter-silenceremove: SRC = $(TARGET_SAMPLES)/audio-reference/divertimenti_2ch_96kHz_s24.wav +fate-filter-silenceremove: CMD = framecrc -i $(SRC) -aframes 30 -af silenceremove=0:0:0:-1:0:-90dB + tests/data/hls-list.m3u8: TAG = GEN tests/data/hls-list.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ diff --git a/tests/ref/fate/filter-silenceremove b/tests/ref/fate/filter-silenceremove new file mode 100644 index 0000000..43360e8 --- /dev/null +++ b/tests/ref/fate/filter-silenceremove @@ -0,0 +1,35 @@ +#tb 0: 1/192000 +#media_type 0: audio +#codec_id 0: pcm_s16le +#sample_rate 0: 192000 +#channel_layout 0: 3 +0, 0, 0, 1, 4, 0x00200008 +0, 1, 1, 1, 4, 0x00180006 +0, 2, 2, 1, 4, 0x001c0007 +0, 3, 3, 1, 4, 0x03250208 +0, 4, 4, 1, 4, 0x03290208 +0, 5, 5, 1, 4, 0x03230207 +0, 6, 6, 1, 4, 0x031f0206 +0, 7, 7, 1, 4, 0x03250208 +0, 8, 8, 1, 4, 0x00220009 +0, 9, 9, 1, 4, 0x00200009 +0, 10, 10, 1, 4, 0x03250208 +0, 11, 11, 1, 4, 0x0335020c +0, 12, 12, 1, 4, 0x034b0211 +0, 13, 13, 1, 4, 0x034b020f +0, 14, 14, 1, 4, 0x0343020e +0, 15, 15, 1, 4, 0x00440011 +0, 16, 16, 1, 4, 0x00400011 +0, 17, 17, 1, 4, 0x003a000f +0, 18, 18, 1, 4, 0x0339020d +0, 19, 19, 1, 4, 0x003a000f +0, 20, 20, 1, 4, 0x0034000d +0, 21, 21, 1, 4, 0x0034000d +0, 22, 22, 1, 4, 0x0036000e +0, 23, 23, 1, 4, 0x03290208 +0, 24, 24, 1, 4, 0x03230204 +0, 25, 25, 1, 4, 0x03170201 +0, 26, 26, 1, 4, 0x030701fd +0, 27, 27, 1, 4, 0x02fd01fc +0, 28, 28, 1, 4, 0x00060002 +0, 29, 29, 1, 4, 0x000c0004 -- 1.9.1