From df8097e31eaba924a75c8293575868c73fe7eec7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 Mar 2019 21:39:51 +0100 Subject: [PATCH] Fix mp3 export For reasons yet to be investigated, closing stderr when using a pipe into ffmpeg results in ffmpeg's stderr being written verbatim in the output file. --- libs/ardour/export_graph_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc index 5afb5c1e7d..d9e2a60cfb 100644 --- a/libs/ardour/export_graph_builder.cc +++ b/libs/ardour/export_graph_builder.cc @@ -383,7 +383,7 @@ ExportGraphBuilder::Encoder::init_writer (boost::shared_ptrto_s () << "}" << endmsg; - if (exec->start ()) { + if (exec->start (SystemExec::MergeWithStdin)) { throw ExportFailed ("External encoder (ffmpeg) cannot be started."); } writer.reset (new AudioGrapher::CmdPipeWriter (exec, writer_filename));