Message ID | 20210831180739.873390-10-george@nsup.org |
---|---|
State | Accepted |
Commit | 5b052c4bcbf711b418ca6991799764dfe7ae6163 |
Headers | show |
Series | [FFmpeg-devel,01/12] lavf/concat: refactor parsing | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
diff --git a/tools/dvd2concat b/tools/dvd2concat index ea8b7ba8c9..ccc021c4cc 100755 --- a/tools/dvd2concat +++ b/tools/dvd2concat @@ -95,6 +95,12 @@ for my $subp (@{$track->{subp}}) { $concat .= "stream_codec dvd_subtitle\n"; $concat .= "stream_meta language " . $subp->{langcode} . "\n" if $subp->{langcode}; } +my $chap_time = 0; +for my $chap (@{$track->{chapter}}) { + $concat .= sprintf "\nchapter %d %.3f %.3f\n", + $chap->{ix}, $chap_time, $chap_time + $chap->{length}; + $chap_time += $chap->{length}; +} for my $cell (@{$track->{cell}}) { my $off = $cell->{first_sector}; die "Your lsdvd version does not print cell sectors.\n$lsdvd_message"
Signed-off-by: Nicolas George <george@nsup.org> --- tools/dvd2concat | 6 ++++++ 1 file changed, 6 insertions(+)