X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Ftools%2Fdcpomatic_cli.cc;h=5535e6218868cd7a27fe57f929908192aad2b7cb;hb=ad1ef39eda58b3a919ea3b7084401a0439409ec6;hp=7fc5ed55dd9603d702eb4496adf6b37649b73629;hpb=04badd0c82d3ce82ee87c07e120e585899d4acff;p=dcpomatic.git diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index 7fc5ed55d..5535e6218 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -33,6 +33,7 @@ #include "lib/ratio.h" #include "lib/video_content.h" #include "lib/audio_content.h" +#include "lib/dcpomatic_log.h" #include #include #include @@ -84,13 +85,13 @@ print_dump (shared_ptr film) cout << "\n" << c->path(0) << "\n" << "\tat " << c->position().seconds () - << " length " << c->full_length().seconds () + << " length " << c->full_length(film).seconds () << " start trim " << c->trim_start().seconds () << " end trim " << c->trim_end().seconds () << "\n"; if (c->video) { cout << "\t" << c->video->size().width << "x" << c->video->size().height << "\n" - << "\t" << c->active_video_frame_rate() << "fps\n" + << "\t" << c->active_video_frame_rate(film) << "fps\n" << "\tcrop left " << c->video->left_crop() << " right " << c->video->right_crop() << " top " << c->video->top_crop() @@ -331,6 +332,8 @@ main (int argc, char* argv[]) exit (EXIT_SUCCESS); } + dcpomatic_log = film->log (); + ContentList content = film->content (); for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) { vector paths = (*i)->paths ();