summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-19 23:44:50 +0100
committerRobin Gareus <robin@gareus.org>2018-11-20 00:21:01 +0100
commit27e0e78e1df90c2c1fa41a342a11d1c941fca1bf (patch)
tree8a51367d3b91b86e774c1e2a0e0c2226f6ca1264 /libs/ardour/export_profile_manager.cc
parent5fa05b403ca21a6573d07b921dc14f0769dc9fc7 (diff)
Implement FFMPEG/MP3 export-format spec and profile
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r--libs/ardour/export_profile_manager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc
index 28cccde3cd..14c57436ab 100644
--- a/libs/ardour/export_profile_manager.cc
+++ b/libs/ardour/export_profile_manager.cc
@@ -763,6 +763,13 @@ ExportProfileManager::load_format_from_disk (std::string const & path)
ExportFormatSpecPtr format = handler->add_format (*root);
+ if (format->format_id() == ExportFormatBase::F_FFMPEG) {
+ std::string unused;
+ if (!ArdourVideoToolPaths::transcoder_exe (unused, unused)) {
+ error << string_compose (_("Ignored format '%1': encoder is not avilable"), path) << endmsg;
+ return;
+ }
+ }
/* Handle id to filename mapping and don't add duplicates to list */
FilePair pair (format->id(), path);