diff options
author | Nicolas George <george@nsup.org> | 2021-07-28 12:45:34 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2021-08-22 11:44:17 +0200 |
commit | 252128561e891da8a4a3c4ea3ffa7071c443e343 (patch) | |
tree | efc6fee4e7ed695b83ea04921bc485d0e64856e3 /tools | |
parent | 6d82d894ee237e3c9f6ecf5e121e31cdfa375bf9 (diff) | |
download | ffmpeg-252128561e891da8a4a3c4ea3ffa7071c443e343.tar.gz |
tools/dvd2concat: use option keyword
subfile,,start,X,end,Y,,: is ugly and will be gone some day.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/dvd2concat | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dvd2concat b/tools/dvd2concat index 0280838a6b..ef04a87d05 100755 --- a/tools/dvd2concat +++ b/tools/dvd2concat @@ -117,10 +117,12 @@ for my $cell (@{$track->{cell}}) { my $file = @files == 1 ? $files[0] : "concat:" . join("|", @files); my $start = $off << 11; my $end = ($off + $size) << 11; - $file = "subfile,,start,${start},end,${end},,:$file"; my $dur = int(1000 * $cell->{length}); - $concat .= sprintf "\nfile '%s'\nduration %02d:%02d:%02d.%03d\n", $file, + $concat .= "\nfile 'subfile:$file'\n"; + $concat .= "option start $start\n"; + $concat .= "option end $end\n"; + $concat .= sprintf "duration %02d:%02d:%02d.%03d\n", int($dur / 3600000), int($dur / 60000) % 60, int($dur / 1000) % 60, $dur % 1000; } |