summaryrefslogtreecommitdiff
path: root/libs/ardour/export_format_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-19 05:21:17 +0100
committerRobin Gareus <robin@gareus.org>2018-11-19 05:21:17 +0100
commitdf72e1ba4f7e7dc0d67ea6c0fbdf157ee3777275 (patch)
tree035abd922b71e595eca6e466bc65a68578603b9b /libs/ardour/export_format_manager.cc
parente4cbd5115e34ff99aa8c85b70870e6ca00ea14d6 (diff)
Initial backend support for external export encoder
This adds an experimental pipe to ffmpeg to encode mp3. Currently quality is hardcoded and various aspects remain to be implemented. However, it is sufficient for initial testing.
Diffstat (limited to 'libs/ardour/export_format_manager.cc')
-rw-r--r--libs/ardour/export_format_manager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/export_format_manager.cc b/libs/ardour/export_format_manager.cc
index 2b5fc1868b..3581fb890e 100644
--- a/libs/ardour/export_format_manager.cc
+++ b/libs/ardour/export_format_manager.cc
@@ -19,6 +19,7 @@
*/
#include "ardour/export_format_manager.h"
+#include "ardour/filesystem_paths.h"
#include "ardour/export_format_specification.h"
#include "ardour/export_format_compatibility.h"
@@ -210,6 +211,12 @@ ExportFormatManager::init_formats ()
f_ptr.reset (new ExportFormatFLAC ());
add_format (f_ptr);
} catch (ExportFormatIncompatible & e) {}
+
+ std::string unused;
+ if (ArdourVideoToolPaths::transcoder_exe (unused, unused)) {
+ f_ptr.reset (new ExportFormatFFMPEG ("MP3", "mp3"));
+ add_format (f_ptr);
+ }
}
void