From patchwork Tue Aug 31 12:22:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 29906 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp4873933iov; Tue, 31 Aug 2021 05:23:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVTV5oIJYqLoiX4jI3CjZQD88cyKX+Y3Le5czk/384fvIS0PRkf1MN9e7rn1jgfiwk5g6Y X-Received: by 2002:a17:906:69d0:: with SMTP id g16mr29975794ejs.20.1630412593982; Tue, 31 Aug 2021 05:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630412593; cv=none; d=google.com; s=arc-20160816; b=F8NbWcestNrZBDkeYpczz6lJ0Fwkx8IedNbJz6RNqmk+7eMQwGQPrfMTpIxWfPQyNU om8FfZ6N+IV6e+cRNswksLPc0Bgb+DhJpHCndKeY7Q8H/5jYs+ilzEO6cE+F7ada30aC MKxvncY51HjaFfor6KgCkjV5Les3+DaLNxF4pRZ5iHVU7zp5HDbKus1WTqpJQq230LYp LnZ0Gd+LKYAmKmwveZLD46aysQe1PvNwoykG8vfQ1Dl6E6lsY7B/AC3zB9pAtJ7VhqsA lTckRAsDpYsylvctwxl0HaKyEG07agp4cEoHLWsTkEVqs2bAZ7qVVUObxsJGmU4RAzfm Uueg== 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=m8R6/CTj2/QA+16iPzZ9PwYYAwFdyj9oRSOUFgWMYeI=; b=EbXA/BywaSNZNAtDuhJXIGT6p7FAWvqpf7/A6aJOQxTHXD6oaJcCtUYot3adk7jd0e TrOdSQt4VsvaXf6uAwrSj9MunvYpP3jR1HlIBy3/+R5o7N1r4a5zkMjqH3FDVAcaKnqY B2TU3iCmBOJ1omwbNrcBIxQn2eBVtgLhQR6iaaXfvWliyuRgDt0enTx33wkHigNbUa/Z KO48VdGVjKjE/DsKCzYTqEL0l2vusHOR+g9Zr5+9r56+qXNhKFPn0gJIHOim0jOF2dIv WjdyY7nFW1DdvrSAzMS77XJ6a5KdD3f7CfavDMPX14/aeOlrFUFPTAbYnXpMV8o98vxT mWwQ== 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 do8si6183358ejc.520.2021.08.31.05.23.08; Tue, 31 Aug 2021 05:23:13 -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 E32FF68834D; Tue, 31 Aug 2021 15:22:25 +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 D5713680087 for ; Tue, 31 Aug 2021 15:22:13 +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 17VCMDRD019265 for ; Tue, 31 Aug 2021 14:22:13 +0200 Received: by phare.normalesup.org (Postfix, from userid 1001) id 13A51EB5BC; Tue, 31 Aug 2021 14:22:13 +0200 (CEST) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Tue, 31 Aug 2021 14:22:08 +0200 Message-Id: <20210831122209.586348-5-george@nsup.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210831122209.586348-1-george@nsup.org> References: <20210831122209.586348-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]); Tue, 31 Aug 2021 14:22:13 +0200 (CEST) Subject: [FFmpeg-devel] [PATCH 5/6] tools/dvd2concat: include language metadata. 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: Q/bGtiGOW+Bl Signed-off-by: Nicolas George --- tools/dvd2concat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/dvd2concat b/tools/dvd2concat index ef04a87d05..474b474191 100755 --- a/tools/dvd2concat +++ b/tools/dvd2concat @@ -88,9 +88,11 @@ my $concat = "ffconcat version 1.0\n"; $concat .= "\nstream\nexact_stream_id 0x1E0\n"; for my $audio (@{$track->{audio}}) { $concat .= "\nstream\nexact_stream_id " . $audio->{streamid} . "\n"; + $concat .= "stream_meta language " . $audio->{langcode} . "\n" if $audio->{langcode}; } for my $subp (@{$track->{subp}}) { $concat .= "\nstream\nexact_stream_id " . $subp->{streamid} . "\n"; + $concat .= "stream_meta language " . $subp->{langcode} . "\n" if $subp->{langcode}; } for my $cell (@{$track->{cell}}) { my $off = $cell->{first_sector};