From patchwork Tue Aug 31 18:07:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 29921 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp5155047iov; Tue, 31 Aug 2021 11:08:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEzp8TEGvl1baETauKNqdzyJ74ggjugEgbh7ZLoXBxO2qWnXsYxaSmhsD7FgTPyIpNmvv0 X-Received: by 2002:a17:906:8468:: with SMTP id hx8mr31655302ejc.492.1630433329239; Tue, 31 Aug 2021 11:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630433329; cv=none; d=google.com; s=arc-20160816; b=m6LK2XwmO3hFSf1jeiEyS1MD+v1EMMTH60za6OF5wVtqtPTWYtlOXA5Zd2+TNQd+yc 3d3i8e12+OFYHM6BLE+SeFAlwuNySNOO1pswnx07fdN9B9vYusTCHBfsdZQcxyCU+7Je ogPlIxH432KrpqPuH6sPTDH95fbnesbYcogfI4uy3Ca9Fy5cbdC/UCJc0UL8TRNYdIGu EukVHAfcaob+Y+efk4sZfJoLwmRo+Aan6rDGFGENDlVtcJK7ByqF5+YCrGfwyQgjKNgq aR/Vj/htjE29vrKfCx4+ljVTQpefAcK1fE42Zgi59DuMAyqE29L8vTKzNfQM0u6crFMe /ZdA== 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=JUeRkZa7Bxtl2Y3IeQzn20cHkZ5piE5GUyo9OCuXJLqs+AEAztl3BLGX15ug99rB1b F2MTBNjbVDdejFQJ6FH+YOUe85nvMr2vtoSoUtc5ZTQbaCEMwpE1mwu7XguKidwjsg8f kx4VCDDRlRn9d7/NSSDz/w+TczT80y2fQvP59ZNonNzfESMb/1xUPPq96noo8Jr5hIbq xWAqkHqQMC7s+tdkrKXaa45KDdJjnbCtmnQ+g/SCaA7bxmQUCjL9RVdG+XpZuDooLQZ2 /aAc3UnrNecqMHVHbrf2+gSaPfMCv/m6DzVrt6wAQW/q2yrKZwOHo6KDSyC1z5eb3Scb q1YA== 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 bl4si22092973ejb.283.2021.08.31.11.08.48; Tue, 31 Aug 2021 11:08:49 -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 9B17B68A50C; Tue, 31 Aug 2021 21:07:55 +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 BE47D68A1F0 for ; Tue, 31 Aug 2021 21:07:44 +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 17VI7iES030759 for ; Tue, 31 Aug 2021 20:07:44 +0200 Received: by phare.normalesup.org (Postfix, from userid 1001) id F269CEB5BC; Tue, 31 Aug 2021 20:07:43 +0200 (CEST) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Tue, 31 Aug 2021 20:07:32 +0200 Message-Id: <20210831180739.873390-5-george@nsup.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210831180739.873390-1-george@nsup.org> References: <20210831180739.873390-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 20:07:44 +0200 (CEST) Subject: [FFmpeg-devel] [PATCH 05/12] 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: XOHu/FUPNhcE 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};