switch (p) {
case Film::CONTENT:
- set_video_frame_rate (_playlist->best_dcp_frame_rate ());
+ set_video_frame_rate (_playlist->best_video_frame_rate ());
break;
case Film::VIDEO_FRAME_RATE:
case Film::SEQUENCE:
int
Film::best_video_frame_rate () const
{
- return _playlist->best_dcp_frame_rate ();
+ return _playlist->best_video_frame_rate ();
}
FrameRateChange
_dirty = true;
if (p == ContentProperty::VIDEO_FRAME_RATE) {
- set_video_frame_rate (_playlist->best_dcp_frame_rate ());
+ set_video_frame_rate (_playlist->best_video_frame_rate ());
} else if (p == AudioContentProperty::STREAMS) {
signal_changed (NAME);
}
};
int
-Playlist::best_dcp_frame_rate () const
+Playlist::best_video_frame_rate () const
{
list<int> const allowed_dcp_frame_rates = Config::instance()->allowed_dcp_frame_rates ();
boost::optional<DCPTime> start () const;
int64_t required_disk_space (int j2k_bandwidth, int audio_channels, int audio_frame_rate) const;
- int best_dcp_frame_rate () const;
+ int best_video_frame_rate () const;
DCPTime video_end () const;
DCPTime subtitle_end () const;
FrameRateChange active_frame_rate_change (DCPTime, int dcp_frame_rate) const;
}
Frame audio_length () const {
- return llrint (61.2942 * audio->stream()->frame_rate ());
+ return llrint (61.2942 * 48000);
}
};
-Subproject commit caafd158432719c233e4a6c255f32b78c1c545a2
+Subproject commit f70fddede90fdb87ff8ee2339f208d2658c665aa
shared_ptr<Film> film = new_test_film ("best_dcp_frame_rate_test_single");
/* Get any piece of content, it doesn't matter what */
shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/test.mp4"));
- film->add_content (content);
+ film->examine_and_add_content (content);
wait_for_jobs ();
/* Run some tests with a limited range of allowed rates */
shared_ptr<Film> film = new_test_film ("best_dcp_frame_rate_test_double");
/* Get any old content, it doesn't matter what */
shared_ptr<FFmpegContent> A (new FFmpegContent (film, "test/data/test.mp4"));
- film->add_content (A);
+ film->examine_and_add_content (A);
shared_ptr<FFmpegContent> B (new FFmpegContent (film, "test/data/test.mp4"));
- film->add_content (B);
+ film->examine_and_add_content (B);
wait_for_jobs ();
/* Run some tests with a limited range of allowed rates */
Config::instance()->set_allowed_dcp_frame_rates (afr);
shared_ptr<FFmpegAudioStream> stream (new FFmpegAudioStream ("foo", 0, 0, 0, 0));
+ content->audio.reset (new AudioContent (content.get()));
content->audio->add_stream (stream);
content->_video_frame_rate = 24;
film->set_video_frame_rate (24);