From patchwork Wed Jun 14 16:48:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42067 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c526:b0:117:ac03:c9de with SMTP id gm38csp190396pzb; Wed, 14 Jun 2023 09:50:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LWavfe83kWvR21VXRUWDbudWEapfXko4K9aCjr/zHsv/qQ0/4nrP46GPONwYwnjK//tIK X-Received: by 2002:a17:906:fd86:b0:978:af9d:771d with SMTP id xa6-20020a170906fd8600b00978af9d771dmr16992007ejb.17.1686761454634; Wed, 14 Jun 2023 09:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686761454; cv=none; d=google.com; s=arc-20160816; b=efFTtNFBklpF/naU99gPNZbj5f16XW7liiRr10b1h9VJH41IcjigxQvkB2CoKQbL+L G3lcZYjHBkkK5DCDLECx2PyaFC0FKKex7kso2qD0B8MpygzgvMcoXMYxJl4e8np4pHd0 bbhJ6/898GliWvuNDQHR1tFCPrXxLAxw5wjT7xwVZiy7Ej/nCz/JHUbgwDb69R9u1dAm 46/X8yEwep5jeiDd88nUzaMNWgNQcaOcMGu4XSxuhK9yCiT7z8aGIZS9FWSvRA4jWnmI Vwxi5xh01FvCOJPBYAhLlfQ92+iArJ0Vn7zoCwXDcUzKoJSoW+MG8HWx9i5cWtupOTDw uJqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=gDdTH2WfMpKvF+ssCnseVayIJwl0ccIUYCaycjuYfWo=; b=aa3VO+GmXyCa1qKmoIGjUMPY1sUhd041NEXj42NVtpgfD34txFsTDozOIoQi+YB2wu vv1YbM9nw0VCcDUytZeJaEQh3JP8NE9tgrnD7HsuEMcyzfiyoSXrY59sovfQPUiN/3VR WL1K8PyvKDIYODcTj7ND3MC0/8zlRdGpfhCRid+6IaJy5rpCbi42IWQAKPm4NTNGxbzS rXXUNX7i9IK3Xm6svhonD42tN++3V+Xrsg1KuvMDQsIiO+/1tTKVeur4sWVYVodezWTF BzGPmw73WU6nVYCI6D6pelQBxWHAvP2Id3EM+1cZS7PRD8/3zUaxmDafxehWRKGvRbVK hNoQ== 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 v20-20020a17090690d400b0097894b06eccsi8264849ejw.717.2023.06.14.09.50.38; Wed, 14 Jun 2023 09:50:54 -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; 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 6E7F268C4BD; Wed, 14 Jun 2023 19:50:05 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 352D768C42C for ; Wed, 14 Jun 2023 19:49:56 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id EF6502404EE for ; Wed, 14 Jun 2023 18:49:55 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id h2unqw2w2j-X for ; Wed, 14 Jun 2023 18:49:55 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id BDCC92404F5 for ; Wed, 14 Jun 2023 18:49:53 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 4F2E13A0586 for ; Wed, 14 Jun 2023 18:49:47 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 14 Jun 2023 18:48:51 +0200 Message-Id: <20230614164908.28712-4-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230614164908.28712-1-anton@khirnov.net> References: <20230614164908.28712-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 04/21] tests/fate: add a test for -streamloop with transcoding video+audio 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3ag7yfDZ8Mdi --- tests/fate/ffmpeg.mak | 6 + tests/ref/fate/ffmpeg-streamloop-transcode-av | 151 ++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 tests/ref/fate/ffmpeg-streamloop-transcode-av diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index c26c748934..b97f5ba974 100644 --- a/tests/fate/ffmpeg.mak +++ b/tests/fate/ffmpeg.mak @@ -132,6 +132,12 @@ fate-ffmpeg-fix_sub_duration_heartbeat: CMD = fmtstdout srt -fix_sub_duration \ -c:s srt \ -f null - +FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MATROSKA, H264 AAC, VOLUME_FILTER) += fate-ffmpeg-streamloop-transcode-av +# audio is float and we don't care about the contents, only timestamps and frame sizes, +# so zero the data +fate-ffmpeg-streamloop-transcode-av: CMD = \ + framecrc -auto_conversion_filters -stream_loop 3 -i $(TARGET_SAMPLES)/mkv/1242-small.mkv -af volume=0 + FATE_STREAMCOPY-$(call REMUX, MP4 MOV, EAC3_DEMUXER) += fate-copy-trac3074 fate-copy-trac3074: CMD = transcode eac3 $(TARGET_SAMPLES)/eac3/csi_miami_stereo_128_spx.eac3\ mp4 "-codec copy -map 0" "-codec copy" diff --git a/tests/ref/fate/ffmpeg-streamloop-transcode-av b/tests/ref/fate/ffmpeg-streamloop-transcode-av new file mode 100644 index 0000000000..bd2d50c4cf --- /dev/null +++ b/tests/ref/fate/ffmpeg-streamloop-transcode-av @@ -0,0 +1,151 @@ +#tb 0: 125/2997 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 1280x718 +#sar 0: 1/1 +#tb 1: 1/48000 +#media_type 1: audio +#codec_id 1: pcm_s16le +#sample_rate 1: 48000 +#channel_layout_name 1: stereo +0, 0, 0, 1, 1378560, 0xbaf121ba +1, 0, 0, 1024, 4096, 0x00000000 +1, 1024, 1024, 1024, 4096, 0x00000000 +0, 1, 1, 1, 1378560, 0xbaf121ba +1, 2040, 2040, 1024, 4096, 0x00000000 +1, 3048, 3048, 1024, 4096, 0x00000000 +0, 2, 2, 1, 1378560, 0x6579d31a +1, 4072, 4072, 1024, 4096, 0x00000000 +1, 5096, 5096, 1024, 4096, 0x00000000 +0, 3, 3, 1, 1378560, 0xca1deba8 +1, 6120, 6120, 1024, 4096, 0x00000000 +1, 7128, 7128, 1024, 4096, 0x00000000 +0, 4, 4, 1, 1378560, 0xd4eed467 +1, 8208, 8208, 1024, 4096, 0x00000000 +1, 9232, 9232, 1024, 4096, 0x00000000 +0, 5, 5, 1, 1378560, 0xd6e1d5b7 +1, 10248, 10248, 1024, 4096, 0x00000000 +1, 11256, 11256, 1024, 4096, 0x00000000 +0, 6, 6, 1, 1378560, 0x0b574d39 +1, 12280, 12280, 1024, 4096, 0x00000000 +1, 13304, 13304, 1024, 4096, 0x00000000 +0, 7, 7, 1, 1378560, 0x1bdd4d61 +1, 14328, 14328, 1024, 4096, 0x00000000 +1, 15336, 15336, 1024, 4096, 0x00000000 +0, 8, 8, 1, 1378560, 0x3b28f549 +1, 16360, 16360, 1024, 4096, 0x00000000 +1, 17384, 17384, 1024, 4096, 0x00000000 +0, 9, 9, 1, 1378560, 0x45b2f57b +1, 18408, 18408, 1024, 4096, 0x00000000 +1, 19416, 19416, 1024, 4096, 0x00000000 +0, 10, 10, 1, 1378560, 0x8955570e +1, 20440, 20440, 1024, 4096, 0x00000000 +1, 21464, 21464, 1024, 4096, 0x00000000 +1, 22488, 22488, 1024, 4096, 0x00000000 +1, 23496, 23496, 1024, 4096, 0x00000000 +0, 12, 12, 1, 1378560, 0x9c598000 +1, 25488, 25488, 1024, 4096, 0x00000000 +0, 13, 13, 1, 1378560, 0xbaf121ba +1, 26512, 26512, 1024, 4096, 0x00000000 +1, 27528, 27528, 1024, 4096, 0x00000000 +0, 14, 14, 1, 1378560, 0xbaf121ba +1, 28552, 28552, 1024, 4096, 0x00000000 +1, 29576, 29576, 1024, 4096, 0x00000000 +0, 15, 15, 1, 1378560, 0x6579d31a +1, 30600, 30600, 1024, 4096, 0x00000000 +1, 31608, 31608, 1024, 4096, 0x00000000 +0, 16, 16, 1, 1378560, 0xca1deba8 +1, 32688, 32688, 1024, 4096, 0x00000000 +1, 33712, 33712, 1024, 4096, 0x00000000 +0, 17, 17, 1, 1378560, 0xd4eed467 +1, 34728, 34728, 1024, 4096, 0x00000000 +1, 35736, 35736, 1024, 4096, 0x00000000 +0, 18, 18, 1, 1378560, 0xd6e1d5b7 +1, 36760, 36760, 1024, 4096, 0x00000000 +1, 37784, 37784, 1024, 4096, 0x00000000 +0, 19, 19, 1, 1378560, 0x0b574d39 +1, 38808, 38808, 1024, 4096, 0x00000000 +1, 39816, 39816, 1024, 4096, 0x00000000 +0, 20, 20, 1, 1378560, 0x1bdd4d61 +1, 40840, 40840, 1024, 4096, 0x00000000 +1, 41864, 41864, 1024, 4096, 0x00000000 +0, 21, 21, 1, 1378560, 0x3b28f549 +1, 42888, 42888, 1024, 4096, 0x00000000 +1, 43896, 43896, 1024, 4096, 0x00000000 +0, 22, 22, 1, 1378560, 0x45b2f57b +1, 44920, 44920, 1024, 4096, 0x00000000 +1, 45944, 45944, 1024, 4096, 0x00000000 +0, 23, 23, 1, 1378560, 0x8955570e +1, 46968, 46968, 1024, 4096, 0x00000000 +1, 47976, 47976, 1024, 4096, 0x00000000 +0, 24, 24, 1, 1378560, 0x9c598000 +1, 49968, 49968, 1024, 4096, 0x00000000 +0, 25, 25, 1, 1378560, 0xbaf121ba +1, 50992, 50992, 1024, 4096, 0x00000000 +1, 52008, 52008, 1024, 4096, 0x00000000 +0, 26, 26, 1, 1378560, 0xbaf121ba +1, 53032, 53032, 1024, 4096, 0x00000000 +0, 27, 27, 1, 1378560, 0x6579d31a +1, 54056, 54056, 1024, 4096, 0x00000000 +1, 55080, 55080, 1024, 4096, 0x00000000 +0, 28, 28, 1, 1378560, 0xca1deba8 +1, 56088, 56088, 1024, 4096, 0x00000000 +1, 57168, 57168, 1024, 4096, 0x00000000 +0, 29, 29, 1, 1378560, 0xd4eed467 +1, 58192, 58192, 1024, 4096, 0x00000000 +1, 59208, 59208, 1024, 4096, 0x00000000 +0, 30, 30, 1, 1378560, 0xd6e1d5b7 +1, 60216, 60216, 1024, 4096, 0x00000000 +1, 61240, 61240, 1024, 4096, 0x00000000 +0, 31, 31, 1, 1378560, 0x0b574d39 +1, 62264, 62264, 1024, 4096, 0x00000000 +1, 63288, 63288, 1024, 4096, 0x00000000 +0, 32, 32, 1, 1378560, 0x1bdd4d61 +1, 64296, 64296, 1024, 4096, 0x00000000 +1, 65320, 65320, 1024, 4096, 0x00000000 +0, 33, 33, 1, 1378560, 0x3b28f549 +1, 66344, 66344, 1024, 4096, 0x00000000 +1, 67368, 67368, 1024, 4096, 0x00000000 +0, 34, 34, 1, 1378560, 0x45b2f57b +1, 68376, 68376, 1024, 4096, 0x00000000 +1, 69400, 69400, 1024, 4096, 0x00000000 +0, 35, 35, 1, 1378560, 0x8955570e +1, 70424, 70424, 1024, 4096, 0x00000000 +1, 71448, 71448, 1024, 4096, 0x00000000 +0, 36, 36, 1, 1378560, 0x9c598000 +1, 72456, 72456, 1024, 4096, 0x00000000 +0, 37, 37, 1, 1378560, 0xbaf121ba +1, 74448, 74448, 1024, 4096, 0x00000000 +1, 75472, 75472, 1024, 4096, 0x00000000 +0, 38, 38, 1, 1378560, 0xbaf121ba +1, 76488, 76488, 1024, 4096, 0x00000000 +1, 77512, 77512, 1024, 4096, 0x00000000 +0, 39, 39, 1, 1378560, 0x6579d31a +1, 78536, 78536, 1024, 4096, 0x00000000 +1, 79560, 79560, 1024, 4096, 0x00000000 +0, 40, 40, 1, 1378560, 0xca1deba8 +1, 80568, 80568, 1024, 4096, 0x00000000 +1, 81648, 81648, 1024, 4096, 0x00000000 +0, 41, 41, 1, 1378560, 0xd4eed467 +1, 82672, 82672, 1024, 4096, 0x00000000 +1, 83688, 83688, 1024, 4096, 0x00000000 +0, 42, 42, 1, 1378560, 0xd6e1d5b7 +1, 84696, 84696, 1024, 4096, 0x00000000 +1, 85720, 85720, 1024, 4096, 0x00000000 +0, 43, 43, 1, 1378560, 0x0b574d39 +1, 86744, 86744, 1024, 4096, 0x00000000 +1, 87768, 87768, 1024, 4096, 0x00000000 +0, 44, 44, 1, 1378560, 0x1bdd4d61 +1, 88776, 88776, 1024, 4096, 0x00000000 +1, 89800, 89800, 1024, 4096, 0x00000000 +0, 45, 45, 1, 1378560, 0x3b28f549 +1, 90824, 90824, 1024, 4096, 0x00000000 +1, 91848, 91848, 1024, 4096, 0x00000000 +0, 46, 46, 1, 1378560, 0x45b2f57b +1, 92856, 92856, 1024, 4096, 0x00000000 +1, 93880, 93880, 1024, 4096, 0x00000000 +0, 47, 47, 1, 1378560, 0x8955570e +1, 94904, 94904, 1024, 4096, 0x00000000 +1, 95928, 95928, 1024, 4096, 0x00000000 +1, 96936, 96936, 1024, 4096, 0x00000000 +0, 49, 49, 1, 1378560, 0x9c598000