[FFmpeg-devel] [PATCH 05/12] tools/dvd2concat: include language metadata

Nicolas George george at nsup.org
Tue Aug 31 21:07:32 EEST 2021


Signed-off-by: Nicolas George <george at nsup.org>
---
 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};
-- 
2.33.0



More information about the ffmpeg-devel mailing list