From 835dd8938830b615d5b3e66272eb56d60bf7c45f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Sep 2022 10:17:50 +0200 Subject: Change how video timing is done. This commit changes the approach with video timing. Previously, we would (more-or-less) try to use every video frame from the content in the output, hoping that they come at a constant frame rate. This is not always the case, however. Here we preserve the PTS of video frames, and then when one arrives we output whatever DCP video frames we can (at the regular DCP frame rate). Hopefully this will solve a range of sync problems, but it could also introduce new ones. --- src/lib/video_content.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/video_content.h') diff --git a/src/lib/video_content.h b/src/lib/video_content.h index 7214d35e4..5a3aabe82 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -205,7 +205,7 @@ public: dcp::Size size_after_crop () const; dcp::Size scaled_size (dcp::Size container_size); - boost::optional fade (std::shared_ptr film, Frame) const; + boost::optional fade(std::shared_ptr film, dcpomatic::ContentTime time) const; std::string processing_description (std::shared_ptr film); -- cgit v1.2.3