Add duration as H:M:S:F.
authorCarl Hetherington <cth@carlh.net>
Wed, 12 Dec 2018 21:26:42 +0000 (21:26 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 12 Dec 2018 21:26:42 +0000 (21:26 +0000)
tools/dcpinfo.cc

index 92f12a3c1da224ca49a36e8296d727318d7687dc..d0edbd3b3cdd5cfc09cf0f0b029d4968ab4a1ce6 100644 (file)
@@ -98,6 +98,7 @@ main_picture (shared_ptr<Reel> reel, bool analyse, bool decompress)
        cout << "      Picture ID:  " << reel->main_picture()->id()
             << " entry " << reel->main_picture()->entry_point()
             << " duration " << reel->main_picture()->duration()
+            << " (" << dcp::Time(reel->main_picture()->duration(), reel->main_picture()->frame_rate().as_float(), reel->main_picture()->frame_rate().as_float()).as_string(dcp::SMPTE) << ")"
             << " intrinsic " << reel->main_picture()->intrinsic_duration();
 
        if (reel->main_picture()->asset_ref().resolved()) {