From patchwork Thu Sep 1 21:24:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 37605 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:139a:b0:8f:1db5:eae2 with SMTP id w26csp545394pzh; Thu, 1 Sep 2022 14:24:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4RamOL9Rm+mcEs/mh0eXAn3EkQc6FuDa1sy0lQPGQ/GO6bJfo0/ZBvynSh5t0ScvX6ExsN X-Received: by 2002:a17:907:d08:b0:72f:b107:c07a with SMTP id gn8-20020a1709070d0800b0072fb107c07amr25244173ejc.340.1662067492440; Thu, 01 Sep 2022 14:24:52 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y16-20020a056402441000b004464a7ae588si201942eda.411.2022.09.01.14.24.52; Thu, 01 Sep 2022 14:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=rMouJdvi; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ADFC468B9DA; Fri, 2 Sep 2022 00:24:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2098.outbound.protection.outlook.com [40.92.89.98]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5E91568B99E for ; Fri, 2 Sep 2022 00:24:33 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hd/j9c9OYOP5InfRlwSz1fd2xYh9Lnv4E7tKsRZfyoVa2yP7pQgGchR7XnvIHLK8DYulyxKkfxuCZn98NX6x/9PwJ3YWOq/aAmWXOvP682zhPhfKAEW4gyuZTGC6aXYX3+GAL6EYax2JaZvWpMrYBjDM99q7BFL8vcnIIGEJirwcYuYqRAmE0qxZwvfSA8EZ/zSiziqRRPgqcstORgs3Jeut5YTLc42dSW20mBbBQacP7SdDUFh8Ga3HHD8xbazdBuWc0MgI6ncOJWff9iiPRPpNiGl/rp24q0rPgxMQK+T3HjMnJJw95zqWNGIgLnoHjvoUy8x/ep0pt/1zXQg//Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pjklYjsUJ9+BnRv5U1NtztTJ7jBU9PdO+r8V61zIGZ0=; b=AG/PI7Tu0VATnZf+HQYr98HUmBtFfDHRFsC7RqY8W9+Q6xCpfepD1G/6kMf9FYsYG5yWEsnCC+Z/tgksqAVbfWilVP11pF/bXlbpjFBNeH9BN6BBDQirJ2Ka3vv+mSe3quraGxwfZ/2OG9Pmd5ohgRv7HOZYz2JVVzT/zhShLXvwc/OY/oyUVe82OZpbQ/kDQQtADaCMle6VhH8AD0+A3ox0odgxJRecxYNPosucZQfRs1pneEXF27U3Uf7tjKj4s/VTH8E9PwydDsIymiZG1xSAS8ZOOdbeHaOkFdhToZpgbsIMpI2wfLRazuzgBvj7Wd9vhTegjm30IsPLyhG+yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pjklYjsUJ9+BnRv5U1NtztTJ7jBU9PdO+r8V61zIGZ0=; b=rMouJdvicDcC+wKuLDAAjbpHq+eqpugcbMUd7s6GqOFRedtWGSReezuDtkUwWtvz3YfgQKVkj5Y89JEJdjlv8fniQlBTdqn2s/Min2aVEuHTj2Wsy3m3kwYALH8TPeGjLRc1VhZL3fkKs3yzAYYTQOrigvNqKV8Q/3LkDAiSAGWDYCHJcA4k68RYNsv2MqMGUeog5xEId+w+XyRQPhjScc26wvqfF7iuUAPHNb9J7orbIPDAKgauphFx376vWtmdiguELgVAbOvmnABE7auI3AKGh3p8vFAyPipTzb5ZXjbNtkkykVPrN39BV6+jbd+2KEoq3jVx98MCCigJGw1doA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by PAXP250MB0424.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:287::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.12; Thu, 1 Sep 2022 21:24:26 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::90cc:8832:55f1:c7d6]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::90cc:8832:55f1:c7d6%7]) with mapi id 15.20.5588.010; Thu, 1 Sep 2022 21:24:26 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 1 Sep 2022 23:24:00 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [HaPnPSeH9NiJs+O+yVsNiLBcPKH4wC5y] X-ClientProxiedBy: ZR0P278CA0185.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::18) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20220901212403.2622789-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3eb9763a-b906-4b5a-9674-08da8c605918 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmqZFoN70z2NlsBDiuHIk4Y3EC+DMXnKi0YWD3tAauc7clq0gFDwawm5jfWmjXFu4zwdRotOp/y5yADbh9wG2v9TpeY9lNrXI07aH7V97NxdoBXLoYIrB+wEGuMxn00k2imoXPMwOyM952y5muVYW/UHiVD1ppdayMG8iwiC6px6qOI9RyiYobgp0d/NsXkk1BJRGtRW73EH4hAaUCo7Q1wSWjN19XzemJ+BO3puxbaEwKohrSmzzOikesiljHY4+wULJrcgr2XMSTF7HNQwu8yIv1tM7UDjFJKq+lJAVMQw1jHJk93TO5moBjS3BhoNSqxS/0wisUkhSRK/VBpWZXD+ao4xTtaIW3tswxIdg2/e5/BzalZED3Vg7eKgsBhR1nOo6VzHYNvp4/lyiE4PXnlHfdIZr16uTFR0wV1J/LSgf79k3lvLOIBUIAxGzPkQeojkK6250soCLZS+xGrhTz1ALBJsG9Op2X+0tFcUO/HcNHBBdSMC0AuOTK8Xxxfw24xwLEOP9xQAOH6CtICBs4+lIhlV1KYgvFPLsGINoGPWYRYbjZ5wV1mOa+phVN/vbAUjk09yapG0Nk/+Q/U3NbUpjBM9NfGgKIx9/anSUC5htwTcvUE0B8mqzYAOYcY2+TiRVPVOzalhGLWoDiyMOdkxci1Kf0Ck9iWEMphogdaM168pc+i3gZOnphMKc5sLtvpiZohF52FoLbRr5IK8LCTd/zUWjNGjv9MF7YhC6rRTS8AjavsrU0ePuFE3AGCc7Qc= X-MS-TrafficTypeDiagnostic: PAXP250MB0424:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YmriieBv/fm8W6WYhBeqRCWB9runUGTfcp37nAeqAlMr6vgaCGa07720i5v/hGrBpeVFFx8l5VBuEgFJ0ojakYe7FFkE9LW+gBQgaXkZkayIUtgoxFgDO9c9GbpB7zpmZtF4Suo5BMj1VWi1zR9xrc5cTtMiL/eN27OVpn2IPzZku4sBktBSf+vGekt+2OdZ0v1OGO95OSz/yyYyuBahoZDL7ncphiPhKH6UTIVw+zHMYtrUTFciFF39vbsYoQw1GH43Q1s5HM0nWqgmJKwYUHjOR9tPQnrCEHEnp8EBkU5R/eBAuY+X4Cn9yrVii4wecnxPXmQ90JYkyW5/w0HaeCm1AY+2/pGq0y4SHkFpLdJa4xJrrDx7a1dZEr+EAQ1leJo7fIjKggwqDkeP+xWr174uYZyowA9/QhyeyvBpZS0Td6etVf24XWJVVljxa/0IgvGJmZ+yyNZXEb7YMy3wl+W5Xor155oLEwI8pkx4jUeu9eAtVU1oYgIWyWbGBkKJ2fj/nET08uEfbeNevp+D32yA+7QVEHneulzCUHx3njD9oArkd2aiUBa1rqc25IGVi3mDepgYelLndOLb3zc+H7zJleZiRAnEOVlOgJUJeQSYgCiPFUacSBDEBBKjV7kjDrdI2+FW2v+O2hbG/loqow== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: X9Q50ZDEXJ1f8H7AimVfHh+yynBENIw6qnkW7CrsMmuQlUWN1FgpKuqp5EQSYWDV4gIbHuw1Emlya8YtP9bK5lKA6QRPQVXvozsOjOhnTCDJ2LSudiMZE3XPUxb5DPVCG0Gz5ITgC1S7qS3u1cTzJnKBB6lU2JaRi8Ji4S3X2hb1w/syLU5yhn8OjwHIF1vCs+wS3m4sO+6rHj3xXOinXEJnBm1VJsdGDTA+CN7TtRS4mPOObZvrik4YbioRA5P/FzKB6nJgELXCyKAhfxqBHZ3ydF4UAR3b5ozklFippNphFihhr4UQn8/6cpjYRcGYt2K5wErlkTZrcx5izKueIJpVyI9jzIQdaQrNFVpSYiW2KcsvDLvmOMRNQc3BmQH22A6bC3x7FjL0FknhX9hcKeWRxgwbz3csHoZuqgHjUnC0b1sgTl4X52Tr9bScyFsT/ab9lEPKUPkny2qiRURu5zdxQ6qNbLAvUYxNzXYcWDbK40Ch1uDd0R2H2QnfDSDpGSDTAR/BnFF9dGS/iOb3tmZ57Ax+sDd9NYeMsfjilqPovGwihBb+xJJ0USS1vIF9liwyrsWb4psv9zH4XQKT9sDyhnZSAd3VrbVF8vev7Zu0yYvk/14w7kkslLTn3Ptx9OzDMHAOl8b4T+MHeKeftT5b86FgKQ/bDHNH1A+v1A0z89iufHsaKxElxSyy2DuQPZYAxJFE7SmjZPiZUDUZb6RotgsHp8J5QjfzKULzJaBVP15anJWUOhVpTxdHfeujtolBLYQHFUPl2Kvupjq6TFiDoG+mXr5uB0Rofwf59TAgFRT1IAb79w4y+2CcOJNCp6RDJc5fo2/o1hiTMQ5m6DioYcj5D8/xc4v0DBg4QbgYVhIr0yqufZ4yd4yGAXyJeY1HqXsf5OOSoW2yE8riF9AVsKGkuJwoHNkkdu9TPFpj2TMnYh+GQ3zxlNJRoqjOmP5sFmiUkNZ2beXKV2H36l0fLAayO6Su1KChl61zFKAWTXI9apVFDpc2XMEv+pzDCwfvz0np8k46oPTwcSThliL66r1L5Tr3t8l7gs9pL7dxqdIF/+kGmXdu0AvVFrQofGMDijaQGoqYLc8hWmpwwK0G7eFrD4FMYQSfn++9UnCU0mz1gsrclwRLdYpm5fkuqDBAKpwpylMQGzButh7hlmm9PqmygNxYJ06sbzWzW1WPKpgJ0oBw2EtzD1OEoOD8qzcRPcS/5EIrcJPYQhibeOYP/+OEBqx8LBuqpwkf+DucYIOldWIbfMA7iGyDL5dSImtY66xOpa/ccIjIXnDrpgLNYHC8/gQunbvQp3wP5c8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3eb9763a-b906-4b5a-9674-08da8c605918 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2022 21:24:26.8077 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXP250MB0424 Subject: [FFmpeg-devel] [PATCH 5/8] avformat/matroskaenc: Actually apply timestamp offset for Opus X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 1M982f8AWIFZ Matroska generally requires timestamps to be nonnegative, but there is an exception: Data that corresponds to encoder delay and is not supposed to be output anyway can have a negative timestamp. This is achieved by using the CodecDelay header field: The demuxer has to subtract this value from the raw (nonnegative) timestamps of the corresponding track. Therefore the muxer has to add this value first to write this raw timestamp. Support for writing CodecDelay has been added in FFmpeg commit d92b1b1babe69268971863649c225e1747358a74 and in Libav commit a1aa37dd0b96710d4a17718198a3f56aea2040c1. The former simply wrote the header field and did not apply any timestamp offsets, leading to desynchronisation (if one uses multiple tracks). The latter applied it at two places, but not at the one where it actually matters, namely in mkv_write_block(), leading to the same desynchronisation as with the former commit. It furthermore used the wrong stream timebase to convert the delay to the stream's timebase, as the conversion used the timebase from before avpriv_set_pts_info(). When the latter was merged in 82e4f39883932c1b1e5c7792a1be12dec6ab603d, it was only done in a deactivated state that still did not offset the timestamps when muxing due to "assertion failures and av sync errors". a1aa37dd0b96710d4a17718198a3f56aea2040c1 made it definitely more likely to run into assertion failures (namely if the relative block timestamp doesn't fit into an int16_t). Yet all of the above issues have been fixed (in commits 962d63157322466a9a82f9f9d84c1b6f1b582f65, 5d3953a5dcfd5f71391b7f34908517eb6f7e5146 and 4ebeab15b037a21f195696cef1f7522daf42f3ee. This commit therefore enables applying CodecDelay, fixing ticket #7182. There is just one slight regression from this: If one has input with encoder delay where the first timestamp is negative, but the pts of the part of the data that is actually intended to be output is nonnegative, then the timestamps will currently by default be shifted to make them nonnegative before they reach the muxer; the muxer will then ensure that the shifted timestamps are retained. Before this commit, the muxer did not ensure this; instead the timestamps that the demuxer will output were shifted and if the first timestamp of the actually intended output was zero before shifting, then this unintentional shift just cancels the shift performed before the packet reached the muxer. (But notice that this only applies if all the tracks use the same CodecDelay, or the relative sync between tracks will be impaired.) This happens in the matroska-opus-remux and matroska-ogg-opus-remux FATE tests. Future commits will forward the information that the Matroska muxer has a limited capability to handle negative timestamps so that the shifting in libavformat can take advantage of it. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 8 +- tests/ref/fate/matroska-ogg-opus-remux | 108 ++++++++++---------- tests/ref/fate/matroska-opus-remux | 130 ++++++++++++------------- 3 files changed, 123 insertions(+), 123 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index c525edb39f..0ded53dc21 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1836,11 +1836,11 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, av_log(s, AV_LOG_ERROR, "Initial padding is invalid\n"); return AVERROR(EINVAL); } -// track->ts_offset = av_rescale_q(par->initial_padding, -// (AVRational){ 1, par->sample_rate }, -// st->time_base); - put_ebml_uint(pb, MATROSKA_ID_CODECDELAY, codecdelay); + + track->ts_offset = av_rescale_q(par->initial_padding, + (AVRational){ 1, par->sample_rate }, + st->time_base); } if (par->codec_id == AV_CODEC_ID_OPUS) put_ebml_uint(pb, MATROSKA_ID_SEEKPREROLL, OPUS_SEEK_PREROLL); diff --git a/tests/ref/fate/matroska-ogg-opus-remux b/tests/ref/fate/matroska-ogg-opus-remux index 1fa776ef01..da9c8d285b 100644 --- a/tests/ref/fate/matroska-ogg-opus-remux +++ b/tests/ref/fate/matroska-ogg-opus-remux @@ -1,4 +1,4 @@ -a3f98769fe55bc5234cf75fb1949749a *tests/data/fate/matroska-ogg-opus-remux.matroska +47b6b69c2ffdf5729557e90c72d241e9 *tests/data/fate/matroska-ogg-opus-remux.matroska 10200 tests/data/fate/matroska-ogg-opus-remux.matroska #extradata 0: 19, 0x399c0471 #tb 0: 1/1000 @@ -6,54 +6,54 @@ a3f98769fe55bc5234cf75fb1949749a *tests/data/fate/matroska-ogg-opus-remux.matros #codec_id 0: opus #sample_rate 0: 48000 #channel_layout_name 0: stereo -0, -7, -7, 20, 402, 0x89b1c40f -0, 13, 13, 20, 216, 0x7bf97146 -0, 33, 33, 20, 215, 0x6cb86d8b -0, 53, 53, 20, 218, 0x9cfd691c -0, 73, 73, 20, 218, 0xd7fe6a94 -0, 93, 93, 20, 194, 0x35735de6 -0, 113, 113, 20, 216, 0x3ee6705a -0, 133, 133, 20, 218, 0x67eb6cb1 -0, 153, 153, 20, 218, 0x32d0700d -0, 173, 173, 20, 219, 0xcb7f6c60 -0, 193, 193, 20, 218, 0x9c866b33 -0, 213, 213, 20, 217, 0xfe3e6a53 -0, 233, 233, 20, 218, 0x13586833 -0, 253, 253, 20, 222, 0xbcb2669e -0, 273, 273, 20, 218, 0x8dfc6e33 -0, 293, 293, 20, 217, 0xf5957051 -0, 313, 313, 20, 210, 0xed126e6b -0, 333, 333, 20, 216, 0xbf947249 -0, 353, 353, 20, 203, 0x6c7e680a -0, 373, 373, 20, 209, 0xf78f6af4 -0, 393, 393, 20, 217, 0xd60c684d -0, 413, 413, 20, 218, 0x89056a7a -0, 433, 433, 20, 219, 0x0bc674ad -0, 453, 453, 20, 217, 0xb1d86d1a -0, 473, 473, 20, 220, 0x433d685a -0, 493, 493, 20, 364, 0x0c88be84 -0, 513, 513, 20, 221, 0x804a733d -0, 533, 533, 20, 215, 0x6e9d6e9b -0, 553, 553, 20, 215, 0x63016a83 -0, 573, 573, 20, 218, 0xf9a46fbe -0, 593, 593, 20, 216, 0xa0d66c08 -0, 613, 613, 20, 216, 0xa2ca6d0a -0, 633, 633, 20, 216, 0xf50e6f1d -0, 653, 653, 20, 215, 0x6aaa70b6 -0, 673, 673, 20, 219, 0x7ceb6ba0 -0, 693, 693, 20, 220, 0x398d6ca9 -0, 713, 713, 20, 218, 0x7bd06ed5 -0, 733, 733, 20, 219, 0xe2906c62 -0, 753, 753, 20, 217, 0xcf316ba1 -0, 773, 773, 20, 217, 0x470b6eea -0, 793, 793, 20, 359, 0x36c2a18a, S=1, 10 +0, 0, 0, 20, 402, 0x89b1c40f +0, 20, 20, 20, 216, 0x7bf97146 +0, 40, 40, 20, 215, 0x6cb86d8b +0, 60, 60, 20, 218, 0x9cfd691c +0, 80, 80, 20, 218, 0xd7fe6a94 +0, 100, 100, 20, 194, 0x35735de6 +0, 120, 120, 20, 216, 0x3ee6705a +0, 140, 140, 20, 218, 0x67eb6cb1 +0, 160, 160, 20, 218, 0x32d0700d +0, 180, 180, 20, 219, 0xcb7f6c60 +0, 200, 200, 20, 218, 0x9c866b33 +0, 220, 220, 20, 217, 0xfe3e6a53 +0, 240, 240, 20, 218, 0x13586833 +0, 260, 260, 20, 222, 0xbcb2669e +0, 280, 280, 20, 218, 0x8dfc6e33 +0, 300, 300, 20, 217, 0xf5957051 +0, 320, 320, 20, 210, 0xed126e6b +0, 340, 340, 20, 216, 0xbf947249 +0, 360, 360, 20, 203, 0x6c7e680a +0, 380, 380, 20, 209, 0xf78f6af4 +0, 400, 400, 20, 217, 0xd60c684d +0, 420, 420, 20, 218, 0x89056a7a +0, 440, 440, 20, 219, 0x0bc674ad +0, 460, 460, 20, 217, 0xb1d86d1a +0, 480, 480, 20, 220, 0x433d685a +0, 500, 500, 20, 364, 0x0c88be84 +0, 520, 520, 20, 221, 0x804a733d +0, 540, 540, 20, 215, 0x6e9d6e9b +0, 560, 560, 20, 215, 0x63016a83 +0, 580, 580, 20, 218, 0xf9a46fbe +0, 600, 600, 20, 216, 0xa0d66c08 +0, 620, 620, 20, 216, 0xa2ca6d0a +0, 640, 640, 20, 216, 0xf50e6f1d +0, 660, 660, 20, 215, 0x6aaa70b6 +0, 680, 680, 20, 219, 0x7ceb6ba0 +0, 700, 700, 20, 220, 0x398d6ca9 +0, 720, 720, 20, 218, 0x7bd06ed5 +0, 740, 740, 20, 219, 0xe2906c62 +0, 760, 760, 20, 217, 0xcf316ba1 +0, 780, 780, 20, 217, 0x470b6eea +0, 800, 800, 20, 359, 0x36c2a18a, S=1, 10 [PACKET] codec_type=audio stream_index=0 -pts=-7 -pts_time=-0.007000 -dts=-7 -dts_time=-0.007000 +pts=0 +pts_time=0.000000 +dts=0 +dts_time=0.000000 duration=20 duration_time=0.020000 size=402 @@ -63,10 +63,10 @@ flags=K_ [PACKET] codec_type=audio stream_index=0 -pts=13 -pts_time=0.013000 -dts=13 -dts_time=0.013000 +pts=20 +pts_time=0.020000 +dts=20 +dts_time=0.020000 duration=20 duration_time=0.020000 size=216 @@ -76,10 +76,10 @@ flags=K_ [PACKET] codec_type=audio stream_index=0 -pts=33 -pts_time=0.033000 -dts=33 -dts_time=0.033000 +pts=40 +pts_time=0.040000 +dts=40 +dts_time=0.040000 duration=20 duration_time=0.020000 size=215 diff --git a/tests/ref/fate/matroska-opus-remux b/tests/ref/fate/matroska-opus-remux index 61afeaa751..286bb65949 100644 --- a/tests/ref/fate/matroska-opus-remux +++ b/tests/ref/fate/matroska-opus-remux @@ -1,4 +1,4 @@ -551e45142f0989b281e837a3a86f0218 *tests/data/fate/matroska-opus-remux.matroska +2ab987ba7bad94b27fae427cdff57723 *tests/data/fate/matroska-opus-remux.matroska 9355 tests/data/fate/matroska-opus-remux.matroska #extradata 0: 19, 0x3a04048f #tb 0: 1/1000 @@ -6,65 +6,65 @@ #codec_id 0: opus #sample_rate 0: 48000 #channel_layout_name 0: mono -0, -7, -7, 20, 320, 0x58b9a88d -0, 14, 14, 20, 159, 0x6c9c4b4c -0, 34, 34, 20, 148, 0x0caf4b5d -0, 54, 54, 20, 139, 0xc5624226 -0, 74, 74, 20, 146, 0x633c4937 -0, 94, 94, 20, 153, 0x3d0b4f93 -0, 114, 114, 20, 158, 0xe5c55641 -0, 134, 134, 20, 156, 0xf2fd50ef -0, 154, 154, 20, 158, 0x93b15410 -0, 174, 174, 20, 157, 0xb6f74f5f -0, 194, 194, 20, 159, 0x9aff4957 -0, 214, 214, 20, 153, 0xfc5f4aba -0, 234, 234, 20, 158, 0x01e44f70 -0, 254, 254, 20, 153, 0x227149cf -0, 274, 274, 20, 155, 0x312f4cf6 -0, 294, 294, 20, 155, 0xafc54bae -0, 314, 314, 20, 151, 0x7b4252b3 -0, 334, 334, 20, 155, 0x29074a75 -0, 354, 354, 20, 149, 0x82c44bcd -0, 374, 374, 20, 150, 0x55c24eb5 -0, 394, 394, 20, 156, 0xf71d4f33 -0, 414, 414, 20, 153, 0x9b6c4ae5 -0, 434, 434, 20, 156, 0x75954e51 -0, 454, 454, 20, 155, 0x28ff4ff3 -0, 474, 474, 20, 153, 0xc4424969 -0, 494, 494, 20, 154, 0xfbf94cc8 -0, 514, 514, 20, 155, 0x52c549af -0, 534, 534, 20, 150, 0x6f1e4b7a -0, 554, 554, 20, 158, 0xabb45566 -0, 574, 574, 20, 157, 0xe61d4a99 -0, 594, 594, 20, 159, 0xf45d4fac -0, 614, 614, 20, 159, 0xcd0553a5 -0, 634, 634, 20, 156, 0xdb244e63 -0, 654, 654, 20, 154, 0x78654c52 -0, 674, 674, 20, 154, 0x9f804cc8 -0, 694, 694, 20, 150, 0x1fdf4c80 -0, 714, 714, 20, 155, 0x1adc4f89 -0, 734, 734, 20, 155, 0x4b53511c -0, 754, 754, 20, 151, 0x8ff2546d -0, 774, 774, 20, 158, 0xb7e34f1b -0, 794, 794, 20, 154, 0x4d98474b -0, 814, 814, 20, 154, 0x14924ea8 -0, 834, 834, 20, 153, 0x8d4752bf -0, 854, 854, 20, 149, 0x74785066 -0, 874, 874, 20, 151, 0x36c94a4c -0, 894, 894, 20, 155, 0x82904f3b -0, 914, 914, 20, 154, 0xd76b4a45 -0, 934, 934, 20, 159, 0x9fec548d -0, 954, 954, 20, 154, 0x9a084dcd -0, 974, 974, 20, 155, 0x90a54ac8 -0, 994, 994, 20, 324, 0x8e34a2f5 -0, 1014, 1014, 20, 268, 0x10f37203, S=1, 10 +0, 0, 0, 20, 320, 0x58b9a88d +0, 21, 21, 20, 159, 0x6c9c4b4c +0, 41, 41, 20, 148, 0x0caf4b5d +0, 61, 61, 20, 139, 0xc5624226 +0, 81, 81, 20, 146, 0x633c4937 +0, 101, 101, 20, 153, 0x3d0b4f93 +0, 121, 121, 20, 158, 0xe5c55641 +0, 141, 141, 20, 156, 0xf2fd50ef +0, 161, 161, 20, 158, 0x93b15410 +0, 181, 181, 20, 157, 0xb6f74f5f +0, 201, 201, 20, 159, 0x9aff4957 +0, 221, 221, 20, 153, 0xfc5f4aba +0, 241, 241, 20, 158, 0x01e44f70 +0, 261, 261, 20, 153, 0x227149cf +0, 281, 281, 20, 155, 0x312f4cf6 +0, 301, 301, 20, 155, 0xafc54bae +0, 321, 321, 20, 151, 0x7b4252b3 +0, 341, 341, 20, 155, 0x29074a75 +0, 361, 361, 20, 149, 0x82c44bcd +0, 381, 381, 20, 150, 0x55c24eb5 +0, 401, 401, 20, 156, 0xf71d4f33 +0, 421, 421, 20, 153, 0x9b6c4ae5 +0, 441, 441, 20, 156, 0x75954e51 +0, 461, 461, 20, 155, 0x28ff4ff3 +0, 481, 481, 20, 153, 0xc4424969 +0, 501, 501, 20, 154, 0xfbf94cc8 +0, 521, 521, 20, 155, 0x52c549af +0, 541, 541, 20, 150, 0x6f1e4b7a +0, 561, 561, 20, 158, 0xabb45566 +0, 581, 581, 20, 157, 0xe61d4a99 +0, 601, 601, 20, 159, 0xf45d4fac +0, 621, 621, 20, 159, 0xcd0553a5 +0, 641, 641, 20, 156, 0xdb244e63 +0, 661, 661, 20, 154, 0x78654c52 +0, 681, 681, 20, 154, 0x9f804cc8 +0, 701, 701, 20, 150, 0x1fdf4c80 +0, 721, 721, 20, 155, 0x1adc4f89 +0, 741, 741, 20, 155, 0x4b53511c +0, 761, 761, 20, 151, 0x8ff2546d +0, 781, 781, 20, 158, 0xb7e34f1b +0, 801, 801, 20, 154, 0x4d98474b +0, 821, 821, 20, 154, 0x14924ea8 +0, 841, 841, 20, 153, 0x8d4752bf +0, 861, 861, 20, 149, 0x74785066 +0, 881, 881, 20, 151, 0x36c94a4c +0, 901, 901, 20, 155, 0x82904f3b +0, 921, 921, 20, 154, 0xd76b4a45 +0, 941, 941, 20, 159, 0x9fec548d +0, 961, 961, 20, 154, 0x9a084dcd +0, 981, 981, 20, 155, 0x90a54ac8 +0, 1001, 1001, 20, 324, 0x8e34a2f5 +0, 1021, 1021, 20, 268, 0x10f37203, S=1, 10 [PACKET] codec_type=audio stream_index=0 -pts=-7 -pts_time=-0.007000 -dts=-7 -dts_time=-0.007000 +pts=0 +pts_time=0.000000 +dts=0 +dts_time=0.000000 duration=20 duration_time=0.020000 size=320 @@ -74,10 +74,10 @@ flags=K_ [PACKET] codec_type=audio stream_index=0 -pts=14 -pts_time=0.014000 -dts=14 -dts_time=0.014000 +pts=21 +pts_time=0.021000 +dts=21 +dts_time=0.021000 duration=20 duration_time=0.020000 size=159 @@ -87,10 +87,10 @@ flags=K_ [PACKET] codec_type=audio stream_index=0 -pts=34 -pts_time=0.034000 -dts=34 -dts_time=0.034000 +pts=41 +pts_time=0.041000 +dts=41 +dts_time=0.041000 duration=20 duration_time=0.020000 size=148