Skip to content

Commit

Permalink
Fix subtraction
Browse files Browse the repository at this point in the history
This needs to subtract the length of the recoded video, not the length
of a random calculation that has nothing to do with reality :-/
  • Loading branch information
yoe committed Feb 1, 2025
1 parent 072f1a5 commit 9e080ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sreview-cut
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ foreach my $row(@{$talk->avs_video_fragments}) {
Media::Convert::Pipe->new(inputs => [$recode_fragment], "map" => [Media::Convert::Map->new(input => $recode_fragment, type => "allcopy")], output => $add_fragment, vcopy => 1, acopy => 1)->run();
push @$segments, Media::Convert::Asset->new(url => $add_fragment->url, %duration_args);
$output->fragment_start($cur_kf);
$target_length -= $cur_kf - $target_length;
$target_length -= $temp->duration;
} else {
$output->fragment_start($row->{fragment_start});
}
Expand Down

0 comments on commit 9e080ee

Please sign in to comment.