Skip to content

Commit

Permalink
Merge pull request #125 from tumb1er/fix_concat_frames
Browse files Browse the repository at this point in the history
#123 compute frames from frame rate and duration in concat
  • Loading branch information
tumb1er committed Sep 10, 2021
2 parents cc070ca + a47f65e commit 2961741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fffw/encoding/filters.py
Expand Up @@ -393,8 +393,8 @@ def transform(self, *metadata: Meta) -> Meta:
# input, samples count corresponds duration.
kwargs['samples'] = round(meta.sampling_rate * duration)
if isinstance(meta, VideoMeta):
# Sum frames count from all input streams
kwargs['frames'] = frames
# Recompute frames from frame rate and duration.
kwargs['frames'] = round(meta.frame_rate * duration)
return replace(metadata[0], **kwargs)


Expand Down

0 comments on commit 2961741

Please sign in to comment.