Try to prevent ffmpeg shared build for Linux as it fails to link statically to libsoxr.
[dcpomatic.git] / src / tools / dcpomatic_cli.cc
index 54e196fe0acb4d5e6a0b9ab343ef46c63ad91bb2..af148b2fab25e97037c2b7e0cfb7302bbcef92fd 100644 (file)
@@ -30,6 +30,7 @@
 #include "lib/server_finder.h"
 #include "lib/json_server.h"
 #include "lib/ratio.h"
+#include "lib/video_content.h"
 #include "lib/audio_content.h"
 #include <dcp/version.h>
 #include <boost/foreach.hpp>
@@ -100,7 +101,7 @@ print_dump (shared_ptr<Film> film)
                        } else {
                                cout << "\tno colour conversion\n";
                        }
-                                       
+
                }
 
                shared_ptr<AudioContent> audio = dynamic_pointer_cast<AudioContent> (c);
@@ -176,10 +177,11 @@ main (int argc, char* argv[])
        }
 
        film_dir = argv[optind];
-                       
+
+       dcpomatic_setup_path_encoding ();
        dcpomatic_setup ();
        signal_manager = new SignalManager ();
-       
+
        if (no_remote) {
                ServerFinder::instance()->disable ();
        }
@@ -201,7 +203,7 @@ main (int argc, char* argv[])
                print_dump (film);
                exit (EXIT_SUCCESS);
        }
-       
+
        ContentList content = film->content ();
        for (ContentList::const_iterator i = content.begin(); i != content.end(); ++i) {
                vector<boost::filesystem::path> paths = (*i)->paths ();
@@ -241,7 +243,7 @@ main (int argc, char* argv[])
                for (list<shared_ptr<Job> >::iterator i = jobs.begin(); i != jobs.end(); ++i) {
                        if (progress) {
                                cout << (*i)->name() << ": ";
-                               
+
                                if ((*i)->progress ()) {
                                        cout << (*i)->status() << "                         \n";
                                } else {
@@ -283,8 +285,6 @@ main (int argc, char* argv[])
        JobManager::drop ();
 
        ServerFinder::drop ();
-       
+
        return error ? EXIT_FAILURE : EXIT_SUCCESS;
 }
-
-