Add film duration to --dump output (#1702).
authorCarl Hetherington <cth@carlh.net>
Sat, 17 Feb 2024 23:32:37 +0000 (00:32 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 17 Feb 2024 23:32:37 +0000 (00:32 +0100)
src/tools/dcpomatic_cli.cc

index 308b1150624a451721139adcf9e5692e48325d0b..c07f39add91f6503be0df9ce6c39e46fac86678f 100644 (file)
@@ -91,6 +91,7 @@ print_dump (shared_ptr<Film> film)
        cout << film->dcp_name (true) << "\n"
             << film->container()->container_nickname() << " at " << ((film->resolution() == Resolution::TWO_K) ? "2K" : "4K") << "\n"
             << (film->j2k_bandwidth() / 1000000) << "Mbit/s" << "\n"
+            << "Duration " << (film->length().timecode(film->video_frame_rate())) << "\n"
             << "Output " << film->video_frame_rate() << "fps " << (film->three_d() ? "3D" : "2D") << " " << (film->audio_frame_rate() / 1000) << "kHz\n"
             << (film->interop() ? "Inter-Op" : "SMPTE") << " " << (film->encrypted() ? "encrypted" : "unencrypted") << "\n";