#include "lib/encode_server_finder.h"
#include "lib/image.h"
#include "lib/ratio.h"
+#include "lib/dcp_content_type.h"
#include "lib/log_entry.h"
#include <dcp/dcp.h>
#include <asdcp/AS_DCP.h>
Config::instance()->set_default_interop (false);
Config::instance()->set_default_still_length (10);
Config::instance()->set_log_types (LogEntry::TYPE_GENERAL | LogEntry::TYPE_WARNING | LogEntry::TYPE_ERROR);
+ Config::instance()->set_automatic_audio_analysis (false);
EncodeServerFinder::instance()->stop ();
return film;
}
+shared_ptr<Film>
+new_test_film2 (string name)
+{
+ boost::filesystem::path p = test_film_dir (name);
+ if (boost::filesystem::exists (p)) {
+ boost::filesystem::remove_all (p);
+ }
+
+ shared_ptr<Film> film = shared_ptr<Film> (new Film (p));
+ film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST"));
+ film->set_container (Ratio::from_id ("185"));
+ film->write_metadata ();
+ return film;
+}
+
void
check_wav_file (boost::filesystem::path ref, boost::filesystem::path check)
{
extern bool wait_for_jobs ();
extern boost::shared_ptr<Film> new_test_film (std::string);
+extern boost::shared_ptr<Film> new_test_film2 (std::string);
extern void check_dcp (boost::filesystem::path, boost::filesystem::path);
extern void check_file (boost::filesystem::path ref, boost::filesystem::path check);
extern void check_wav_file (boost::filesystem::path ref, boost::filesystem::path check);