tools/dvd2concat: specify stream_codec for subtitles

Avoid requiring a huge probe size and analyze duration.
This commit is contained in:
Nicolas George 2021-08-31 14:31:16 +02:00
parent 0a267bc5e2
commit 1a0aff8ca5
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ for my $audio (@{$track->{audio}}) {
}
for my $subp (@{$track->{subp}}) {
$concat .= "\nstream\nexact_stream_id " . $subp->{streamid} . "\n";
$concat .= "stream_codec dvd_subtitle\n";
$concat .= "stream_meta language " . $subp->{langcode} . "\n" if $subp->{langcode};
}
for my $cell (@{$track->{cell}}) {