From patchwork Fri Aug 20 15:27:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 29646 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp1362907iov; Fri, 20 Aug 2021 08:28:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4x92+sTiyIv7rG2yojSe1/BtrZQLTwGHCS1WfW9YEEYXZzqEGogIXELO13Oz2KanSfLre X-Received: by 2002:a05:6402:2029:: with SMTP id ay9mr22653195edb.236.1629473294075; Fri, 20 Aug 2021 08:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629473294; cv=none; d=google.com; s=arc-20160816; b=sV1WqBOUbLTUkNiZsQks5xz/X2LvRUWyOVqYZRIwSu1b0uTOXfWishMYuMwotfYvwc b+31XpIUwnBnUYQezHx1upC+PEl2i5M4KO2WWXTpkYV4ZEdPDPvtPvma/cM1VWkIaPZI KKqG3Q96J8zyVVC/FIJHtrgZlHFvFsaifAJc1MmJfpWUgQdl/wj6laIz/sARanYBFCWB y/67mUpGsp4HZI6dMjKd6Bzt3xG0+SGkHwbtZgoGXA5I9RYBj9Nww6tEBFN29Lhg/szj mh7n4eTXVp5MgyDLxpviJqOFdjtDdDVGrp1Ia9OsPF0p2MMXbsdT9bQjpVD4DD3fIe6m ctSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=5Ht1gvWa3rvbcD/5lQSZ05JPkhPtHoHomhEjomprwTQ=; b=MN3o/F2zWD4y5qClOCAgxK0R3I2cA2eyC9d0c11Zmku88i1nXWiG54gAqsc4UzEXNM vM5xIe/QnYoXwcUCQQvwYpGdt+GPk0qmel6F+X1z/WsxyBgNMwXGiNPs9Blk32sA2mPs rqFQ8lr6Q8gySF1kRu9KM5KkAaSmpn/6uwKynVjMKU2E0XhYu9OL+HiG6gsZtMzm7sh3 rsT7vjrrPABlTa/JuCwl1WfMUpCz/Ie1GyHV4GamCTX8ude08kklfpIrIMYMkqdSIanf R4KWRQjzuzSYUZakccL9pTBiRmbegcmSFAltfqb+9dmzY7xRTHYlF6ker0uQWnF4FLsT vu3g== 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 qb41si4079421ejc.234.2021.08.20.08.28.13; Fri, 20 Aug 2021 08:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 63A6F68A3B0; Fri, 20 Aug 2021 18:27:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from nef.ens.fr (nef2.ens.fr [129.199.96.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CFD8B68A26E for ; Fri, 20 Aug 2021 18:27:33 +0300 (EEST) X-ENS-nef-client: 129.199.129.80 ( name = phare.normalesup.org ) Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef.ens.fr (8.14.4/1.01.28121999) with ESMTP id 17KFRXft009196 for ; Fri, 20 Aug 2021 17:27:33 +0200 Received: by phare.normalesup.org (Postfix, from userid 1001) id 0A139EB5BC; Fri, 20 Aug 2021 17:27:32 +0200 (CEST) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Fri, 20 Aug 2021 17:27:28 +0200 Message-Id: <20210820152728.565116-4-george@nsup.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210820152728.565116-1-george@nsup.org> References: <20210820152728.565116-1-george@nsup.org> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef.ens.fr [129.199.96.32]); Fri, 20 Aug 2021 17:27:33 +0200 (CEST) Subject: [FFmpeg-devel] [PATCH 4/4] tools/dvd2concat: use option keyword 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: xuFPLbfe6ejU subfile,,start,X,end,Y,,: is ugly and will be gone some day. Signed-off-by: Nicolas George --- tools/dvd2concat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/dvd2concat b/tools/dvd2concat index 0280838a6b..ef04a87d05 100755 --- a/tools/dvd2concat +++ b/tools/dvd2concat @@ -117,10 +117,12 @@ for my $cell (@{$track->{cell}}) { my $file = @files == 1 ? $files[0] : "concat:" . join("|", @files); my $start = $off << 11; my $end = ($off + $size) << 11; - $file = "subfile,,start,${start},end,${end},,:$file"; my $dur = int(1000 * $cell->{length}); - $concat .= sprintf "\nfile '%s'\nduration %02d:%02d:%02d.%03d\n", $file, + $concat .= "\nfile 'subfile:$file'\n"; + $concat .= "option start $start\n"; + $concat .= "option end $end\n"; + $concat .= sprintf "duration %02d:%02d:%02d.%03d\n", int($dur / 3600000), int($dur / 60000) % 60, int($dur / 1000) % 60, $dur % 1000; }