From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E50F84865A for ; Sat, 13 Jan 2024 02:29:04 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6FCA368CE36; Sat, 13 Jan 2024 04:29:01 +0200 (EET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04olkn2091.outbound.protection.outlook.com [40.92.73.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DCF8868CC33 for ; Sat, 13 Jan 2024 04:28:54 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WYFEhu9lTmSTbKzH0HMw0s+VFT3cSUfR34p0Z53O0PgaYJRfgXG1IeEZ3mdL5Y7A33rDt/miShC0lLLRR84sjGRprQZn15ZUWeXYO1pbar9HmxDSt3Mh5gc5ycR5xEb0nfxTlkGyNnO0pBUFOpX4nuQyF4glSHMYeXio5vYX+Mi4B/tTGRJ1GN/XCGe8KJkoc6wZFVlLsVqp7vWcWKTHrQWVaQ78Hbp8ZDnFDG1EkU/DRRCenx4lJFKxYzgg0zXiAnelJ7utI+cwE4rg1rYk4jdaptkCqBvUiBuU4+zFHk3MxO44yahbTx5IWdJe89DuhIcCfwn8e/P+HOKzJ/2MXw== 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=auu3r9j55hOBfvRC25xvH7n5MgPU9ozqf9wR7Wpzi7g=; b=SzDLSK4dVoVQ9l9zW8hjWOVC1YkE+4BJVoJUnG4j3OklzmezBGB6aU8SZDk6rPZKz96UdHsV51LQg+5Gmi6qBQffZVYJSiE0qh8Yrn5PwFv/rGd8sD/6gOoojZ+JEaQc3hE5J08lgLnFx4bwYitNSavTIB9rP2uTsVbajE+GJGyp11QAvuuCDDKaR7PpdMw6z7zGpJ/7aoNCXzpSFBncn4HspNGimz3al2GRptE7q7NoALHYNYma0YqZXw80bPpIFEIHUOJZk5f0rUr+ccra/j0jKh5buwUDgnsLimHNaTPzj3OTld9o7NrD3uqvx7SLcWwh1xi38iSt3hrFA+37Jg== 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=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=auu3r9j55hOBfvRC25xvH7n5MgPU9ozqf9wR7Wpzi7g=; b=T30QgXcFxUoe0UyP3HQZZXmt3da0jQzDT4euuEg3wQUgd58Ef70jHLw8Vh7KlZ6rDul/LVpyxlYn3FnMwb8JjuB9WG2wC6ZjaM3aTQ4aDG4Ag1agl9a517kR5cI+WlcKphryjm0YUfKckDkkz0UtuJZ+bYRvc8KQJsWRCRj514m2loOaUhy1X8zDEiY+zEtizSXZ2qtBp/mQxmzR+itSvBBoNTxCNNIBfMa+Hj2y79cF/xQSun1bD1nvw0dlKIAOD/5a7qzrNqnFEaaiMDdjHj0XlD1LRnQJMY99nKh7cwrIpGQNhmNfFFP6IhrH1xu6lREHssitXzvhMyYpXDGtrg== Received: from PAVPR08MB9795.eurprd08.prod.outlook.com (2603:10a6:102:31f::12) by AS8PR08MB8252.eurprd08.prod.outlook.com (2603:10a6:20b:53c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Sat, 13 Jan 2024 02:28:52 +0000 Received: from PAVPR08MB9795.eurprd08.prod.outlook.com ([fe80::83f1:da95:eae9:6b96]) by PAVPR08MB9795.eurprd08.prod.outlook.com ([fe80::83f1:da95:eae9:6b96%7]) with mapi id 15.20.7181.015; Sat, 13 Jan 2024 02:28:52 +0000 From: aybe aybe To: FFmpeg development discussions and patches Thread-Topic: Re[2]: [FFmpeg-devel] [PATCH 1/4] avcodec/mdec: DC reading for STRv1 is like STRv2 Thread-Index: AQHaPSZMtE+axwsvBUa1gdglXk5Ai7DSY/8AgASyLYA= Date: Sat, 13 Jan 2024 02:28:52 +0000 Message-ID: References: <20240110024602.GQ6420@pb2> In-Reply-To: <20240110024602.GQ6420@pb2> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [C78JpIe7ifFPc22jx+btKSDbycUyetPwM2lPJrSydWiIvw1SOSmrDw==] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PAVPR08MB9795:EE_|AS8PR08MB8252:EE_ x-ms-office365-filtering-correlation-id: 7760b510-cb18-4e11-9ce1-08dc13df61f5 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TMOJ/6wFwE3hoa9ZG+7pLabSS6EsaFFr1R9fkM0h5sUGG4v+Q7C1L7jdJKNXPtzniuyaH+3KuEx5Djw1KYerSfswIQ9a/qBM8ysxE9uB8X6ZSDBPwFGXVruVDkUm9NGYFRy9GQYNDvsdmpHzwrEWdWW4p/ysqEtO3c9fLx5U8eCTur6vVk8/RbMVwHzhvpba0Zh30Y0QwlcKND0lg9Ui0XjEh3Z7bsGZu+649FnGvh7eBDb5Ug5gDHNbH3LseDsly5r/BpP7oGNJyt4hbq+S4jpmh+UWDzvMoCcr+YRleeML3TT4P/RNLwgZ6/qLyyvgwXut6BiVIwcf4YBxDFznYdgQTb9/Gz3s8TXI/9lVjClb5dLkubPfdQ2bFlXBOcv5Ac/BABj/ayDe89r4IivBN5FCins7jSB3qrzDHBPIKl9siLvefF/8rekknboPrGTYpchR8Ny4hgsR48YbgHHoeBLwaZ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cmY3dzZK?= =?utf-8?B?Q3d2NnpXYTZHSFovMlV1UllVOFU0czlDbXEwWm4yZkJsendMKzR2U3Z2eDB5?= =?utf-8?B?Q0luY2FCZnRwdngzTjVodmFCcEQ2cng0RUJaekJrSGRGSjU4STYrWkE0bzlG?= =?utf-8?Q?hrrytsaVALrxM8uVfYgQ?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-37dd7.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PAVPR08MB9795.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 7760b510-cb18-4e11-9ce1-08dc13df61f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2024 02:28:52.1526 (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: AS8PR08MB8252 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [PATCH 1/4] avcodec/mdec: DC reading for STRv1 is like STRv2 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Here are the two STR files I have used when writing this patch: https://github.com/aybe/FFmpeg-PSX-STR-tests Fanatics would probably say that 30 FPS for NTSC is wrong (i.e. should be 29.97)... However, as the reversed-engineered docs in jpsxdec mentions, it is sort of impossible to figure out which value to snap to from how frames spans across CD-ROM sectors. The sector count per video frame always seem to juggle between two values, e.g. 6 sectors, then 7 sectors, rinse/repeat. i.e. it's never constant. Also, as one can see in the various code samples online on writing a PSX program that plays MDEC videos, it is the responsibility of the coder to present the frames on screen. i.e. there is not definitive way on how to do so, and even if there was, you can be sure some folks did not play by the rules back then. The only way to figure out how a movie was intended to be played is to reverse engineer a game to see what values they did cram in. In short, the computed frame rate is 99% good, not 100%. But for mere mortals, they are unlikely to notice it at all. As for the movies in the samples repository, they are corrupt and FFmpeg fails at them, obviously. I figured these ones were by checking them in a hex-editor but also by loading them in https://github.com/m35/jpsxdec which has great logging. Not sure why these samples were corrupt in first instance, maybe it was intentional for testing? I can't tell. ------ Original Message ------ >From "Michael Niedermayer" > To "FFmpeg development discussions and patches" > Date 1/10/2024 3:46:02 AM Subject Re: [FFmpeg-devel] [PATCH 1/4] avcodec/mdec: DC reading for STRv1 is like STRv2 On Tue, Jan 02, 2024 at 02:49:26AM +0000, aybe aybe wrote: Hi, As I understand, support for .STR files is broken for almost 10 years now (since 161442ff2c4b0dd8a5072c6bbe6bf55303fffccf it seems). Currently, ffmpeg fails with tons of errors like this on version 1 STRs, e.g. Wipeout 1: [mdec @ 00000000027c72c0] ac-tex damaged at 1 9 where can i find a psxstr file to test this ? the psxstr files i find on https://samples.ffmpeg.org/ seem not affected by this thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are best at talking, realize last or never when they are wrong. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".