From patchwork Sat Dec 30 21:22:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45401 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5486126pzh; Sat, 30 Dec 2023 13:22:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKG2pZ7eZKyCJZyy5acaGiEv6fdSBVupAAg3xcT2L4qsuIjIpWxx0sMW2dsvWIO+5fhBG+ X-Received: by 2002:a50:d50b:0:b0:553:84c0:178c with SMTP id u11-20020a50d50b000000b0055384c0178cmr8951802edi.39.1703971366324; Sat, 30 Dec 2023 13:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971366; cv=none; d=google.com; s=arc-20160816; b=TaesYz1lrDqck5G/LpgDOMiP8AIHZg1OkRuMCtUG5Ham/95H5GKuN/K+7phrDAdWd3 vSJ3e7Es4LszThdUXYcF7en851yfihVIm3zoSEenviPx0PkReVEnvEfxTQQusCz2rNae MwnRRPmMvVz5jrGDKfoGdtJifa8kIyRTeHCSIagXztUYYgjBUh3c+Ajn44APht1fiJXA YXSIu0iQPzxKvIQEOS86J465SETa3UeK/uBO7J7lI8TBg2zi76x6g/LEjFuaiPmUxYog EpbXnAXARot37vGhkLISvIBFuwooWR6kdYSTm8IfCbtE1DbfDB9jJQ4OONuyT4O/MQoq Cchg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:date:to:from:message-id:delivered-to; bh=Lz808zZseZ8QsinWWQ7/QogpG8r3Xv28m4j51GTPgIk=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=wDqYCxrrMFLCepOlecpzE+hkYTKNKePyKkvcrTuxDjrPkRfRRW4TnrplOZstaZ9xSY lQHtasu20u6ThT4hd30YZSoE5sFl9P6Nr+GzD46ShvP/vijlguorr8KLAsi6TOllYnXi D12vrfd6Cp0R/YkbxkAIsC9qs83jn11T3bvFiXiceeb3V77S10vYq5TYT6oN6GtBi+Ur ieXKMh3+pcbvxXuBtO/n2z1rtIpqQv7NcylvnKmarksr5xU4pJxmvqM+AjgxdgmW1YuP z95PRMeEB+xHBjTTRTQ22yxg9qFEzcvzSdC7DWNmIsTO0azDFDCGC3PzjUArau1pY/wo QSQQ== 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 r8-20020a056402234800b0054cb41ad391si9327196eda.57.2023.12.30.13.22.45; Sat, 30 Dec 2023 13:22:46 -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 0CF9968CC4B; Sat, 30 Dec 2023 23:22:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E6BA468C28E for ; Sat, 30 Dec 2023 23:22:35 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id 882F05428493 for ; Sat, 30 Dec 2023 22:22:35 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id 45D425428441 for ; Sat, 30 Dec 2023 22:22:35 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: ffmpeg-devel@ffmpeg.org Date: Sat, 30 Dec 2023 22:22:34 +0100 User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 1/7] lavc/codec2utils: Use actual libcodec2 version 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: AU/BS8xPAo3+ Should compile without libcodec2 installed now /Tomas From 098a3b7e78dc0b1bbdfce051de21526f0a886b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 17:32:21 +0100 Subject: [PATCH 1/7] lavc/codec2utils: Use actual libcodec2 version --- libavcodec/codec2utils.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/libavcodec/codec2utils.h b/libavcodec/codec2utils.h index 6812ae895c..e1314b05b6 100644 --- a/libavcodec/codec2utils.h +++ b/libavcodec/codec2utils.h @@ -23,6 +23,10 @@ #define AVCODEC_CODEC2UTILS_H #include +#include "config.h" +#if CONFIG_LIBCODEC2 +#include +#endif //Highest mode we're willing to use. //Don't want to let users accidentally produce files that can't be decoded in the future. @@ -49,9 +53,16 @@ //Used in codec2raw demuxer and libcodec2 encoder static inline void codec2_make_extradata(uint8_t *ptr, int mode) { - //version 0.8 as of 2017-12-23 (r3386) - ptr[0] = 0; //major - ptr[1] = 8; //minor +#if CONFIG_LIBCODEC2 + ptr[0] = CODEC2_VERSION_MAJOR; + ptr[1] = CODEC2_VERSION_MINOR; +#else + // this codepath is only hit when demuxing raw codec2 with libcodec2 disabled, + // and only relevant when remuxing from raw codec2 to .c2, + // because version information is ignored except when writing the .c2 header + ptr[0] = 1; // version 1.2.0 is the latest we know of + ptr[1] = 2; +#endif ptr[2] = mode; //mode ptr[3] = 0; //flags } -- 2.39.2 From patchwork Sat Dec 30 21:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45402 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5486428pzh; Sat, 30 Dec 2023 13:24:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOD/+W440J43G5+7imWGOIZt/5laK+Oa8J6I9+RawlCSSnMTkbg9ASA5WKpX2mMg9/8CJR X-Received: by 2002:a17:906:2655:b0:a23:5076:763 with SMTP id i21-20020a170906265500b00a2350760763mr6492562ejc.123.1703971440699; Sat, 30 Dec 2023 13:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971440; cv=none; d=google.com; s=arc-20160816; b=gzwsvirtuzrh5rMFnqnPX3DJHl/3eKjhqjLXpC0VZeZCZJVDE/bC9zDYQGPi3p28fk lEKQam9q1NL3bXnbvAkNr/hj6Sta1bckNAxyCHQmiyZBMId+vtvz3YjEkW6Zt5y+pSyh GALRMpmmDnXPKBmWo1OKskT6uaCvO1/Ldt1WfGnZBr2fHFlzy0/fpxGQiVGs2LDhET8U jcSIuOqh2cgjGGHF4IHt9Z1sXuyHmrTtro4cqqyq8Sx0OP/zisu4YFgjeHNh9jZbJAHR TE3ungtt3G25GcjW0jOaCrElNE91vAs/YqxkyeAI/ziY/cjBRXA+kxSzeeqZDwpqNRoB MBPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=KxIKmUjnbGYSE5H/mv6uDjRNYcV72SLxcE1eW7iiJ7w=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=lQKmecYZkTYek2Vs9WF6+83d4NX2McHwb7SeCe7AidJ6b0rFssQ+vyiJBSmUYPXCy5 Q3f7s7u7tr38YmgN6TWqNyZXk8xIcqDaA5KWxXaOMEgGeEypIhaKK1Y3Vhy9DPOskIJP ejfWUZ4Vbcs9s3t9mJesRXgFUhUspDze8uWIgLKlRfHYq4L9RHvMUNTqkD+b+CtcAYsT UytzU8LcwuIZp9PEOvH406OKTlYzoLiBDd8psb0MHDnWlEbK6ncNxg2cEZL0nzaKca+8 8EdOKvSZmmxU7Zi2i0wgPw2ZaHA+OLAVngr+rZTh3kq5El8qGULalIVwGKjIVUfT1Y2I VMQw== 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 u3-20020a170906780300b00a26e6b7bab7si5260499ejm.713.2023.12.30.13.24.00; Sat, 30 Dec 2023 13:24:00 -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 2BB1368CC4B; Sat, 30 Dec 2023 23:23:58 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 465C568CC4B for ; Sat, 30 Dec 2023 23:23:51 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id DEFD35428493 for ; Sat, 30 Dec 2023 22:23:50 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id 8D5DC5428441 for ; Sat, 30 Dec 2023 22:23:50 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:23:49 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/7] lavc/libcodec2: Report actual bitrate used both when decoding and encoding 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: KKMm80VHRGPn Without this it looks like the encoder runs at 128 kbit/s /Tomas From 5c913a3eaf5cf8c21edc119870b7fdc8251bd900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Fri, 29 Dec 2023 14:09:51 +0100 Subject: [PATCH 2/7] lavc/libcodec2: Report actual bitrate used both when decoding and encoding --- libavcodec/libcodec2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libcodec2.c b/libavcodec/libcodec2.c index 950d48685e..2e03236b81 100644 --- a/libavcodec/libcodec2.c +++ b/libavcodec/libcodec2.c @@ -72,6 +72,7 @@ static av_cold int libcodec2_init_common(AVCodecContext *avctx, int mode) } codec2_set_natural_or_gray(c2->codec, 1); + avctx->bit_rate = avctx->sample_rate / avctx->frame_size * avctx->block_align * 8; return 0; -- 2.39.2 From patchwork Sat Dec 30 21:25:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45403 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5486754pzh; Sat, 30 Dec 2023 13:25:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdV3Sy1UZ9MyqqFoAXU1tDpmOBcb3lRpTY990sgLCUndiYS9EH7/X7R18DP2LYgBDL+77X X-Received: by 2002:a05:600c:3114:b0:40d:70c9:eb14 with SMTP id g20-20020a05600c311400b0040d70c9eb14mr2123101wmo.146.1703971521758; Sat, 30 Dec 2023 13:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971521; cv=none; d=google.com; s=arc-20160816; b=s0URrfInO1+hpMmsQoksLCIb7HY0OUJ4kqaSjJtKfaHl4ISh9auhjMUETupkQsAcP4 kyJO/assGRRMce+BydyEqq0MpaoDCkDTeQsFKFCX9bcWjOHfRnGqf/MvU3CXl5NHn1oL scUqelfT8EIfdmoT3JxYBB2zUYzwtkg4NJRkK3BccmjnK2njkNZSPGazjhdZ4e3hnl0x RhMwI5Kv4a5uRbdVD6NBPhCbZt0mI4qmxcJNtCF5MFNeAHErY98+3g7eu1Y54f96Sgfj sjhZrIv5dl4WadcN6fGdy3+rJp3tSCSh8lo3AF8vCYzMU2RZ4QaJapFV/w//xtflE7hy ub4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=nrO/YQG7BgBo7jvVMrFhO2LH2p5nGHgUtrWaFnrATaI=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=aI5K/SFimVS0j35SA0vTu3wZwjvEhROJepTD+y2EPvXZBTUNnJopVuLUKnVWZyNOru U6r/d6gcBz78wMBET9OmiZzggLr0xE8w0/A/upLXyew68QdWI0WkuCYKHJlfZdkF1IUh izwy8+23arEJB1fSgJCKnIigqfvc4DAbeRQgbVRqncMLNFiAeJWRmHAedabdt3joualX Z9VfFeyBDXAHIBSD82qGn5nAGCbiuBu0RfFDxO6c+nDEj3+CUOpsOT8FM9QIbYbd33tk J73d9CwSRR9zQA0FB47KHO1GqWHHoETtaiUXqO9OryS1bqlxwFJXGFt0gLLuGC7fOr1K HgSA== 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 oq2-20020a170906cc8200b00a26f1e22c1esi4823986ejb.311.2023.12.30.13.25.21; Sat, 30 Dec 2023 13:25:21 -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 4DF4168CCC9; Sat, 30 Dec 2023 23:25:19 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 898D668CC40 for ; Sat, 30 Dec 2023 23:25:12 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id 31B815428493 for ; Sat, 30 Dec 2023 22:25:12 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id E383A5428441 for ; Sat, 30 Dec 2023 22:25:11 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:25:11 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 3/7] lavf/codec2: Compute duration from filesize 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: K5wQOps4pnE0 Previous version accidentally used CODEC2_EXTRADATA_SIZE not CODEC2_HEADER_SIZE /Tomas From 6fda817b2bc237081e6bf6daeff9087b6543647b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 16:32:49 +0100 Subject: [PATCH 3/7] lavf/codec2: Compute duration from filesize --- libavformat/codec2.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 1d6ef2a14a..78bc339209 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -124,9 +124,10 @@ static int codec2_mode_bit_rate(AVFormatContext *s, int mode) return 8 * 8000 * block_align / frame_size; } -static int codec2_read_header_common(AVFormatContext *s, AVStream *st) +static int codec2_read_header_common(AVFormatContext *s, AVStream *st, int header) { int mode = codec2_mode_from_extradata(st->codecpar->extradata); + int64_t sz = avio_size(s->pb); st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_CODEC2; @@ -143,6 +144,12 @@ static int codec2_read_header_common(AVFormatContext *s, AVStream *st) return AVERROR_INVALIDDATA; } + // compute duration from filesize + if (sz >= header) { + int64_t frames = (sz - header) / st->codecpar->block_align; + if (frames <= INT64_MAX / st->codecpar->frame_size) + st->duration = frames * st->codecpar->frame_size; + } avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); return 0; @@ -180,7 +187,7 @@ static int codec2_read_header(AVFormatContext *s) ffformatcontext(s)->data_offset = CODEC2_HEADER_SIZE; - return codec2_read_header_common(s, st); + return codec2_read_header_common(s, st, CODEC2_HEADER_SIZE); } static int codec2_read_packet(AVFormatContext *s, AVPacket *pkt) @@ -258,7 +265,7 @@ static int codec2raw_read_header(AVFormatContext *s) codec2_make_extradata(st->codecpar->extradata, c2->mode); - return codec2_read_header_common(s, st); + return codec2_read_header_common(s, st, 0); } //transcoding report2074.c2 to wav went from 7.391s to 5.322s with -frames_per_packet 1000 compared to default, same sha1sum -- 2.39.2 From patchwork Sat Dec 30 21:25:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45404 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5486858pzh; Sat, 30 Dec 2023 13:25:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHm/GoMSNC8TEjzgpPBtkLZOjBxq9fFf5qy2hnZ1nfnSTjd4xPYNz+UVI3rRqrgfLmwUgJD X-Received: by 2002:a05:6402:524d:b0:554:8bfd:30 with SMTP id t13-20020a056402524d00b005548bfd0030mr11957820edd.5.1703971546807; Sat, 30 Dec 2023 13:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971546; cv=none; d=google.com; s=arc-20160816; b=Bfg0YpQs8xfIrHbbGr4votxAL+o/2n0BNY4+eyhXlYoWpugkt+1t5cYNo7K71GI/+s WSLUplBfmDaLUJS+R+RRjUduEaAuPJeIDFLaGrB3vowD7M8VmMMRREUZRQP84KydFyom YEffppFwCKgMplKIJan40LiJbC9LVSBgjvezjOK8S5GtqNwsMET6W7A2RcJ+2It4oWUo WhXDSBFTjZS/EqjBqXVH27rHLSrYleELAIvkpNNHLDy9xHuZl6kXSz1ejdhPExrxtYSM ZhHVcYJG8yvbdHIOrO4fL097HOSQyVmX3KbXI1UoRbrg0ksveomYq0a7Ir1b/NUCpHgM UHMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=DuANwt3/5pTyEBYKvsjehNqdRKQSD6bc7EhLpjDHXiU=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=hhKfTnlDGo/uM4QYsxR9kZWUYYj11NPi5DsQilAiaSxPiUZAP3ydwdYQpDl8mt2faS ENCBFr/HrmKIbxyfcv+sK+vbV94jxFmeb5+9QcWvv1eD2afzpWM70gls09EuOMzUn1ID poSDqzsf+nKSYhopSwxvbFI2YWT8fPBW/iXH/GjpxGzPUud0wG1F0vjcNSolbWYbpLJT B+XciZp4t7XKKRggkSxYNXC312Gm9i+B9asPzbra0GUi3v702WK3q49nlfNYeeZPVhL+ Rh2jrwIA953Nrwnx2R5wQkhRR4rTAl6dXW8xS5uQ+tVUaZJSNydTFRzt/tY4dLUHPu3f x41g== 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 j22-20020a508a96000000b00550db2b31ebsi9023108edj.294.2023.12.30.13.25.46; Sat, 30 Dec 2023 13:25:46 -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 5D3DE68CD06; Sat, 30 Dec 2023 23:25:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8AB7768CC40 for ; Sat, 30 Dec 2023 23:25:41 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id D65B55428493 for ; Sat, 30 Dec 2023 22:25:40 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id 91E945428441 for ; Sat, 30 Dec 2023 22:25:40 +0100 (CET) Message-ID: <632179a77b474ea818c7023609398e7f4d0a6daa.camel@haerdin.se> From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:25:39 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 4/7] lavf/codec2: Allow versions between 0.8 and 1.X 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: uBtqmPEb+Pxs From 5a660d91c2f34c4e464212bf3694cdb7bca80f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 17:33:18 +0100 Subject: [PATCH 4/7] lavf/codec2: Allow versions between 0.8 and 1.X --- libavformat/codec2.c | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 78bc339209..8299302acc 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -37,8 +37,11 @@ //the lowest version we should ever run across is 0.8 //we may run across later versions as the format evolves -#define EXPECTED_CODEC2_MAJOR_VERSION 0 -#define EXPECTED_CODEC2_MINOR_VERSION 8 +#define MIN_MAJOR_VERSION 0 +#define MIN_MINOR_VERSION 8 +//accept any minor version with major version 1.X +//as of writing the latest release is 1.2.0 +#define MAX_MAJOR_VERSION 1 typedef struct { const AVClass *class; @@ -46,17 +49,20 @@ typedef struct { int frames_per_packet; } Codec2Context; +static int check_version(uint8_t major, uint8_t minor) { + //no .c2 files prior to 0.8 or later than 1.X + if (major == MIN_MAJOR_VERSION && minor < MIN_MINOR_VERSION) + return 1; + if (major > MAX_MAJOR_VERSION) + return 1; + return 0; +} + static int codec2_probe(const AVProbeData *p) { //must start wih C0 DE C2 - if (AV_RB24(p->buf) != CODEC2_MAGIC) { - return 0; - } - - //no .c2 files prior to 0.8 - //be strict about major version while we're at it - if (p->buf[3] != EXPECTED_CODEC2_MAJOR_VERSION || - p->buf[4] < EXPECTED_CODEC2_MINOR_VERSION) { + if (AV_RB24(p->buf) != CODEC2_MAGIC || + check_version(p->buf[3], p->buf[4])) { return 0; } @@ -158,7 +164,8 @@ static int codec2_read_header_common(AVFormatContext *s, AVStream *st, int heade static int codec2_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); - int ret, version; + int ret; + uint8_t major, minor; if (!st) { return AVERROR(ENOMEM); @@ -179,9 +186,10 @@ static int codec2_read_header(AVFormatContext *s) return ret; } - version = AV_RB16(st->codecpar->extradata); - if ((version >> 8) != EXPECTED_CODEC2_MAJOR_VERSION) { - avpriv_report_missing_feature(s, "Major version %i", version >> 8); + major = st->codecpar->extradata[0]; + minor = st->codecpar->extradata[1]; + if (check_version(major, minor)) { + avpriv_report_missing_feature(s, "Version %i.%i", major, minor); return AVERROR_PATCHWELCOME; } -- 2.39.2 From patchwork Sat Dec 30 21:25:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45405 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5486934pzh; Sat, 30 Dec 2023 13:26:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/E2b+hN9wMZv98kzC+FqdR0cMzbIKUli3Sg7w/D9BkmlJp3zXdhzVtnVaXcTx/R02xMBy X-Received: by 2002:a50:a6d2:0:b0:554:4eec:7efa with SMTP id f18-20020a50a6d2000000b005544eec7efamr8455533edc.9.1703971566793; Sat, 30 Dec 2023 13:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971566; cv=none; d=google.com; s=arc-20160816; b=eLJTwUZZXuDm8IyyPWqRQH76rUGjg4ynjSdJdn46o+Cp0mxHNUEwYpDlUiLsDIf51z 3DkO06hgu9Xg1q4839Wd1KfhwaB9RSKU6aRJ+Wpi2VX7GD5c2dbU/HpN5UYO4+BwVi7b T1T+yB0d3R43q3aVrf7dNtoJxMz93ITdA1awmjUDkXt/veSFYCAT5tLXrw3OU0NUw33F j9mZBc/nVtsnVLBiqrIrDJscs1MShusT644/mNKEoOQe/7JNn8LpT1bV3i+Rwj99zUkz lchiIvc8q0kc06TC7HVahdEShc1aCaIZQnrwGFZeAwEIcwRoIHIQrBvwhi7cxOAT9Vap 4QMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=PfTHUxM/OBahafK6pQxY/O6Gu2WRq2hRT6t5AFmCB4I=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=xliA7MhlkuuYV+uACFQKiboujcyIvq7avTuRd3MjDsYoW8Vu5cIra5ie0tmgtF78Lj 14NKflyF8pEMT4tuZkHZXpbiHkVOtmzU96Yb/6M6LTHrZCsev/lhID3zhsphdX0UCJLR xi2ODk00DLxFR8AY+A6qCrE+quF5Po+Z/iublFdYmvPPPC0IUdwWUnFiVrsaSmLdLp6H H/5K2wnfaaD7ssrQrG2MTdViwqu6idHEbHSeGHpld8MBQR+JMzyOHDUQG+WD0F/hg+hi zFSK5Az4S8UbNjnPbq8XIL6+M5LdI6LsmcPIXUYXIT1+n4oF3H7hm0E8zXvrahk+fyyi ApSw== 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 g21-20020a0564021ed500b005549748fea0si6527070edg.67.2023.12.30.13.26.06; Sat, 30 Dec 2023 13:26:06 -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 6B52068CD3F; Sat, 30 Dec 2023 23:26:04 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4896868CC4B for ; Sat, 30 Dec 2023 23:25:57 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id E4A9E5428493 for ; Sat, 30 Dec 2023 22:25:56 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id A5EA85428441 for ; Sat, 30 Dec 2023 22:25:56 +0100 (CET) Message-ID: <79aa03ff5453a66eebc6df6cda93463aa64dd71a.camel@haerdin.se> From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:25:55 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 5/7] lavf/codec2: Multiple of block_align -> not corrupt 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: KH8tyUPCFkBL From 743666602cd9f6f213b81e3bbc8a3547b518db41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 22:50:18 +0100 Subject: [PATCH 5/7] lavf/codec2: Multiple of block_align -> not corrupt --- libavformat/codec2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 8299302acc..7447109752 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -223,6 +223,11 @@ static int codec2_read_packet(AVFormatContext *s, AVPacket *pkt) n = ret / block_align; pkt->duration = n * frame_size; + //un-mark packet as corrupt if size is a multiple of block_align + //this can happen when frames_per_packet > 1 + if (ret % block_align == 0) + pkt->flags &= ~AV_PKT_FLAG_CORRUPT; + return ret; } -- 2.39.2 From patchwork Sat Dec 30 21:26:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45406 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5487027pzh; Sat, 30 Dec 2023 13:26:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmTCfqXZadtJUsb5wVBzJChuQap02zZUOutieLBaC8ZbTTHPEFNA40giGSuagvRzBGxkf9 X-Received: by 2002:a17:906:b196:b0:a27:43b0:7a10 with SMTP id w22-20020a170906b19600b00a2743b07a10mr5926025ejy.1.1703971590848; Sat, 30 Dec 2023 13:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971590; cv=none; d=google.com; s=arc-20160816; b=p/3fQ1G36LHTvWOTAFRWIbtMrRPI0BzTDH8vfhkmzOzjEFub06qqGAYGb34IUCgfUd IBQYcQatODnUBFSlTvMtVg6lS0jx8Unc17g8R9zFlq080n9+3F3u3C0GC9IBel34Duxy BgTxDkVp0f4cYyvcsw98fKpJ9edrzRDW1cHEz7gwjmOYEglVJVUANBpEMpyPhReRdtk9 boLlu1uIldpdJzw3CVoRLwX/CS1cQhHOmBNdZYgiBXwLFRiZLy6w8F4EQkyh2pNi/Zny yA2iT25Py/T4mPbiSVA5VxZKxl5er+e1rAcs2RM4RL185Ke7rRr1X4Wn1Fl5We8AHxsB q6QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=W9iI39bpl25OWF62HXBWBioDbXPF9jmLYqoO7KWOYJA=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=FRoAbmk/9TqQDBnNBquJ70mUHx3FF+Aahq8YWf/l63/8j9JI93MDFZeGWMzirODsy6 UaK+3R6IxzSHHw7GS+eFEYjqyk03P9Y9FY8rFjM+fmu24XNshIjZwcx8AxLB8ONMF2O8 yq54nZCTVXfea/xrfTXhoVn1TXHjm+ssLCdAGQMtthNrAsojp8UsPwF9Fhnyp17iFvAG /pdmtlU0z9JZsK3GSqrg1ICaZxAtjR2x6BxPkQ7DM0sZAdwVyixX8sXd80+vuH6tphHK rpDBdSKG+nBdBdNbPzUzkqyQFV5dgHkFNNAxq53utqbC6+IHv/+FFIcpHM5ne372QMxb qAqw== 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 t27-20020a170906179b00b00a26ea1b1406si5624940eje.890.2023.12.30.13.26.30; Sat, 30 Dec 2023 13:26:30 -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 5FE9168CAB8; Sat, 30 Dec 2023 23:26:28 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0C59268CAB8 for ; Sat, 30 Dec 2023 23:26:22 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id A75A05428493 for ; Sat, 30 Dec 2023 22:26:21 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id 6A3BD5428441 for ; Sat, 30 Dec 2023 22:26:21 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:26:20 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 6/7] lavf/codec2: Silence warnings when either muxer/demuxer is disabled 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: fOBPUG12MRuU From f64b4a90ea22421db494d87f5904ae8c7294c871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 22:52:25 +0100 Subject: [PATCH 6/7] lavf/codec2: Silence warnings when either muxer/demuxer is disabled --- libavformat/codec2.c | 76 +++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 7447109752..8ff14bc72a 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -49,6 +49,7 @@ typedef struct { int frames_per_packet; } Codec2Context; +#if CONFIG_CODEC2_DEMUXER static int check_version(uint8_t major, uint8_t minor) { //no .c2 files prior to 0.8 or later than 1.X if (major == MIN_MAJOR_VERSION && minor < MIN_MINOR_VERSION) @@ -69,7 +70,9 @@ static int codec2_probe(const AVProbeData *p) //32 bits of identification -> low score return AVPROBE_SCORE_EXTENSION + 1; } +#endif +#if CONFIG_CODEC2_DEMUXER || CONFIG_CODEC2RAW_DEMUXER //Mimics codec2_samples_per_frame() static int codec2_mode_frame_size(AVFormatContext *s, int mode) { @@ -161,6 +164,41 @@ static int codec2_read_header_common(AVFormatContext *s, AVStream *st, int heade return 0; } +static int codec2_read_packet(AVFormatContext *s, AVPacket *pkt) +{ + Codec2Context *c2 = s->priv_data; + AVStream *st = s->streams[0]; + int ret, size, n, block_align, frame_size; + + block_align = st->codecpar->block_align; + frame_size = st->codecpar->frame_size; + + if (block_align <= 0 || frame_size <= 0 || c2->frames_per_packet <= 0) { + return AVERROR(EINVAL); + } + + //try to read desired number of frames, compute n from to actual number of bytes read + size = c2->frames_per_packet * block_align; + ret = av_get_packet(s->pb, pkt, size); + if (ret < 0) { + return ret; + } + + //only set duration - compute_pkt_fields() and ff_pcm_read_seek() takes care of everything else + //tested by spamming the seek functionality in ffplay + n = ret / block_align; + pkt->duration = n * frame_size; + + //un-mark packet as corrupt if size is a multiple of block_align + //this can happen when frames_per_packet > 1 + if (ret % block_align == 0) + pkt->flags &= ~AV_PKT_FLAG_CORRUPT; + + return ret; +} +#endif + +#if CONFIG_CODEC2_DEMUXER static int codec2_read_header(AVFormatContext *s) { AVStream *st = avformat_new_stream(s, NULL); @@ -197,40 +235,9 @@ static int codec2_read_header(AVFormatContext *s) return codec2_read_header_common(s, st, CODEC2_HEADER_SIZE); } +#endif -static int codec2_read_packet(AVFormatContext *s, AVPacket *pkt) -{ - Codec2Context *c2 = s->priv_data; - AVStream *st = s->streams[0]; - int ret, size, n, block_align, frame_size; - - block_align = st->codecpar->block_align; - frame_size = st->codecpar->frame_size; - - if (block_align <= 0 || frame_size <= 0 || c2->frames_per_packet <= 0) { - return AVERROR(EINVAL); - } - - //try to read desired number of frames, compute n from to actual number of bytes read - size = c2->frames_per_packet * block_align; - ret = av_get_packet(s->pb, pkt, size); - if (ret < 0) { - return ret; - } - - //only set duration - compute_pkt_fields() and ff_pcm_read_seek() takes care of everything else - //tested by spamming the seek functionality in ffplay - n = ret / block_align; - pkt->duration = n * frame_size; - - //un-mark packet as corrupt if size is a multiple of block_align - //this can happen when frames_per_packet > 1 - if (ret % block_align == 0) - pkt->flags &= ~AV_PKT_FLAG_CORRUPT; - - return ret; -} - +#if CONFIG_CODEC2_MUXER static int codec2_write_header(AVFormatContext *s) { AVStream *st; @@ -253,7 +260,9 @@ static int codec2_write_header(AVFormatContext *s) return 0; } +#endif +#if CONFIG_CODEC2RAW_DEMUXER static int codec2raw_read_header(AVFormatContext *s) { Codec2Context *c2 = s->priv_data; @@ -280,6 +289,7 @@ static int codec2raw_read_header(AVFormatContext *s) return codec2_read_header_common(s, st, 0); } +#endif //transcoding report2074.c2 to wav went from 7.391s to 5.322s with -frames_per_packet 1000 compared to default, same sha1sum #define FRAMES_PER_PACKET \ -- 2.39.2 From patchwork Sat Dec 30 21:27:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 45407 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp5487319pzh; Sat, 30 Dec 2023 13:27:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFha4pz01+98qGwzZCi9oK78WsLuOpkMImtEWPJT7o8GjiXjUPzXqB78ES6tJO+HJeAzms+ X-Received: by 2002:a17:906:1ecf:b0:a27:32aa:2dda with SMTP id m15-20020a1709061ecf00b00a2732aa2ddamr3269575ejj.96.1703971670205; Sat, 30 Dec 2023 13:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703971670; cv=none; d=google.com; s=arc-20160816; b=aEau7LdTV45Wt0Ne8sGwe/Rabt2bftP1vjQt5jWvenhVovVCe3zuYGnQ+k1WpnRMjq qOf/WboJ5exrWWHaujLUlxGx0gce6Pl1ZNlvqx+3OIufIxTy5aBp1DS3Un8+G4hr0UAx p1662SI1Of4FEDXUWZy0sQbEuYpyqW7cxdr1QG2JH5Rt6DI4zoWv2g1WK08zHFOrZO3G 4zBPK/vcLdrrLI4Ew2zApxlnRHRDQZAcjBNerrinHh8VAxtvfr5kJAZ2NToJstPuehx2 tX+ZoxzSVgplru1k208xkyYqb82cLXN6W10TfmwrVwvhh7lijoJXv8sTffQQt218WmAp eYxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:user-agent:references:in-reply-to:date:to:from :message-id:delivered-to; bh=u7NOmJUafIv0g4luvuoMtY8pfDLerkrIBswRNs07hj8=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=EB6TMAmIlBggIGkgTX2Fblvxj+fSZ4CAdOsQ9Z0ead1+JLnlRTzL2KkZEdukGaOFW1 yMAqQApAG60M+wgOS1n0ABFfs7n1ikP3nZT3C+fcLT8hiPmgp4KqTGXpfMLizEZsSsJN xLk1M8sQZnq/cpZkebIP54Oh71HfSWDDeTEcuLN+7OzF8ebO3TAlbKjebDknMU23oor5 nAbdt5kwLMJUrPjImKGdraS753hGkhBIy0xILSnGmEeN28cNEDmad34nZBEzi/a3UUMn jMRG2eYUYnbg3cy0aAmZLlQeU1sPJQYTKXSBG4+FHC2xNYIu6P337ZYFFPneGTthN0wH rtZA== 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 m23-20020a1709062b9700b00a27d61e1564si305410ejg.414.2023.12.30.13.27.49; Sat, 30 Dec 2023 13:27:50 -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 9B42868CD0C; Sat, 30 Dec 2023 23:27:46 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from glom.nmugroup.com (glom.nmugroup.com [193.183.80.6]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8BADE68CAB8 for ; Sat, 30 Dec 2023 23:27:39 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by glom.nmugroup.com (Postfix) with ESMTP id 2F83F5428493 for ; Sat, 30 Dec 2023 22:27:39 +0100 (CET) Received: from debian.lan (unknown [IPv6:2a00:66c0:a::72c]) (Authenticated sender: git01) by glom.nmugroup.com (Postfix) with ESMTPSA id A552A5428441 for ; Sat, 30 Dec 2023 22:27:38 +0100 (CET) Message-ID: From: Tomas =?iso-8859-1?q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 30 Dec 2023 22:27:37 +0100 In-Reply-To: References: User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 7/7] Add FATE tests for codec2, codec2raw and libcodec2 wrapper 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: nZOAaJGpbuk/ codec2 and codec2raw tests now share refs Tested that the libx264 test still works /Tomas From 94495be5cdf78f57f31951a16bfd34a5b413eaa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Wed, 27 Dec 2023 18:35:38 +0100 Subject: [PATCH 7/7] Add FATE tests for codec2, codec2raw and libcodec2 wrapper --- tests/Makefile | 1 + tests/fate-run.sh | 37 +++-- tests/fate/codec2.mak | 79 +++++++++++ tests/ref/fate/codec2-demux-1200 | 1 + tests/ref/fate/codec2-demux-1300 | 1 + tests/ref/fate/codec2-demux-1400 | 1 + tests/ref/fate/codec2-demux-1600 | 1 + tests/ref/fate/codec2-demux-2400 | 1 + tests/ref/fate/codec2-demux-3200 | 1 + tests/ref/fate/codec2-demux-700C | 1 + tests/ref/fate/codec2-demux-cut-1200 | 1 + tests/ref/fate/codec2-demux-cut-1300 | 1 + tests/ref/fate/codec2-demux-cut-1400 | 1 + tests/ref/fate/codec2-demux-cut-1600 | 1 + tests/ref/fate/codec2-demux-cut-2400 | 1 + tests/ref/fate/codec2-demux-cut-3200 | 1 + tests/ref/fate/codec2-demux-cut-700C | 1 + tests/ref/fate/codec2-probe-1200 | 77 +++++++++++ tests/ref/fate/codec2-probe-1300 | 77 +++++++++++ tests/ref/fate/codec2-probe-1400 | 77 +++++++++++ tests/ref/fate/codec2-probe-1600 | 77 +++++++++++ tests/ref/fate/codec2-probe-2400 | 152 +++++++++++++++++++++ tests/ref/fate/codec2-probe-3200 | 152 +++++++++++++++++++++ tests/ref/fate/codec2-probe-700C | 77 +++++++++++ tests/ref/fate/codec2-probe-cut-1200 | 18 +++ tests/ref/fate/codec2-probe-cut-1300 | 16 +++ tests/ref/fate/codec2-probe-cut-1400 | 16 +++ tests/ref/fate/codec2-probe-cut-1600 | 14 ++ tests/ref/fate/codec2-probe-cut-2400 | 18 +++ tests/ref/fate/codec2-probe-cut-3200 | 14 ++ tests/ref/fate/codec2-probe-cut-700C | 26 ++++ tests/ref/fate/codec2-probe-multi-1200 | 10 ++ tests/ref/fate/codec2-probe-multi-1300 | 10 ++ tests/ref/fate/codec2-probe-multi-1400 | 10 ++ tests/ref/fate/codec2-probe-multi-1600 | 10 ++ tests/ref/fate/codec2-probe-multi-2400 | 17 +++ tests/ref/fate/codec2-probe-multi-3200 | 17 +++ tests/ref/fate/codec2-probe-multi-700C | 10 ++ tests/ref/fate/codec2-probe-multi-cut-1200 | 4 + tests/ref/fate/codec2-probe-multi-cut-1300 | 4 + tests/ref/fate/codec2-probe-multi-cut-1400 | 4 + tests/ref/fate/codec2-probe-multi-cut-1600 | 4 + tests/ref/fate/codec2-probe-multi-cut-2400 | 4 + tests/ref/fate/codec2-probe-multi-cut-3200 | 4 + tests/ref/fate/codec2-probe-multi-cut-700C | 5 + tests/ref/fate/libcodec2-1200 | 12 ++ tests/ref/fate/libcodec2-1300 | 12 ++ tests/ref/fate/libcodec2-1400 | 12 ++ tests/ref/fate/libcodec2-1600 | 12 ++ tests/ref/fate/libcodec2-2400 | 19 +++ tests/ref/fate/libcodec2-3200 | 19 +++ tests/ref/fate/libcodec2-700C | 12 ++ tests/ref/fate/libcodec2-cut-1200 | 6 + tests/ref/fate/libcodec2-cut-1300 | 6 + tests/ref/fate/libcodec2-cut-1400 | 6 + tests/ref/fate/libcodec2-cut-1600 | 6 + tests/ref/fate/libcodec2-cut-2400 | 6 + tests/ref/fate/libcodec2-cut-3200 | 6 + tests/ref/fate/libcodec2-cut-700C | 7 + 59 files changed, 1186 insertions(+), 10 deletions(-) create mode 100644 tests/fate/codec2.mak create mode 100644 tests/ref/fate/codec2-demux-1200 create mode 100644 tests/ref/fate/codec2-demux-1300 create mode 100644 tests/ref/fate/codec2-demux-1400 create mode 100644 tests/ref/fate/codec2-demux-1600 create mode 100644 tests/ref/fate/codec2-demux-2400 create mode 100644 tests/ref/fate/codec2-demux-3200 create mode 100644 tests/ref/fate/codec2-demux-700C create mode 100644 tests/ref/fate/codec2-demux-cut-1200 create mode 100644 tests/ref/fate/codec2-demux-cut-1300 create mode 100644 tests/ref/fate/codec2-demux-cut-1400 create mode 100644 tests/ref/fate/codec2-demux-cut-1600 create mode 100644 tests/ref/fate/codec2-demux-cut-2400 create mode 100644 tests/ref/fate/codec2-demux-cut-3200 create mode 100644 tests/ref/fate/codec2-demux-cut-700C create mode 100644 tests/ref/fate/codec2-probe-1200 create mode 100644 tests/ref/fate/codec2-probe-1300 create mode 100644 tests/ref/fate/codec2-probe-1400 create mode 100644 tests/ref/fate/codec2-probe-1600 create mode 100644 tests/ref/fate/codec2-probe-2400 create mode 100644 tests/ref/fate/codec2-probe-3200 create mode 100644 tests/ref/fate/codec2-probe-700C create mode 100644 tests/ref/fate/codec2-probe-cut-1200 create mode 100644 tests/ref/fate/codec2-probe-cut-1300 create mode 100644 tests/ref/fate/codec2-probe-cut-1400 create mode 100644 tests/ref/fate/codec2-probe-cut-1600 create mode 100644 tests/ref/fate/codec2-probe-cut-2400 create mode 100644 tests/ref/fate/codec2-probe-cut-3200 create mode 100644 tests/ref/fate/codec2-probe-cut-700C create mode 100644 tests/ref/fate/codec2-probe-multi-1200 create mode 100644 tests/ref/fate/codec2-probe-multi-1300 create mode 100644 tests/ref/fate/codec2-probe-multi-1400 create mode 100644 tests/ref/fate/codec2-probe-multi-1600 create mode 100644 tests/ref/fate/codec2-probe-multi-2400 create mode 100644 tests/ref/fate/codec2-probe-multi-3200 create mode 100644 tests/ref/fate/codec2-probe-multi-700C create mode 100644 tests/ref/fate/codec2-probe-multi-cut-1200 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-1300 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-1400 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-1600 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-2400 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-3200 create mode 100644 tests/ref/fate/codec2-probe-multi-cut-700C create mode 100644 tests/ref/fate/libcodec2-1200 create mode 100644 tests/ref/fate/libcodec2-1300 create mode 100644 tests/ref/fate/libcodec2-1400 create mode 100644 tests/ref/fate/libcodec2-1600 create mode 100644 tests/ref/fate/libcodec2-2400 create mode 100644 tests/ref/fate/libcodec2-3200 create mode 100644 tests/ref/fate/libcodec2-700C create mode 100644 tests/ref/fate/libcodec2-cut-1200 create mode 100644 tests/ref/fate/libcodec2-cut-1300 create mode 100644 tests/ref/fate/libcodec2-cut-1400 create mode 100644 tests/ref/fate/libcodec2-cut-1600 create mode 100644 tests/ref/fate/libcodec2-cut-2400 create mode 100644 tests/ref/fate/libcodec2-cut-3200 create mode 100644 tests/ref/fate/libcodec2-cut-700C diff --git a/tests/Makefile b/tests/Makefile index 744dbcdfb3..cec8388aec 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -166,6 +166,7 @@ include $(SRC_PATH)/tests/fate/canopus.mak include $(SRC_PATH)/tests/fate/cbs.mak include $(SRC_PATH)/tests/fate/cdxl.mak include $(SRC_PATH)/tests/fate/checkasm.mak +include $(SRC_PATH)/tests/fate/codec2.mak # Must be included after lavf-container.mak include $(SRC_PATH)/tests/fate/concatdec.mak include $(SRC_PATH)/tests/fate/cover-art.mak diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 8efb1586b8..d18eab8849 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -144,15 +144,25 @@ ffmpeg(){ run ffmpeg${PROGSUF}${EXECSUF} ${ffmpeg_args} } -ffprobe_demux(){ - filename=$1 - shift +ffprobe_demux_common(){ + fmtops=$1 + filename=$2 + shift 2 print_filename=$(basename "$filename") run ffprobe${PROGSUF}${EXECSUF} -print_filename "${print_filename}" \ - -of compact -bitexact -show_format -show_streams -show_packets \ + -of compact -bitexact -show_format -show_streams -show_packets $fmtops \ -show_data_hash CRC32 "$filename" "$@" } +ffprobe_demux(){ + ffprobe_demux_common "" "$@" +} + +ffprobe_demux_codec2(){ + # Do not output packet=pos stream=extradata_hash,disposition format=size,format_name,probe_score,bit_rate + ffprobe_demux_common "-show_entries packet=codec_type,stream_index,pts,pts_time,dts,dts_time,duration,duration_time,size,flags,data_hash -show_entries stream=index,codec_name,profile,codec_type,codec_tag_string,codec_tag,sample_fmt,sample_rate,channels,channel_layout,bits_per_sample,initial_padding,id,r_frame_rate,avg_frame_rate,time_base,start_pts,start_time,duration_ts,duration,bit_rate,max_bit_rate,bits_per_raw_sample,nb_frames,nb_read_frames,nb_read_packets,extradata_size -show_entries format=filename,nb_streams,nb_programs,start_time,duration" "$@" +} + framecrc(){ ffmpeg "$@" -bitexact -f framecrc - } @@ -295,19 +305,26 @@ stream_remux(){ # this function is for testing external encoders, # where the precise output is not controlled by us # we can still test e.g. that the output can be decoded correctly -enc_external(){ - srcfile=$1 - enc_fmt=$2 - enc_opt=$3 - probe_opt=$4 +enc_external_subfile(){ + start=$1 + end=$2 + srcfile=$3 + enc_fmt=$4 + enc_opt=$5 + probe_opt=$6 srcfile=$(target_path $srcfile) encfile=$(target_path "${outdir}/${test}.${enc_fmt}") - ffmpeg -i $srcfile $enc_opt -f $enc_fmt -y $encfile || return + ffmpeg -i "subfile,,start,$start,end,$end,,:$srcfile" $enc_opt -f $enc_fmt -y $encfile || return run ffprobe${PROGSUF}${EXECSUF} -bitexact $probe_opt $encfile || return } +enc_external(){ + enc_external_subfile 0 0 "$@" +} + + # FIXME: There is a certain duplication between the avconv-related helper # functions above and below that should be refactored. ffmpeg2="$target_exec ${target_path}/ffmpeg${PROGSUF}${EXECSUF}" diff --git a/tests/fate/codec2.mak b/tests/fate/codec2.mak new file mode 100644 index 0000000000..1b2d1696b6 --- /dev/null +++ b/tests/fate/codec2.mak @@ -0,0 +1,79 @@ +# Modes 700 and 700B no longer exist +CODEC2_MODES = 3200 2400 1600 1400 1300 1200 700C + +# This exercises both the decode and encode side of the libcodec2 binding for all modes listed above +FATE_LIBCODEC2-$(call ENCDEC, LIBCODEC2, CODEC2) += $(foreach mode,$(CODEC2_MODES), \ + fate-libcodec2-$(mode) \ + fate-libcodec2-cut-$(mode) \ +) + +define make-codec2-args + enc_external_subfile 0 $(2) $(TARGET_SAMPLES)/codec2/cross-$(1).c2 codec2 "-mode $(1)" "-frames_per_packet 10 -show_entries stream=codec_name,sample_rate,channels,duration -show_entries frame=pkt_dts -of flat" +endef + +# Well-formed files +fate-libcodec2-%: CMD = $(call make-codec2-args,$(@:fate-libcodec2-%=%),0) +# Truncated files +fate-libcodec2-cut-%: MODE = $(@:fate-libcodec2-cut-%=%) +fate-libcodec2-cut-%: CMD = $(call make-codec2-args,$(@:fate-libcodec2-cut-%=%),100) + +# Demuxer tests +define make-codec2-targets + $(foreach mode,$(CODEC2_MODES), \ + fate-$(1)-probe-$(mode) \ + fate-$(1)-probe-cut-$(mode) \ + fate-$(1)-probe-multi-$(mode) \ + fate-$(1)-probe-multi-cut-$(mode) \ + fate-$(1)-demux-$(mode) \ + fate-$(1)-demux-cut-$(mode) \ + ) +endef + +FATE_CODEC2-$(CONFIG_CODEC2_DEMUXER) += $(call make-codec2-targets,codec2) +FATE_CODEC2RAW-$(CONFIG_CODEC2RAW_DEMUXER) += $(call make-codec2-targets,codec2raw) + +fate-codec2-probe-%: END = 0 +fate-codec2-probe-%: FPP = 1 +fate-codec2-probe-%: FMT = codec2 +fate-codec2-probe-%: MODE = $(@:fate-codec2-probe-%=%) +fate-codec2-probe-%: CMD = ffprobe_demux_codec2 subfile,,start,0,end,$(END),,:$(TARGET_SAMPLES)/codec2/cross-$(MODE).c2 -frames_per_packet $(FPP) -mode $(MODE) +fate-codec2-probe-cut-%: MODE = $(@:fate-codec2-probe-cut-%=%) +fate-codec2-probe-cut-%: END = 100 +fate-codec2-probe-multi-%: MODE = $(@:fate-codec2-probe-multi-%=%) +fate-codec2-probe-multi-%: FPP = 10 +fate-codec2-probe-multi-cut-%: MODE = $(@:fate-codec2-probe-multi-cut-%=%) +fate-codec2-probe-multi-cut-%: END = 100 +# Similar to above but with start=7 +fate-codec2raw-probe-%: END = 0 +fate-codec2raw-probe-%: FPP = 1 +fate-codec2raw-probe-%: MODE = $(@:fate-codec2raw-probe-%=%) +fate-codec2raw-probe-%: REF = tests/ref/fate/codec2-probe-$(MODE) +fate-codec2raw-probe-%: CMD = ffprobe_demux_codec2 subfile,,start,7,end,$(END),,:$(TARGET_SAMPLES)/codec2/cross-$(MODE).c2 -frames_per_packet $(FPP) -mode $(MODE) -f codec2raw +fate-codec2raw-probe-cut-%: MODE = $(@:fate-codec2raw-probe-cut-%=%) +fate-codec2raw-probe-cut-%: END = 100 +fate-codec2raw-probe-cut-%: REF = tests/ref/fate/codec2-probe-cut-$(MODE) +fate-codec2raw-probe-multi-%: MODE = $(@:fate-codec2raw-probe-multi-%=%) +fate-codec2raw-probe-multi-%: FPP = 10 +fate-codec2raw-probe-multi-%: REF = tests/ref/fate/codec2-probe-multi-$(MODE) +fate-codec2raw-probe-multi-cut-%: MODE = $(@:fate-codec2raw-probe-multi-cut-%=%) +fate-codec2raw-probe-multi-cut-%: END = 100 +fate-codec2raw-probe-multi-cut-%: REF = tests/ref/fate/codec2-probe-multi-cut-$(MODE) +# Normal CRC tests +fate-codec2-demux-%: MODE = $(@:fate-codec2-demux-%=%) +fate-codec2-demux-%: END = 0 +fate-codec2-demux-%: CMD = crc -i subfile,,start,0,end,$(END),,:$(TARGET_SAMPLES)/codec2/cross-$(MODE).c2 -c:a copy +fate-codec2-demux-cut-%: MODE = $(@:fate-codec2-demux-cut-%=%) +fate-codec2-demux-cut-%: END = 100 +# Reuse refs +fate-codec2raw-demux-%: MODE = $(@:fate-codec2raw-demux-%=%) +fate-codec2raw-demux-%: REF = tests/ref/fate/codec2-demux-$(MODE) +fate-codec2raw-demux-%: END = 0 +fate-codec2raw-demux-%: CMD = crc -f codec2raw -mode $(MODE) -i subfile,,start,7,end,$(END),,:$(TARGET_SAMPLES)/codec2/cross-$(MODE).c2 -c:a copy +fate-codec2raw-demux-cut-%: MODE = $(@:fate-codec2raw-demux-cut-%=%) +fate-codec2raw-demux-cut-%: REF = tests/ref/fate/codec2-demux-cut-$(MODE) +fate-codec2raw-demux-cut-%: END = 100 + +FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_CODEC2-yes) $(FATE_CODEC2RAW-yes) $(FATE_LIBCODEC2-yes) +fate-codec2: $(FATE_CODEC2-yes) +fate-codec2raw: $(FATE_CODEC2RAW-yes) +fate-libcodec2: $(FATE_LIBCODEC2-yes) diff --git a/tests/ref/fate/codec2-demux-1200 b/tests/ref/fate/codec2-demux-1200 new file mode 100644 index 0000000000..e73da85898 --- /dev/null +++ b/tests/ref/fate/codec2-demux-1200 @@ -0,0 +1 @@ +CRC=0x585af733 diff --git a/tests/ref/fate/codec2-demux-1300 b/tests/ref/fate/codec2-demux-1300 new file mode 100644 index 0000000000..8a387d0c5c --- /dev/null +++ b/tests/ref/fate/codec2-demux-1300 @@ -0,0 +1 @@ +CRC=0x1e44f99a diff --git a/tests/ref/fate/codec2-demux-1400 b/tests/ref/fate/codec2-demux-1400 new file mode 100644 index 0000000000..8e16ed218f --- /dev/null +++ b/tests/ref/fate/codec2-demux-1400 @@ -0,0 +1 @@ +CRC=0xaea43a6b diff --git a/tests/ref/fate/codec2-demux-1600 b/tests/ref/fate/codec2-demux-1600 new file mode 100644 index 0000000000..cf39a1f33c --- /dev/null +++ b/tests/ref/fate/codec2-demux-1600 @@ -0,0 +1 @@ +CRC=0xd30a231f diff --git a/tests/ref/fate/codec2-demux-2400 b/tests/ref/fate/codec2-demux-2400 new file mode 100644 index 0000000000..3207059686 --- /dev/null +++ b/tests/ref/fate/codec2-demux-2400 @@ -0,0 +1 @@ +CRC=0x6445f5bd diff --git a/tests/ref/fate/codec2-demux-3200 b/tests/ref/fate/codec2-demux-3200 new file mode 100644 index 0000000000..a6d1c663df --- /dev/null +++ b/tests/ref/fate/codec2-demux-3200 @@ -0,0 +1 @@ +CRC=0x27b3654f diff --git a/tests/ref/fate/codec2-demux-700C b/tests/ref/fate/codec2-demux-700C new file mode 100644 index 0000000000..9277e69200 --- /dev/null +++ b/tests/ref/fate/codec2-demux-700C @@ -0,0 +1 @@ +CRC=0x7f9493cc diff --git a/tests/ref/fate/codec2-demux-cut-1200 b/tests/ref/fate/codec2-demux-cut-1200 new file mode 100644 index 0000000000..f3032b0c24 --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-1200 @@ -0,0 +1 @@ +CRC=0xc86c3291 diff --git a/tests/ref/fate/codec2-demux-cut-1300 b/tests/ref/fate/codec2-demux-cut-1300 new file mode 100644 index 0000000000..bf4f1b0a75 --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-1300 @@ -0,0 +1 @@ +CRC=0x68b92ddf diff --git a/tests/ref/fate/codec2-demux-cut-1400 b/tests/ref/fate/codec2-demux-cut-1400 new file mode 100644 index 0000000000..83de78745c --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-1400 @@ -0,0 +1 @@ +CRC=0x323239c6 diff --git a/tests/ref/fate/codec2-demux-cut-1600 b/tests/ref/fate/codec2-demux-cut-1600 new file mode 100644 index 0000000000..33f30b9b9c --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-1600 @@ -0,0 +1 @@ +CRC=0x3e10298c diff --git a/tests/ref/fate/codec2-demux-cut-2400 b/tests/ref/fate/codec2-demux-cut-2400 new file mode 100644 index 0000000000..e364ab19e7 --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-2400 @@ -0,0 +1 @@ +CRC=0x190736f0 diff --git a/tests/ref/fate/codec2-demux-cut-3200 b/tests/ref/fate/codec2-demux-cut-3200 new file mode 100644 index 0000000000..f70d1adb56 --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-3200 @@ -0,0 +1 @@ +CRC=0xc17c31ae diff --git a/tests/ref/fate/codec2-demux-cut-700C b/tests/ref/fate/codec2-demux-cut-700C new file mode 100644 index 0000000000..8cc9cf9e94 --- /dev/null +++ b/tests/ref/fate/codec2-demux-cut-700C @@ -0,0 +1 @@ +CRC=0x912a2def diff --git a/tests/ref/fate/codec2-probe-1200 b/tests/ref/fate/codec2-probe-1200 new file mode 100644 index 0000000000..f4671d8bc9 --- /dev/null +++ b/tests/ref/fate/codec2-probe-1200 @@ -0,0 +1,77 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:221d0fc7 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:2bf167b8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a7156a29 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:268c4e72 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:5a23ffe0 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:ed696a9b +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8c2de44f +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:46dcc273 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7c6fd6bd +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:54794fd6 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:f56e65a6 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:5a22ccb3 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:80096180 +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8959f4e8 +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:cc92a5ce +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:6d4ea619 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:0d8606b8 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:c95cfb1a +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7ff40dc6 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:866ff055 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:935e0eab +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7a0342ca +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8097ae9a +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7e775861 +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:bdeb9b36 +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:3794e84b +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:86431715 +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:d922dfa1 +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:dfbf9e96 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:d3b29b12 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:6e0f0822 +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a79fff26 +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:31b1c3b2 +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:be077bea +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:f81e55e2 +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:ac3f6f73 +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8729d498 +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:66f3e351 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:33664141 +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a47da932 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:25ba973c +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:48416905 +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:d4389bf2 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:80beba6e +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:87a45a57 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:f942adf5 +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:e8d81c23 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:0366c5b1 +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:4a5f7c10 +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:f88879e6 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:0c1bd8f8 +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:c3a3fe7b +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:2f51770a +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:112e75a2 +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a88f3e44 +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:b5a038d5 +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a081bf18 +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:e735914e +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:9e1a7144 +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:868f522c +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:d212c855 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:bca14856 +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:53b4fc98 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7df44774 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:59760848 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:6c4e5c92 +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:73629588 +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:e0b588c1 +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:227d2375 +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:fd70ce6f +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:e923fe4c +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:52cecd8a +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:32d67e82 +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:1baa02d6 +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:d5df290e +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=75|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-1300 b/tests/ref/fate/codec2-probe-1300 new file mode 100644 index 0000000000..91894a3ee9 --- /dev/null +++ b/tests/ref/fate/codec2-probe-1300 @@ -0,0 +1,77 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e1c986d9 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d19871aa +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:720c8431 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5e0cab28 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:431d4805 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e506c285 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:b0ca6019 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:25ef5865 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:230d8966 +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f552d25c +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:9a0c149d +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c0332732 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7500143a +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:18995637 +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:6dbc7758 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:660dc59a +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c017b895 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0caa37a8 +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:4b119869 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:ab9a64ff +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0f810c26 +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d70a38ae +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7bf8e78c +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:427523e8 +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e2252aac +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3e1a854a +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:4713a92d +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:960e5b90 +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:2e9e2162 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:ad34d068 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:1856a76b +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0485b25e +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:64af8bd3 +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:96ac0e38 +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7bbfa18d +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:4f86117c +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:2fd11b3b +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:9a76d5be +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:dd58ca6e +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:57722d71 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:256b90be +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c80df4af +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:63d22090 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:59355513 +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:4fa2449b +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:19b717bf +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:9e9b2064 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:8ccf6e4c +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:63e90a7a +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5ebaf71f +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:664d87e3 +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:2ba4f36d +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:905d3a66 +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7531b467 +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c6b57380 +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:04e359d8 +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c13c3444 +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:40d7078a +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0462f263 +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:726503cc +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e2b95cd5 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f430dec4 +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:1f2cf671 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:ca210722 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:8148366b +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:93d893d9 +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:46f43603 +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3a8f189a +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d0997cfa +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:16948018 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5765c933 +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:8b1fb92e +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:46ec5af7 +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:b070915d +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:482e7f51 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=75|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1300.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-1400 b/tests/ref/fate/codec2-probe-1400 new file mode 100644 index 0000000000..46d0adafda --- /dev/null +++ b/tests/ref/fate/codec2-probe-1400 @@ -0,0 +1,77 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d9be5755 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:472ceccd +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:303b21b6 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:dc2b4dd6 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e8888eb2 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:fa3d0618 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:68478d05 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5801bcd3 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:35119a8e +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7b36b9fd +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:efa8ba25 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:775b298f +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:04a24aad +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:a258e371 +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0f7e2ff3 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:161ebe16 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5bd34080 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:de117321 +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:159ecd57 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d82dcfe8 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:76485e5a +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:75c2dbdf +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:a2d1ff3d +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:098c210e +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:4fcefaed +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f381c04b +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:8fc0de5d +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:aa70458b +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:972ef8a3 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3810e83b +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5662fe6d +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c5f12521 +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3e48352a +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:98734d7d +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:ac3c7179 +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:eec579b0 +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d510fdfc +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:eb508488 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:22cd882f +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:10224a43 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f76a89a1 +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:1f797d63 +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7d4e0867 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:b13935b9 +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:42c4514a +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:b400b03c +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:0ef28876 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d352c764 +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:04675798 +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:2fdcc251 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3cf23ace +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:646ec910 +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:ab718053 +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:fb932a4a +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:252f0a1d +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:17f60429 +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:027bdb7c +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e1cc43e5 +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:fa19cae9 +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:956865aa +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:72700499 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f1a705a6 +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5afc0537 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:339a433c +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:24d56b77 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5179f52b +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:16950147 +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:3986102f +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c7936962 +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c75c6477 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:1f2173e9 +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:60be28ad +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f8b99b5c +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e0d00937 +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:a34e44ad +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=75|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-1600 b/tests/ref/fate/codec2-probe-1600 new file mode 100644 index 0000000000..b5026b48c3 --- /dev/null +++ b/tests/ref/fate/codec2-probe-1600 @@ -0,0 +1,77 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:5ee6636d +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:be3e8ff8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:026dbc9a +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:975599a2 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:c55f65e7 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:3731f5b3 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:ac397199 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:f4291bb5 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:91d5ea5c +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a33f36db +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:022e9118 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:89470375 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:9e9ce12c +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:81049310 +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:f20d84a8 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:b714b7e0 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:22c2cdb8 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a2a3f33f +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e36b4816 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:53903508 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a739c921 +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:c1cefb41 +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:544839bd +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:9d72b84b +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e92e686b +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e8690e8e +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:46906378 +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:20e26bd0 +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a22670f2 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e017fbe1 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:9a569bd0 +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:dc5e9ca1 +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:7e54c415 +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:ceff8d83 +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:93b9733c +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:f325edd1 +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:064fa392 +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:489addc0 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:62984863 +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e6df3399 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:884f30c5 +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:57ce7bce +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:3f74ffe1 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:421d5b56 +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:fa43a557 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a31e5662 +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:1d6c2d82 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:d41c7355 +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:fd509a9f +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:c4949fb0 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:ea85ae46 +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:92011136 +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:1cecb7ed +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:1965192e +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:d9c6bd27 +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:919ca88a +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:ca412c89 +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:eedd8de4 +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:3e2f328e +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:fc6ab619 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:2f181440 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:b74ee980 +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:19093147 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:0ce62839 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:900b4646 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:58fef2e8 +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:6a57260e +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:cc96ecd8 +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:e1dda1d2 +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:0050e4b1 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:160e5103 +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:08cf7f7c +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:598eb897 +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:d9d702ff +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:85f0fca4 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1600|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=75|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1600.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-2400 b/tests/ref/fate/codec2-probe-2400 new file mode 100644 index 0000000000..f0740bfd61 --- /dev/null +++ b/tests/ref/fate/codec2-probe-2400 @@ -0,0 +1,152 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:402e2751 +packet|codec_type=audio|stream_index=0|pts=160|pts_time=0.020000|dts=160|dts_time=0.020000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8be241bf +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:affee1a4 +packet|codec_type=audio|stream_index=0|pts=480|pts_time=0.060000|dts=480|dts_time=0.060000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:af3a2722 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ccde12cd +packet|codec_type=audio|stream_index=0|pts=800|pts_time=0.100000|dts=800|dts_time=0.100000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:53fa8852 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8a2715c3 +packet|codec_type=audio|stream_index=0|pts=1120|pts_time=0.140000|dts=1120|dts_time=0.140000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f5338fbe +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8c4f9b10 +packet|codec_type=audio|stream_index=0|pts=1440|pts_time=0.180000|dts=1440|dts_time=0.180000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d17ddf33 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1839685d +packet|codec_type=audio|stream_index=0|pts=1760|pts_time=0.220000|dts=1760|dts_time=0.220000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:fbd1489c +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:55174066 +packet|codec_type=audio|stream_index=0|pts=2080|pts_time=0.260000|dts=2080|dts_time=0.260000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:4931a27d +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:87ef4f97 +packet|codec_type=audio|stream_index=0|pts=2400|pts_time=0.300000|dts=2400|dts_time=0.300000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2880b122 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b81f12ab +packet|codec_type=audio|stream_index=0|pts=2720|pts_time=0.340000|dts=2720|dts_time=0.340000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:88c6fbce +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:18dd8acf +packet|codec_type=audio|stream_index=0|pts=3040|pts_time=0.380000|dts=3040|dts_time=0.380000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1120be56 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a108d459 +packet|codec_type=audio|stream_index=0|pts=3360|pts_time=0.420000|dts=3360|dts_time=0.420000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:faea488b +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ae3bda85 +packet|codec_type=audio|stream_index=0|pts=3680|pts_time=0.460000|dts=3680|dts_time=0.460000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:27d2edc2 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:03f15116 +packet|codec_type=audio|stream_index=0|pts=4000|pts_time=0.500000|dts=4000|dts_time=0.500000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:98655fdb +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:71b9a620 +packet|codec_type=audio|stream_index=0|pts=4320|pts_time=0.540000|dts=4320|dts_time=0.540000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:6da8182b +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ccc47dcf +packet|codec_type=audio|stream_index=0|pts=4640|pts_time=0.580000|dts=4640|dts_time=0.580000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:40ce9cd8 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1935f03f +packet|codec_type=audio|stream_index=0|pts=4960|pts_time=0.620000|dts=4960|dts_time=0.620000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3d858910 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:fd5d8dcb +packet|codec_type=audio|stream_index=0|pts=5280|pts_time=0.660000|dts=5280|dts_time=0.660000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:e88808a0 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8dcaa27f +packet|codec_type=audio|stream_index=0|pts=5600|pts_time=0.700000|dts=5600|dts_time=0.700000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ba604862 +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f219dd08 +packet|codec_type=audio|stream_index=0|pts=5920|pts_time=0.740000|dts=5920|dts_time=0.740000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:bddbe8c2 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:77c2aa65 +packet|codec_type=audio|stream_index=0|pts=6240|pts_time=0.780000|dts=6240|dts_time=0.780000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:4f2236ba +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:19b740b5 +packet|codec_type=audio|stream_index=0|pts=6560|pts_time=0.820000|dts=6560|dts_time=0.820000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2d3d7b8b +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:c8e01fca +packet|codec_type=audio|stream_index=0|pts=6880|pts_time=0.860000|dts=6880|dts_time=0.860000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2d8e6d0c +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:0fb7e084 +packet|codec_type=audio|stream_index=0|pts=7200|pts_time=0.900000|dts=7200|dts_time=0.900000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d55c3592 +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:bec93fa0 +packet|codec_type=audio|stream_index=0|pts=7520|pts_time=0.940000|dts=7520|dts_time=0.940000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:eeb119cd +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8e91c0b0 +packet|codec_type=audio|stream_index=0|pts=7840|pts_time=0.980000|dts=7840|dts_time=0.980000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:9f2b2447 +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:be48b6f6 +packet|codec_type=audio|stream_index=0|pts=8160|pts_time=1.020000|dts=8160|dts_time=1.020000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:da6f4d59 +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:0b631241 +packet|codec_type=audio|stream_index=0|pts=8480|pts_time=1.060000|dts=8480|dts_time=1.060000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:224860b9 +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:92165903 +packet|codec_type=audio|stream_index=0|pts=8800|pts_time=1.100000|dts=8800|dts_time=1.100000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:de74d412 +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:eaf448b6 +packet|codec_type=audio|stream_index=0|pts=9120|pts_time=1.140000|dts=9120|dts_time=1.140000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:65813b3f +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ea0b437c +packet|codec_type=audio|stream_index=0|pts=9440|pts_time=1.180000|dts=9440|dts_time=1.180000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f1f24a3e +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:fb104a8d +packet|codec_type=audio|stream_index=0|pts=9760|pts_time=1.220000|dts=9760|dts_time=1.220000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:baf7e25b +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:e89acf40 +packet|codec_type=audio|stream_index=0|pts=10080|pts_time=1.260000|dts=10080|dts_time=1.260000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8d0a484c +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f4959014 +packet|codec_type=audio|stream_index=0|pts=10400|pts_time=1.300000|dts=10400|dts_time=1.300000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:493e45dc +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8b3632d4 +packet|codec_type=audio|stream_index=0|pts=10720|pts_time=1.340000|dts=10720|dts_time=1.340000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b5b01e3c +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:9df6603e +packet|codec_type=audio|stream_index=0|pts=11040|pts_time=1.380000|dts=11040|dts_time=1.380000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d6b3c0b9 +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:70a5f8c6 +packet|codec_type=audio|stream_index=0|pts=11360|pts_time=1.420000|dts=11360|dts_time=1.420000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:af88203d +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:6c32cfdc +packet|codec_type=audio|stream_index=0|pts=11680|pts_time=1.460000|dts=11680|dts_time=1.460000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:9cf90956 +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f5645f77 +packet|codec_type=audio|stream_index=0|pts=12000|pts_time=1.500000|dts=12000|dts_time=1.500000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f8fdf925 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ae74e340 +packet|codec_type=audio|stream_index=0|pts=12320|pts_time=1.540000|dts=12320|dts_time=1.540000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3c5a1592 +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a75b0622 +packet|codec_type=audio|stream_index=0|pts=12640|pts_time=1.580000|dts=12640|dts_time=1.580000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2d9f7c6d +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:320584d5 +packet|codec_type=audio|stream_index=0|pts=12960|pts_time=1.620000|dts=12960|dts_time=1.620000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:4a739c01 +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:711dbcc9 +packet|codec_type=audio|stream_index=0|pts=13280|pts_time=1.660000|dts=13280|dts_time=1.660000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3ca47af5 +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:82de5ff5 +packet|codec_type=audio|stream_index=0|pts=13600|pts_time=1.700000|dts=13600|dts_time=1.700000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:81e92684 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:95e2cebb +packet|codec_type=audio|stream_index=0|pts=13920|pts_time=1.740000|dts=13920|dts_time=1.740000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:cbe74bb7 +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b64ae6df +packet|codec_type=audio|stream_index=0|pts=14240|pts_time=1.780000|dts=14240|dts_time=1.780000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:63fc0221 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ec9e9576 +packet|codec_type=audio|stream_index=0|pts=14560|pts_time=1.820000|dts=14560|dts_time=1.820000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1e372cab +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:7c4325b8 +packet|codec_type=audio|stream_index=0|pts=14880|pts_time=1.860000|dts=14880|dts_time=1.860000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:300f6212 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:58d56136 +packet|codec_type=audio|stream_index=0|pts=15200|pts_time=1.900000|dts=15200|dts_time=1.900000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:be139dae +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:c3193f37 +packet|codec_type=audio|stream_index=0|pts=15520|pts_time=1.940000|dts=15520|dts_time=1.940000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:35a68936 +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:bbcf2d22 +packet|codec_type=audio|stream_index=0|pts=15840|pts_time=1.980000|dts=15840|dts_time=1.980000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:05ffc3e6 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2eeb54dd +packet|codec_type=audio|stream_index=0|pts=16160|pts_time=2.020000|dts=16160|dts_time=2.020000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:aa82f7d9 +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:51a5a874 +packet|codec_type=audio|stream_index=0|pts=16480|pts_time=2.060000|dts=16480|dts_time=2.060000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f97d718b +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d0aded65 +packet|codec_type=audio|stream_index=0|pts=16800|pts_time=2.100000|dts=16800|dts_time=2.100000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:cce5f343 +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:6dbbff59 +packet|codec_type=audio|stream_index=0|pts=17120|pts_time=2.140000|dts=17120|dts_time=2.140000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b89fea6b +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f53b6be6 +packet|codec_type=audio|stream_index=0|pts=17440|pts_time=2.180000|dts=17440|dts_time=2.180000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:e62ac29e +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a58e3724 +packet|codec_type=audio|stream_index=0|pts=17760|pts_time=2.220000|dts=17760|dts_time=2.220000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:cfaca7e0 +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2aa80162 +packet|codec_type=audio|stream_index=0|pts=18080|pts_time=2.260000|dts=18080|dts_time=2.260000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d6194b5d +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a64477ad +packet|codec_type=audio|stream_index=0|pts=18400|pts_time=2.300000|dts=18400|dts_time=2.300000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:bc62d7fa +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:074a6bba +packet|codec_type=audio|stream_index=0|pts=18720|pts_time=2.340000|dts=18720|dts_time=2.340000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:95682acc +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:34fc937e +packet|codec_type=audio|stream_index=0|pts=19040|pts_time=2.380000|dts=19040|dts_time=2.380000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:38b52a3c +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1e72a60e +packet|codec_type=audio|stream_index=0|pts=19360|pts_time=2.420000|dts=19360|dts_time=2.420000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:c3009208 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:7601ee4f +packet|codec_type=audio|stream_index=0|pts=19680|pts_time=2.460000|dts=19680|dts_time=2.460000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b90922aa +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f0bea16a +packet|codec_type=audio|stream_index=0|pts=20000|pts_time=2.500000|dts=20000|dts_time=2.500000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:4f2609e9 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:6972b21f +packet|codec_type=audio|stream_index=0|pts=20320|pts_time=2.540000|dts=20320|dts_time=2.540000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3e761c95 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a2af0e16 +packet|codec_type=audio|stream_index=0|pts=20640|pts_time=2.580000|dts=20640|dts_time=2.580000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3ba2d588 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8ff827fa +packet|codec_type=audio|stream_index=0|pts=20960|pts_time=2.620000|dts=20960|dts_time=2.620000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:5c9d083c +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d160672b +packet|codec_type=audio|stream_index=0|pts=21280|pts_time=2.660000|dts=21280|dts_time=2.660000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ad193206 +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:50b36f13 +packet|codec_type=audio|stream_index=0|pts=21600|pts_time=2.700000|dts=21600|dts_time=2.700000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3b976099 +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:29fed307 +packet|codec_type=audio|stream_index=0|pts=21920|pts_time=2.740000|dts=21920|dts_time=2.740000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a66ae1af +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:3cc95c4b +packet|codec_type=audio|stream_index=0|pts=22240|pts_time=2.780000|dts=22240|dts_time=2.780000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:b72733f8 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:0becac56 +packet|codec_type=audio|stream_index=0|pts=22560|pts_time=2.820000|dts=22560|dts_time=2.820000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:353d07e3 +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1d2448ea +packet|codec_type=audio|stream_index=0|pts=22880|pts_time=2.860000|dts=22880|dts_time=2.860000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:0e7b72ca +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2837dcb1 +packet|codec_type=audio|stream_index=0|pts=23200|pts_time=2.900000|dts=23200|dts_time=2.900000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:9db710af +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:a2ff0694 +packet|codec_type=audio|stream_index=0|pts=23520|pts_time=2.940000|dts=23520|dts_time=2.940000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:6377f1b0 +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:7496f393 +packet|codec_type=audio|stream_index=0|pts=23840|pts_time=2.980000|dts=23840|dts_time=2.980000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:2f84dbe8 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=2400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=150|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-2400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-3200 b/tests/ref/fate/codec2-probe-3200 new file mode 100644 index 0000000000..bbbbaa7db3 --- /dev/null +++ b/tests/ref/fate/codec2-probe-3200 @@ -0,0 +1,152 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:47b54c75 +packet|codec_type=audio|stream_index=0|pts=160|pts_time=0.020000|dts=160|dts_time=0.020000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7664d67c +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:8661cfcf +packet|codec_type=audio|stream_index=0|pts=480|pts_time=0.060000|dts=480|dts_time=0.060000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7058a9c8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0ba5d0e8 +packet|codec_type=audio|stream_index=0|pts=800|pts_time=0.100000|dts=800|dts_time=0.100000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ca1b9e09 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cc6efcdb +packet|codec_type=audio|stream_index=0|pts=1120|pts_time=0.140000|dts=1120|dts_time=0.140000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d38a7221 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:c2890544 +packet|codec_type=audio|stream_index=0|pts=1440|pts_time=0.180000|dts=1440|dts_time=0.180000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ef6b161c +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0a8424a9 +packet|codec_type=audio|stream_index=0|pts=1760|pts_time=0.220000|dts=1760|dts_time=0.220000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:e2fcc803 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:93fba530 +packet|codec_type=audio|stream_index=0|pts=2080|pts_time=0.260000|dts=2080|dts_time=0.260000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:51551839 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fff36795 +packet|codec_type=audio|stream_index=0|pts=2400|pts_time=0.300000|dts=2400|dts_time=0.300000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0e5c63bb +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d769159b +packet|codec_type=audio|stream_index=0|pts=2720|pts_time=0.340000|dts=2720|dts_time=0.340000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:11343ea9 +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b4a85c0c +packet|codec_type=audio|stream_index=0|pts=3040|pts_time=0.380000|dts=3040|dts_time=0.380000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:3f5e482a +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d7ccac19 +packet|codec_type=audio|stream_index=0|pts=3360|pts_time=0.420000|dts=3360|dts_time=0.420000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:bac75596 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:c15a01e7 +packet|codec_type=audio|stream_index=0|pts=3680|pts_time=0.460000|dts=3680|dts_time=0.460000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:e055d60e +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b8ad40fd +packet|codec_type=audio|stream_index=0|pts=4000|pts_time=0.500000|dts=4000|dts_time=0.500000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:5ca3022c +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cffb0ec4 +packet|codec_type=audio|stream_index=0|pts=4320|pts_time=0.540000|dts=4320|dts_time=0.540000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:af8ee69f +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:801bd028 +packet|codec_type=audio|stream_index=0|pts=4640|pts_time=0.580000|dts=4640|dts_time=0.580000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b341a2dc +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2efe16db +packet|codec_type=audio|stream_index=0|pts=4960|pts_time=0.620000|dts=4960|dts_time=0.620000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:56e06065 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d67395f0 +packet|codec_type=audio|stream_index=0|pts=5280|pts_time=0.660000|dts=5280|dts_time=0.660000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ea630299 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ad26cf3e +packet|codec_type=audio|stream_index=0|pts=5600|pts_time=0.700000|dts=5600|dts_time=0.700000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0bce57d3 +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:91e4488f +packet|codec_type=audio|stream_index=0|pts=5920|pts_time=0.740000|dts=5920|dts_time=0.740000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:f959df52 +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:f65c4d6d +packet|codec_type=audio|stream_index=0|pts=6240|pts_time=0.780000|dts=6240|dts_time=0.780000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:bf19e990 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fbfe411c +packet|codec_type=audio|stream_index=0|pts=6560|pts_time=0.820000|dts=6560|dts_time=0.820000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a11d6f6a +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:194e2ca8 +packet|codec_type=audio|stream_index=0|pts=6880|pts_time=0.860000|dts=6880|dts_time=0.860000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:aeeb8970 +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b5c2835f +packet|codec_type=audio|stream_index=0|pts=7200|pts_time=0.900000|dts=7200|dts_time=0.900000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:53911676 +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a65b4b7f +packet|codec_type=audio|stream_index=0|pts=7520|pts_time=0.940000|dts=7520|dts_time=0.940000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7d137108 +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d791c7e1 +packet|codec_type=audio|stream_index=0|pts=7840|pts_time=0.980000|dts=7840|dts_time=0.980000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:8e83f20c +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fc0a40f8 +packet|codec_type=audio|stream_index=0|pts=8160|pts_time=1.020000|dts=8160|dts_time=1.020000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:9e815f10 +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:88257108 +packet|codec_type=audio|stream_index=0|pts=8480|pts_time=1.060000|dts=8480|dts_time=1.060000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a3d5806d +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cd2a6050 +packet|codec_type=audio|stream_index=0|pts=8800|pts_time=1.100000|dts=8800|dts_time=1.100000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2039c87c +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:680ce279 +packet|codec_type=audio|stream_index=0|pts=9120|pts_time=1.140000|dts=9120|dts_time=1.140000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:9f59d8e3 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:80e38773 +packet|codec_type=audio|stream_index=0|pts=9440|pts_time=1.180000|dts=9440|dts_time=1.180000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:be7ee487 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:20cde7e5 +packet|codec_type=audio|stream_index=0|pts=9760|pts_time=1.220000|dts=9760|dts_time=1.220000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:be2a5d03 +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:bdf71e68 +packet|codec_type=audio|stream_index=0|pts=10080|pts_time=1.260000|dts=10080|dts_time=1.260000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:789c59d4 +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:370d29cb +packet|codec_type=audio|stream_index=0|pts=10400|pts_time=1.300000|dts=10400|dts_time=1.300000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:6277e2b0 +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:40d368d8 +packet|codec_type=audio|stream_index=0|pts=10720|pts_time=1.340000|dts=10720|dts_time=1.340000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fc896dc9 +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:44664ab4 +packet|codec_type=audio|stream_index=0|pts=11040|pts_time=1.380000|dts=11040|dts_time=1.380000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7b74748f +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:859edfa6 +packet|codec_type=audio|stream_index=0|pts=11360|pts_time=1.420000|dts=11360|dts_time=1.420000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cefdc5f3 +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2a9a705c +packet|codec_type=audio|stream_index=0|pts=11680|pts_time=1.460000|dts=11680|dts_time=1.460000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fa30bf2f +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a107bd55 +packet|codec_type=audio|stream_index=0|pts=12000|pts_time=1.500000|dts=12000|dts_time=1.500000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b419e854 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:8282f45a +packet|codec_type=audio|stream_index=0|pts=12320|pts_time=1.540000|dts=12320|dts_time=1.540000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:88b8a885 +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2b40fc69 +packet|codec_type=audio|stream_index=0|pts=12640|pts_time=1.580000|dts=12640|dts_time=1.580000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ecf3fa63 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:fed084af +packet|codec_type=audio|stream_index=0|pts=12960|pts_time=1.620000|dts=12960|dts_time=1.620000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:34db7605 +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:98b02867 +packet|codec_type=audio|stream_index=0|pts=13280|pts_time=1.660000|dts=13280|dts_time=1.660000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:dc1ba7d8 +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:c6d4f493 +packet|codec_type=audio|stream_index=0|pts=13600|pts_time=1.700000|dts=13600|dts_time=1.700000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:893fef83 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:363fad22 +packet|codec_type=audio|stream_index=0|pts=13920|pts_time=1.740000|dts=13920|dts_time=1.740000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:68c171c3 +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ef518c17 +packet|codec_type=audio|stream_index=0|pts=14240|pts_time=1.780000|dts=14240|dts_time=1.780000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:aabef5df +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:1e68fa09 +packet|codec_type=audio|stream_index=0|pts=14560|pts_time=1.820000|dts=14560|dts_time=1.820000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:1b656207 +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:e62ca880 +packet|codec_type=audio|stream_index=0|pts=14880|pts_time=1.860000|dts=14880|dts_time=1.860000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:35fc5ccc +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:4c0a7559 +packet|codec_type=audio|stream_index=0|pts=15200|pts_time=1.900000|dts=15200|dts_time=1.900000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:407332b8 +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ee72d7be +packet|codec_type=audio|stream_index=0|pts=15520|pts_time=1.940000|dts=15520|dts_time=1.940000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:99e5ba29 +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b46c2182 +packet|codec_type=audio|stream_index=0|pts=15840|pts_time=1.980000|dts=15840|dts_time=1.980000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7bc0ff30 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2a250506 +packet|codec_type=audio|stream_index=0|pts=16160|pts_time=2.020000|dts=16160|dts_time=2.020000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:692cb5c1 +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:e96d9f46 +packet|codec_type=audio|stream_index=0|pts=16480|pts_time=2.060000|dts=16480|dts_time=2.060000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cf89302f +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:9ce949ff +packet|codec_type=audio|stream_index=0|pts=16800|pts_time=2.100000|dts=16800|dts_time=2.100000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2fbd2ad7 +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:5cdb3473 +packet|codec_type=audio|stream_index=0|pts=17120|pts_time=2.140000|dts=17120|dts_time=2.140000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7e2da2aa +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:de4f030f +packet|codec_type=audio|stream_index=0|pts=17440|pts_time=2.180000|dts=17440|dts_time=2.180000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:dd087894 +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:45353c9d +packet|codec_type=audio|stream_index=0|pts=17760|pts_time=2.220000|dts=17760|dts_time=2.220000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:bc1edba8 +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b2a3abca +packet|codec_type=audio|stream_index=0|pts=18080|pts_time=2.260000|dts=18080|dts_time=2.260000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:30e293f8 +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:14c3a2ab +packet|codec_type=audio|stream_index=0|pts=18400|pts_time=2.300000|dts=18400|dts_time=2.300000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:8db10f4e +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:1d254096 +packet|codec_type=audio|stream_index=0|pts=18720|pts_time=2.340000|dts=18720|dts_time=2.340000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:49e8c884 +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d36923e0 +packet|codec_type=audio|stream_index=0|pts=19040|pts_time=2.380000|dts=19040|dts_time=2.380000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d893b966 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0e121744 +packet|codec_type=audio|stream_index=0|pts=19360|pts_time=2.420000|dts=19360|dts_time=2.420000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:683ac084 +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:693c530f +packet|codec_type=audio|stream_index=0|pts=19680|pts_time=2.460000|dts=19680|dts_time=2.460000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:419bda2b +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:31e5fdb6 +packet|codec_type=audio|stream_index=0|pts=20000|pts_time=2.500000|dts=20000|dts_time=2.500000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:246a56c7 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d08cd880 +packet|codec_type=audio|stream_index=0|pts=20320|pts_time=2.540000|dts=20320|dts_time=2.540000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7ace8362 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:57f5b70f +packet|codec_type=audio|stream_index=0|pts=20640|pts_time=2.580000|dts=20640|dts_time=2.580000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:09a45a11 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:9a4f6bc7 +packet|codec_type=audio|stream_index=0|pts=20960|pts_time=2.620000|dts=20960|dts_time=2.620000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2f5e9c55 +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:773a038d +packet|codec_type=audio|stream_index=0|pts=21280|pts_time=2.660000|dts=21280|dts_time=2.660000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cfe79cc6 +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:1282d3cd +packet|codec_type=audio|stream_index=0|pts=21600|pts_time=2.700000|dts=21600|dts_time=2.700000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:5bc49731 +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b4868685 +packet|codec_type=audio|stream_index=0|pts=21920|pts_time=2.740000|dts=21920|dts_time=2.740000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a3dde91a +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0208e0a0 +packet|codec_type=audio|stream_index=0|pts=22240|pts_time=2.780000|dts=22240|dts_time=2.780000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:6331af71 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:f7fcfab5 +packet|codec_type=audio|stream_index=0|pts=22560|pts_time=2.820000|dts=22560|dts_time=2.820000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:92885203 +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:a445f2e5 +packet|codec_type=audio|stream_index=0|pts=22880|pts_time=2.860000|dts=22880|dts_time=2.860000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:b50e5ec5 +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:e81acb12 +packet|codec_type=audio|stream_index=0|pts=23200|pts_time=2.900000|dts=23200|dts_time=2.900000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ff613b12 +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:f0c1139c +packet|codec_type=audio|stream_index=0|pts=23520|pts_time=2.940000|dts=23520|dts_time=2.940000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cab01701 +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:2c29e78a +packet|codec_type=audio|stream_index=0|pts=23840|pts_time=2.980000|dts=23840|dts_time=2.980000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:9f0dc252 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=3200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=150|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-3200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-700C b/tests/ref/fate/codec2-probe-700C new file mode 100644 index 0000000000..b5142a156a --- /dev/null +++ b/tests/ref/fate/codec2-probe-700C @@ -0,0 +1,77 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:ba74a8a8 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:88da7b69 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:e051f29c +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:7a67dfb3 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:6a5e99e7 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2eeae614 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:1f05af30 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:82db6a54 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:618586f0 +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2d71324f +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2507f5d3 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b813d1ef +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:0850d097 +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:1271a7df +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bd28b85d +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:41126e67 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:5e4ac580 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:8a072bbe +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2844a6ee +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:22f21815 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:d6ad2b7f +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:cd952e76 +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b3b92f90 +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:a65f7a4b +packet|codec_type=audio|stream_index=0|pts=7680|pts_time=0.960000|dts=7680|dts_time=0.960000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:ff5cb26d +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bc77c2a5 +packet|codec_type=audio|stream_index=0|pts=8320|pts_time=1.040000|dts=8320|dts_time=1.040000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b26f7c9b +packet|codec_type=audio|stream_index=0|pts=8640|pts_time=1.080000|dts=8640|dts_time=1.080000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:808f786a +packet|codec_type=audio|stream_index=0|pts=8960|pts_time=1.120000|dts=8960|dts_time=1.120000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:718a0796 +packet|codec_type=audio|stream_index=0|pts=9280|pts_time=1.160000|dts=9280|dts_time=1.160000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:57486574 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:3fcc8689 +packet|codec_type=audio|stream_index=0|pts=9920|pts_time=1.240000|dts=9920|dts_time=1.240000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:867b2a72 +packet|codec_type=audio|stream_index=0|pts=10240|pts_time=1.280000|dts=10240|dts_time=1.280000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:4ad0edb1 +packet|codec_type=audio|stream_index=0|pts=10560|pts_time=1.320000|dts=10560|dts_time=1.320000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:a8997530 +packet|codec_type=audio|stream_index=0|pts=10880|pts_time=1.360000|dts=10880|dts_time=1.360000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:629bd7ea +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:d6f6b5b7 +packet|codec_type=audio|stream_index=0|pts=11520|pts_time=1.440000|dts=11520|dts_time=1.440000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:c7f2297f +packet|codec_type=audio|stream_index=0|pts=11840|pts_time=1.480000|dts=11840|dts_time=1.480000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:0ae4c6b2 +packet|codec_type=audio|stream_index=0|pts=12160|pts_time=1.520000|dts=12160|dts_time=1.520000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b9afc05e +packet|codec_type=audio|stream_index=0|pts=12480|pts_time=1.560000|dts=12480|dts_time=1.560000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:450020be +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:c05b5fa8 +packet|codec_type=audio|stream_index=0|pts=13120|pts_time=1.640000|dts=13120|dts_time=1.640000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:3c550858 +packet|codec_type=audio|stream_index=0|pts=13440|pts_time=1.680000|dts=13440|dts_time=1.680000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:53873576 +packet|codec_type=audio|stream_index=0|pts=13760|pts_time=1.720000|dts=13760|dts_time=1.720000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:7eb457ad +packet|codec_type=audio|stream_index=0|pts=14080|pts_time=1.760000|dts=14080|dts_time=1.760000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:f8cf8ea0 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:4c45d460 +packet|codec_type=audio|stream_index=0|pts=14720|pts_time=1.840000|dts=14720|dts_time=1.840000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bdcda527 +packet|codec_type=audio|stream_index=0|pts=15040|pts_time=1.880000|dts=15040|dts_time=1.880000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:971c41b6 +packet|codec_type=audio|stream_index=0|pts=15360|pts_time=1.920000|dts=15360|dts_time=1.920000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:091db650 +packet|codec_type=audio|stream_index=0|pts=15680|pts_time=1.960000|dts=15680|dts_time=1.960000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:3e214057 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:af7b7f6f +packet|codec_type=audio|stream_index=0|pts=16320|pts_time=2.040000|dts=16320|dts_time=2.040000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:5091da7b +packet|codec_type=audio|stream_index=0|pts=16640|pts_time=2.080000|dts=16640|dts_time=2.080000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:5ec88106 +packet|codec_type=audio|stream_index=0|pts=16960|pts_time=2.120000|dts=16960|dts_time=2.120000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:d8561d0a +packet|codec_type=audio|stream_index=0|pts=17280|pts_time=2.160000|dts=17280|dts_time=2.160000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:1730a3fc +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:53da58ed +packet|codec_type=audio|stream_index=0|pts=17920|pts_time=2.240000|dts=17920|dts_time=2.240000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bcc878a7 +packet|codec_type=audio|stream_index=0|pts=18240|pts_time=2.280000|dts=18240|dts_time=2.280000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:92ff45b1 +packet|codec_type=audio|stream_index=0|pts=18560|pts_time=2.320000|dts=18560|dts_time=2.320000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:6cdf51c9 +packet|codec_type=audio|stream_index=0|pts=18880|pts_time=2.360000|dts=18880|dts_time=2.360000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:87bffa67 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:49926f0b +packet|codec_type=audio|stream_index=0|pts=19520|pts_time=2.440000|dts=19520|dts_time=2.440000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:746efec4 +packet|codec_type=audio|stream_index=0|pts=19840|pts_time=2.480000|dts=19840|dts_time=2.480000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:6f5b85a7 +packet|codec_type=audio|stream_index=0|pts=20160|pts_time=2.520000|dts=20160|dts_time=2.520000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:cf14d485 +packet|codec_type=audio|stream_index=0|pts=20480|pts_time=2.560000|dts=20480|dts_time=2.560000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:97df5c93 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:ccd5b3b1 +packet|codec_type=audio|stream_index=0|pts=21120|pts_time=2.640000|dts=21120|dts_time=2.640000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:c1cfda7e +packet|codec_type=audio|stream_index=0|pts=21440|pts_time=2.680000|dts=21440|dts_time=2.680000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:5ca3640c +packet|codec_type=audio|stream_index=0|pts=21760|pts_time=2.720000|dts=21760|dts_time=2.720000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:86898adb +packet|codec_type=audio|stream_index=0|pts=22080|pts_time=2.760000|dts=22080|dts_time=2.760000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:12b10cb1 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bad3ec5b +packet|codec_type=audio|stream_index=0|pts=22720|pts_time=2.840000|dts=22720|dts_time=2.840000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:a0224b4f +packet|codec_type=audio|stream_index=0|pts=23040|pts_time=2.880000|dts=23040|dts_time=2.880000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:acd584da +packet|codec_type=audio|stream_index=0|pts=23360|pts_time=2.920000|dts=23360|dts_time=2.920000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:aba0df88 +packet|codec_type=audio|stream_index=0|pts=23680|pts_time=2.960000|dts=23680|dts_time=2.960000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:69992e4e +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=800|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=75|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-700C.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-cut-1200 b/tests/ref/fate/codec2-probe-cut-1200 new file mode 100644 index 0000000000..7ff63655c2 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-1200 @@ -0,0 +1,18 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:221d0fc7 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:2bf167b8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:a7156a29 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:268c4e72 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:5a23ffe0 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:ed696a9b +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8c2de44f +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:46dcc273 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:7c6fd6bd +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:54794fd6 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:f56e65a6 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:5a22ccb3 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:80096180 +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:8959f4e8 +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=6|flags=K__|data_hash=CRC32:cc92a5ce +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=3|flags=K_C|data_hash=CRC32:5575a889 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4800|duration=0.600000|bit_rate=1200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=16|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.600000 diff --git a/tests/ref/fate/codec2-probe-cut-1300 b/tests/ref/fate/codec2-probe-cut-1300 new file mode 100644 index 0000000000..e734aca2c5 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-1300 @@ -0,0 +1,16 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e1c986d9 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d19871aa +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:720c8431 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5e0cab28 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:431d4805 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e506c285 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:b0ca6019 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:25ef5865 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:230d8966 +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:f552d25c +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:9a0c149d +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:c0332732 +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7500143a +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=2|flags=K_C|data_hash=CRC32:bc065677 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4160|duration=0.520000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=14|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1300.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.520000 diff --git a/tests/ref/fate/codec2-probe-cut-1400 b/tests/ref/fate/codec2-probe-cut-1400 new file mode 100644 index 0000000000..4d0af823d7 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-1400 @@ -0,0 +1,16 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:d9be5755 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:472ceccd +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:303b21b6 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:dc2b4dd6 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:e8888eb2 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:fa3d0618 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:68478d05 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:5801bcd3 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:35119a8e +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:7b36b9fd +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:efa8ba25 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:775b298f +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=7|flags=K__|data_hash=CRC32:04a24aad +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=2|flags=K_C|data_hash=CRC32:511cb226 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4160|duration=0.520000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=14|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.520000 diff --git a/tests/ref/fate/codec2-probe-cut-1600 b/tests/ref/fate/codec2-probe-cut-1600 new file mode 100644 index 0000000000..13ddf47ab6 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-1600 @@ -0,0 +1,14 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:5ee6636d +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:be3e8ff8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:026dbc9a +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:975599a2 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:c55f65e7 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:3731f5b3 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:ac397199 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:f4291bb5 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:91d5ea5c +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:a33f36db +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=8|flags=K__|data_hash=CRC32:022e9118 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=5|flags=K_C|data_hash=CRC32:9b0ed102 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=3520|duration=0.440000|bit_rate=1600|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=12|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1600.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.440000 diff --git a/tests/ref/fate/codec2-probe-cut-2400 b/tests/ref/fate/codec2-probe-cut-2400 new file mode 100644 index 0000000000..7ba74ff9a7 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-2400 @@ -0,0 +1,18 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:402e2751 +packet|codec_type=audio|stream_index=0|pts=160|pts_time=0.020000|dts=160|dts_time=0.020000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8be241bf +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:affee1a4 +packet|codec_type=audio|stream_index=0|pts=480|pts_time=0.060000|dts=480|dts_time=0.060000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:af3a2722 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:ccde12cd +packet|codec_type=audio|stream_index=0|pts=800|pts_time=0.100000|dts=800|dts_time=0.100000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:53fa8852 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8a2715c3 +packet|codec_type=audio|stream_index=0|pts=1120|pts_time=0.140000|dts=1120|dts_time=0.140000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:f5338fbe +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:8c4f9b10 +packet|codec_type=audio|stream_index=0|pts=1440|pts_time=0.180000|dts=1440|dts_time=0.180000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:d17ddf33 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:1839685d +packet|codec_type=audio|stream_index=0|pts=1760|pts_time=0.220000|dts=1760|dts_time=0.220000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:fbd1489c +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:55174066 +packet|codec_type=audio|stream_index=0|pts=2080|pts_time=0.260000|dts=2080|dts_time=0.260000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:4931a27d +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=160|duration_time=0.020000|size=6|flags=K__|data_hash=CRC32:87ef4f97 +packet|codec_type=audio|stream_index=0|pts=2400|pts_time=0.300000|dts=2400|dts_time=0.300000|duration=160|duration_time=0.020000|size=3|flags=K_C|data_hash=CRC32:cf91772c +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=2400|duration=0.300000|bit_rate=2400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=16|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-2400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.300000 diff --git a/tests/ref/fate/codec2-probe-cut-3200 b/tests/ref/fate/codec2-probe-cut-3200 new file mode 100644 index 0000000000..0d7a447735 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-3200 @@ -0,0 +1,14 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:47b54c75 +packet|codec_type=audio|stream_index=0|pts=160|pts_time=0.020000|dts=160|dts_time=0.020000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7664d67c +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:8661cfcf +packet|codec_type=audio|stream_index=0|pts=480|pts_time=0.060000|dts=480|dts_time=0.060000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:7058a9c8 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0ba5d0e8 +packet|codec_type=audio|stream_index=0|pts=800|pts_time=0.100000|dts=800|dts_time=0.100000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ca1b9e09 +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:cc6efcdb +packet|codec_type=audio|stream_index=0|pts=1120|pts_time=0.140000|dts=1120|dts_time=0.140000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:d38a7221 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:c2890544 +packet|codec_type=audio|stream_index=0|pts=1440|pts_time=0.180000|dts=1440|dts_time=0.180000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:ef6b161c +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=160|duration_time=0.020000|size=8|flags=K__|data_hash=CRC32:0a8424a9 +packet|codec_type=audio|stream_index=0|pts=1760|pts_time=0.220000|dts=1760|dts_time=0.220000|duration=160|duration_time=0.020000|size=5|flags=K_C|data_hash=CRC32:004d2db4 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=1760|duration=0.220000|bit_rate=3200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=12|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-3200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.220000 diff --git a/tests/ref/fate/codec2-probe-cut-700C b/tests/ref/fate/codec2-probe-cut-700C new file mode 100644 index 0000000000..d39f57c204 --- /dev/null +++ b/tests/ref/fate/codec2-probe-cut-700C @@ -0,0 +1,26 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:ba74a8a8 +packet|codec_type=audio|stream_index=0|pts=320|pts_time=0.040000|dts=320|dts_time=0.040000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:88da7b69 +packet|codec_type=audio|stream_index=0|pts=640|pts_time=0.080000|dts=640|dts_time=0.080000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:e051f29c +packet|codec_type=audio|stream_index=0|pts=960|pts_time=0.120000|dts=960|dts_time=0.120000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:7a67dfb3 +packet|codec_type=audio|stream_index=0|pts=1280|pts_time=0.160000|dts=1280|dts_time=0.160000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:6a5e99e7 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2eeae614 +packet|codec_type=audio|stream_index=0|pts=1920|pts_time=0.240000|dts=1920|dts_time=0.240000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:1f05af30 +packet|codec_type=audio|stream_index=0|pts=2240|pts_time=0.280000|dts=2240|dts_time=0.280000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:82db6a54 +packet|codec_type=audio|stream_index=0|pts=2560|pts_time=0.320000|dts=2560|dts_time=0.320000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:618586f0 +packet|codec_type=audio|stream_index=0|pts=2880|pts_time=0.360000|dts=2880|dts_time=0.360000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2d71324f +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2507f5d3 +packet|codec_type=audio|stream_index=0|pts=3520|pts_time=0.440000|dts=3520|dts_time=0.440000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b813d1ef +packet|codec_type=audio|stream_index=0|pts=3840|pts_time=0.480000|dts=3840|dts_time=0.480000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:0850d097 +packet|codec_type=audio|stream_index=0|pts=4160|pts_time=0.520000|dts=4160|dts_time=0.520000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:1271a7df +packet|codec_type=audio|stream_index=0|pts=4480|pts_time=0.560000|dts=4480|dts_time=0.560000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:bd28b85d +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:41126e67 +packet|codec_type=audio|stream_index=0|pts=5120|pts_time=0.640000|dts=5120|dts_time=0.640000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:5e4ac580 +packet|codec_type=audio|stream_index=0|pts=5440|pts_time=0.680000|dts=5440|dts_time=0.680000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:8a072bbe +packet|codec_type=audio|stream_index=0|pts=5760|pts_time=0.720000|dts=5760|dts_time=0.720000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:2844a6ee +packet|codec_type=audio|stream_index=0|pts=6080|pts_time=0.760000|dts=6080|dts_time=0.760000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:22f21815 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:d6ad2b7f +packet|codec_type=audio|stream_index=0|pts=6720|pts_time=0.840000|dts=6720|dts_time=0.840000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:cd952e76 +packet|codec_type=audio|stream_index=0|pts=7040|pts_time=0.880000|dts=7040|dts_time=0.880000|duration=320|duration_time=0.040000|size=4|flags=K__|data_hash=CRC32:b3b92f90 +packet|codec_type=audio|stream_index=0|pts=7360|pts_time=0.920000|dts=7360|dts_time=0.920000|duration=320|duration_time=0.040000|size=1|flags=K_C|data_hash=CRC32:7f6567cb +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=7360|duration=0.920000|bit_rate=800|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=24|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-700C.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.920000 diff --git a/tests/ref/fate/codec2-probe-multi-1200 b/tests/ref/fate/codec2-probe-multi-1200 new file mode 100644 index 0000000000..603c29c7fd --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-1200 @@ -0,0 +1,10 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:97712e59 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:ead75c0d +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:1fc51feb +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:9f97ee6b +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:3705d086 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:4ad7b6d0 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:20338c8c +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=30|flags=K__|data_hash=CRC32:3101b117 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=8|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-1300 b/tests/ref/fate/codec2-probe-multi-1300 new file mode 100644 index 0000000000..8c0b4c117e --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-1300 @@ -0,0 +1,10 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:5e784ba8 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:bc4c87ee +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:0424e8e4 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:c96f3946 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:ddc45481 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:972e3eb2 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:6c36af24 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=35|flags=K__|data_hash=CRC32:4e8805d3 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=8|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1300.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-1400 b/tests/ref/fate/codec2-probe-multi-1400 new file mode 100644 index 0000000000..1f63cc82af --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-1400 @@ -0,0 +1,10 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:de42f68f +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:c283c3cb +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:84fe588d +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:efe4a245 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:c31f9770 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:151692a9 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:eec5b59a +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=35|flags=K__|data_hash=CRC32:68f492a8 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=8|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-1600 b/tests/ref/fate/codec2-probe-multi-1600 new file mode 100644 index 0000000000..91d2358117 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-1600 @@ -0,0 +1,10 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:74196300 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:13fdb6e5 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:8b1c3219 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:c2639e6e +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:e37eabc6 +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:ade0886c +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:2ab5600a +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=40|flags=K__|data_hash=CRC32:e378558d +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=1600|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=8|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1600.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-2400 b/tests/ref/fate/codec2-probe-multi-2400 new file mode 100644 index 0000000000..d5ada228bf --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-2400 @@ -0,0 +1,17 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:7283101b +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:b60d32b9 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:23321384 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:05a4af80 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:d012a0f0 +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:b0cffe2a +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:4750fd61 +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:d901d843 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:db968789 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:a4ef5efc +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:3062461d +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:8232537a +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:fb52665c +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:14e8d636 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:416fffb7 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=2400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=15|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-2400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-3200 b/tests/ref/fate/codec2-probe-multi-3200 new file mode 100644 index 0000000000..3b79c682c9 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-3200 @@ -0,0 +1,17 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:5f0b44d5 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:746132c5 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:cbe22ba3 +packet|codec_type=audio|stream_index=0|pts=4800|pts_time=0.600000|dts=4800|dts_time=0.600000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:2803be77 +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:37dcc107 +packet|codec_type=audio|stream_index=0|pts=8000|pts_time=1.000000|dts=8000|dts_time=1.000000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:9137ae4f +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:f7595349 +packet|codec_type=audio|stream_index=0|pts=11200|pts_time=1.400000|dts=11200|dts_time=1.400000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:dfca2c27 +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:05123c92 +packet|codec_type=audio|stream_index=0|pts=14400|pts_time=1.800000|dts=14400|dts_time=1.800000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:51061a8f +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:6ded78d0 +packet|codec_type=audio|stream_index=0|pts=17600|pts_time=2.200000|dts=17600|dts_time=2.200000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:223d4a63 +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:991f4258 +packet|codec_type=audio|stream_index=0|pts=20800|pts_time=2.600000|dts=20800|dts_time=2.600000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:8122bc3d +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:bfaf16ca +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=3200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=15|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-3200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-700C b/tests/ref/fate/codec2-probe-multi-700C new file mode 100644 index 0000000000..bc10fa9227 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-700C @@ -0,0 +1,10 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:810ddca5 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:4d955a6f +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:86f6efa9 +packet|codec_type=audio|stream_index=0|pts=9600|pts_time=1.200000|dts=9600|dts_time=1.200000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:134dcdcf +packet|codec_type=audio|stream_index=0|pts=12800|pts_time=1.600000|dts=12800|dts_time=1.600000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:697284ab +packet|codec_type=audio|stream_index=0|pts=16000|pts_time=2.000000|dts=16000|dts_time=2.000000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:19e9ecbb +packet|codec_type=audio|stream_index=0|pts=19200|pts_time=2.400000|dts=19200|dts_time=2.400000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:047bbaf1 +packet|codec_type=audio|stream_index=0|pts=22400|pts_time=2.800000|dts=22400|dts_time=2.800000|duration=1600|duration_time=0.200000|size=20|flags=K__|data_hash=CRC32:b20be8d4 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=24000|duration=3.000000|bit_rate=800|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=8|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-700C.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=3.000000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-1200 b/tests/ref/fate/codec2-probe-multi-cut-1200 new file mode 100644 index 0000000000..96b7c8a268 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-1200 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=60|flags=K__|data_hash=CRC32:97712e59 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=1600|duration_time=0.200000|size=33|flags=K_C|data_hash=CRC32:54020dae +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4800|duration=0.600000|bit_rate=1200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.600000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-1300 b/tests/ref/fate/codec2-probe-multi-cut-1300 new file mode 100644 index 0000000000..9f74f806d9 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-1300 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:5e784ba8 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=960|duration_time=0.120000|size=23|flags=K_C|data_hash=CRC32:812b14ca +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4160|duration=0.520000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1300.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.520000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-1400 b/tests/ref/fate/codec2-probe-multi-cut-1400 new file mode 100644 index 0000000000..4fd02ff38a --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-1400 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=70|flags=K__|data_hash=CRC32:de42f68f +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=960|duration_time=0.120000|size=23|flags=K_C|data_hash=CRC32:c872c31e +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=4160|duration=0.520000|bit_rate=1400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.520000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-1600 b/tests/ref/fate/codec2-probe-multi-cut-1600 new file mode 100644 index 0000000000..f3c3491d38 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-1600 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=80|flags=K__|data_hash=CRC32:74196300 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=320|duration_time=0.040000|size=13|flags=K_C|data_hash=CRC32:ce8782e8 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=3520|duration=0.440000|bit_rate=1600|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-1600.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.440000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-2400 b/tests/ref/fate/codec2-probe-multi-cut-2400 new file mode 100644 index 0000000000..e0c5bc75e5 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-2400 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1600|duration_time=0.200000|size=60|flags=K__|data_hash=CRC32:7283101b +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=800|duration_time=0.100000|size=33|flags=K_C|data_hash=CRC32:7ffca071 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=2400|duration=0.300000|bit_rate=2400|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-2400.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.300000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-3200 b/tests/ref/fate/codec2-probe-multi-cut-3200 new file mode 100644 index 0000000000..7dec2d4613 --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-3200 @@ -0,0 +1,4 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=1600|duration_time=0.200000|size=80|flags=K__|data_hash=CRC32:5f0b44d5 +packet|codec_type=audio|stream_index=0|pts=1600|pts_time=0.200000|dts=1600|dts_time=0.200000|duration=160|duration_time=0.020000|size=13|flags=K_C|data_hash=CRC32:4ef9b3ec +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=1760|duration=0.220000|bit_rate=3200|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=2|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-3200.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.220000 diff --git a/tests/ref/fate/codec2-probe-multi-cut-700C b/tests/ref/fate/codec2-probe-multi-cut-700C new file mode 100644 index 0000000000..8e446159cd --- /dev/null +++ b/tests/ref/fate/codec2-probe-multi-cut-700C @@ -0,0 +1,5 @@ +packet|codec_type=audio|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:810ddca5 +packet|codec_type=audio|stream_index=0|pts=3200|pts_time=0.400000|dts=3200|dts_time=0.400000|duration=3200|duration_time=0.400000|size=40|flags=K__|data_hash=CRC32:4d955a6f +packet|codec_type=audio|stream_index=0|pts=6400|pts_time=0.800000|dts=6400|dts_time=0.800000|duration=960|duration_time=0.120000|size=13|flags=K_C|data_hash=CRC32:55376c42 +stream|index=0|codec_name=codec2|profile=unknown|codec_type=audio|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=8000|channels=1|channel_layout=mono|bits_per_sample=0|initial_padding=0|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/8000|start_pts=N/A|start_time=N/A|duration_ts=7360|duration=0.920000|bit_rate=800|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=3|extradata_size=4|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|disposition:non_diegetic=0|disposition:captions=0|disposition:descriptions=0|disposition:metadata=0|disposition:dependent=0|disposition:still_image=0 +format|filename=cross-700C.c2|nb_streams=1|nb_programs=0|start_time=N/A|duration=0.920000 diff --git a/tests/ref/fate/libcodec2-1200 b/tests/ref/fate/libcodec2-1200 new file mode 100644 index 0000000000..975035985c --- /dev/null +++ b/tests/ref/fate/libcodec2-1200 @@ -0,0 +1,12 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +frames.frame.3.pkt_dts=9600 +frames.frame.4.pkt_dts=12800 +frames.frame.5.pkt_dts=16000 +frames.frame.6.pkt_dts=19200 +frames.frame.7.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-1300 b/tests/ref/fate/libcodec2-1300 new file mode 100644 index 0000000000..975035985c --- /dev/null +++ b/tests/ref/fate/libcodec2-1300 @@ -0,0 +1,12 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +frames.frame.3.pkt_dts=9600 +frames.frame.4.pkt_dts=12800 +frames.frame.5.pkt_dts=16000 +frames.frame.6.pkt_dts=19200 +frames.frame.7.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-1400 b/tests/ref/fate/libcodec2-1400 new file mode 100644 index 0000000000..975035985c --- /dev/null +++ b/tests/ref/fate/libcodec2-1400 @@ -0,0 +1,12 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +frames.frame.3.pkt_dts=9600 +frames.frame.4.pkt_dts=12800 +frames.frame.5.pkt_dts=16000 +frames.frame.6.pkt_dts=19200 +frames.frame.7.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-1600 b/tests/ref/fate/libcodec2-1600 new file mode 100644 index 0000000000..975035985c --- /dev/null +++ b/tests/ref/fate/libcodec2-1600 @@ -0,0 +1,12 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +frames.frame.3.pkt_dts=9600 +frames.frame.4.pkt_dts=12800 +frames.frame.5.pkt_dts=16000 +frames.frame.6.pkt_dts=19200 +frames.frame.7.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-2400 b/tests/ref/fate/libcodec2-2400 new file mode 100644 index 0000000000..54164aef8b --- /dev/null +++ b/tests/ref/fate/libcodec2-2400 @@ -0,0 +1,19 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=1600 +frames.frame.2.pkt_dts=3200 +frames.frame.3.pkt_dts=4800 +frames.frame.4.pkt_dts=6400 +frames.frame.5.pkt_dts=8000 +frames.frame.6.pkt_dts=9600 +frames.frame.7.pkt_dts=11200 +frames.frame.8.pkt_dts=12800 +frames.frame.9.pkt_dts=14400 +frames.frame.10.pkt_dts=16000 +frames.frame.11.pkt_dts=17600 +frames.frame.12.pkt_dts=19200 +frames.frame.13.pkt_dts=20800 +frames.frame.14.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-3200 b/tests/ref/fate/libcodec2-3200 new file mode 100644 index 0000000000..54164aef8b --- /dev/null +++ b/tests/ref/fate/libcodec2-3200 @@ -0,0 +1,19 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=1600 +frames.frame.2.pkt_dts=3200 +frames.frame.3.pkt_dts=4800 +frames.frame.4.pkt_dts=6400 +frames.frame.5.pkt_dts=8000 +frames.frame.6.pkt_dts=9600 +frames.frame.7.pkt_dts=11200 +frames.frame.8.pkt_dts=12800 +frames.frame.9.pkt_dts=14400 +frames.frame.10.pkt_dts=16000 +frames.frame.11.pkt_dts=17600 +frames.frame.12.pkt_dts=19200 +frames.frame.13.pkt_dts=20800 +frames.frame.14.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-700C b/tests/ref/fate/libcodec2-700C new file mode 100644 index 0000000000..975035985c --- /dev/null +++ b/tests/ref/fate/libcodec2-700C @@ -0,0 +1,12 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +frames.frame.3.pkt_dts=9600 +frames.frame.4.pkt_dts=12800 +frames.frame.5.pkt_dts=16000 +frames.frame.6.pkt_dts=19200 +frames.frame.7.pkt_dts=22400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="3.000000" diff --git a/tests/ref/fate/libcodec2-cut-1200 b/tests/ref/fate/libcodec2-cut-1200 new file mode 100644 index 0000000000..ca7b841943 --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-1200 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.600000" diff --git a/tests/ref/fate/libcodec2-cut-1300 b/tests/ref/fate/libcodec2-cut-1300 new file mode 100644 index 0000000000..96ed128cab --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-1300 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.520000" diff --git a/tests/ref/fate/libcodec2-cut-1400 b/tests/ref/fate/libcodec2-cut-1400 new file mode 100644 index 0000000000..96ed128cab --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-1400 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.520000" diff --git a/tests/ref/fate/libcodec2-cut-1600 b/tests/ref/fate/libcodec2-cut-1600 new file mode 100644 index 0000000000..556d2be87d --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-1600 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.440000" diff --git a/tests/ref/fate/libcodec2-cut-2400 b/tests/ref/fate/libcodec2-cut-2400 new file mode 100644 index 0000000000..84133a8224 --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-2400 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=1600 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.300000" diff --git a/tests/ref/fate/libcodec2-cut-3200 b/tests/ref/fate/libcodec2-cut-3200 new file mode 100644 index 0000000000..db93abdb36 --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-3200 @@ -0,0 +1,6 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=1600 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.220000" diff --git a/tests/ref/fate/libcodec2-cut-700C b/tests/ref/fate/libcodec2-cut-700C new file mode 100644 index 0000000000..61a5cf9b66 --- /dev/null +++ b/tests/ref/fate/libcodec2-cut-700C @@ -0,0 +1,7 @@ +frames.frame.0.pkt_dts=0 +frames.frame.1.pkt_dts=3200 +frames.frame.2.pkt_dts=6400 +streams.stream.0.codec_name="codec2" +streams.stream.0.sample_rate="8000" +streams.stream.0.channels=1 +streams.stream.0.duration="0.920000" -- 2.39.2