From patchwork Mon Oct 30 23:22:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 5770 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp3258067jah; Mon, 30 Oct 2017 16:22:41 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R3gqqTOuA03pY0Tzvf6TuXc++q/RUcw2hIAnrD5+kIwhWZcjfR8OeYpj1FU0TPrl4LVTmR X-Received: by 10.223.201.5 with SMTP id m5mr27352wrh.68.1509405761054; Mon, 30 Oct 2017 16:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509405761; cv=none; d=google.com; s=arc-20160816; b=SQWa95ZqdoydBrblpMqBKf6yHt8TKxfkIjKb9mdTFuHNz5T357pNa0nzOF/HjgPjRE xxKAh/uripPeXtXRpLJt8vzlpHYgfZgTB2reFO6UAikbBevEcFp6hLD3CxQPUyNrAne+ +De5F3CcBftxqWEGRVLUUTAXbow9uuYCXHr3+0WfvH2mSifb8XVQbrefcCBvaq1ly8aI EIdgXSUSUEAFo79b+kMD8JKbtAqLG4Q/eqCrc3L8jDFzB0bp85LmuWb8hOoXzRwjht7k Rqa4EM22ap6PK51nvvuxBvp7ukEeZzJljddIgWK9KkKTLyhR/ynwBWqeX6TsChv0BDgi HYtw== 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:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=a+ey0AOViRZt+Pj890HLh3lU8qUPnD1ECUJk+kLr1DA=; b=mNqIe296EMmnSdgy4KMYoYXuVmAefgxukm2JLm+4xwuglSJHkb7VfmE1YWoF2ruqNU 4xPq8yu0a18zhIDbRdHYhAqC3xs+/pVlGQo4w9Gt78vWmv4ApNQBKq4VeTRSv1cvJCKa cUxEG0igCoxP3nsjAJb7kvBQF2BxYhhM0y7VSJ83W0Y4eBxpbGnUb5iNAGbF9nadapE+ 0Aefi3zxFFScDR5GDi7v5A9dwHc1eN+pmhG7hKzQzpEFCnzXdrZbyUY98X0uRsNcVute wk00qdO4nZyNhRdNnrgwQk2Gc2vL6M8suXA6SH4HdpR8BPS8DkXBMAhfhVmvebHs2462 YmTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Zh1j0CHl; 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=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a16si73698wrf.316.2017.10.30.16.22.40; Mon, 30 Oct 2017 16:22:41 -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=@gmail.com header.s=20161025 header.b=Zh1j0CHl; 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=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 65226689E0E; Tue, 31 Oct 2017 01:22:30 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 302766882E2 for ; Tue, 31 Oct 2017 01:22:23 +0200 (EET) Received: by mail-io0-f173.google.com with SMTP id f20so31007356ioj.9 for ; Mon, 30 Oct 2017 16:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=sTH8pH1AjrrZTB/UzyAz6YLCW3gaB4RcVaZXWVlNv0U=; b=Zh1j0CHlujCxVLx0V/y6IrEtae8Gu+TTyob4uGsH8F1xSITSYuNb7OnICoIuAd9V1x ZF9V5IHg0IXi+FWgmzMqG+iVvu/wCM7M9SHmcJXLU+lY6kAjfzpaVFgpBmXfISRYEe0t i1ninLB8a+MmcwR9QLaNGUFYnzPKunzY5Ax3SBZx82ab+IxgPO8In6vXnMcD3PJJNl9G nexhQ/kmpEz+ORwIHYC5V0Bu7G5sCXez1qURKuOHP/1cSNeJH5qAfjDddw+fIzJMwxLn DXb/iH95t5Bx4FwbDBnb+JYLeuQ3LVkSC0JW6VTzf0sPw81KSdjez0u5hsZqiLhYGegA eoNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=sTH8pH1AjrrZTB/UzyAz6YLCW3gaB4RcVaZXWVlNv0U=; b=FKfnL5kV9mwzAg7fHRA6hX3QcwO4xWjR4PGl1iRL5gHES+ab7x+zvW5aLA2k44AQ1B cQ3aZkz2zxv+trMnH8f1fP6r9xb2lWmZbzQrPQxLbZfDpKZS0s18VUT1IBYrd0knDy07 +kZGPodWD1Ue53wXMOKxscrPd089lDuUp7NgAvxAyXSUNcoLN557Z+2Y9B4/hjQ/O1h4 +PHUii/m53D57/5h9xrjoo4YG7DWtoNfIBouVSbt+pnhZAsRu0VXl6e3o/l1A6WcNJ80 mQxSMfj3279TkH5JKqxdyhdXfxJKSd9EjUoXMmZhCCkcCcAbOeDmIME1a80HEKN3chRs qlwA== X-Gm-Message-State: AMCzsaWgmAaBrSy9oEDNlCCDoQmI6zu202O0beL6ldRmV6YYxP2EYyQf 2/Lj7Xg1SIE1kCyUiiF6sq3q/VWHMi622cBgfIJFQA== X-Received: by 10.107.63.67 with SMTP id m64mr25170ioa.272.1509405751330; Mon, 30 Oct 2017 16:22:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.63.101 with HTTP; Mon, 30 Oct 2017 16:22:10 -0700 (PDT) From: Carl Eugen Hoyos Date: Tue, 31 Oct 2017 00:22:10 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]lavf/mxfenc: Support 60fps output X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Kasper Folman has reported that FFmpeg does not write 60fps mxf output and has provided a 60fps mxf file on -users. Attached patch allows 60fps output. Please comment, Carl Eugen From bb5b071db9a8977bd1a7dea579b4d244e17ca3a3 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 31 Oct 2017 00:19:38 +0100 Subject: [PATCH] lavf/mxfenc: Support 60fps output. --- libavformat/mxf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mxf.c b/libavformat/mxf.c index bfc3218..5994b09 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -137,6 +137,7 @@ static const MXFSamplesPerFrame mxf_spf[] = { { { 1001, 60000 }, { 801, 801, 801, 801, 800, 0 } }, // NTSC 59.94 { { 1, 25 }, { 1920, 0, 0, 0, 0, 0 } }, // PAL 25 { { 1, 50 }, { 960, 0, 0, 0, 0, 0 } }, // PAL 50 + { { 1, 60 }, { 800, 0, 0, 0, 0, 0 } }, }; static const AVRational mxf_time_base[] = { @@ -146,6 +147,7 @@ static const AVRational mxf_time_base[] = { { 1001, 60000 }, { 1, 25 }, { 1, 50 }, + { 1, 60 }, { 0, 0} }; -- 1.7.10.4