13
0

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.
This commit is contained in:
Robin Gareus 2019-03-07 21:39:51 +01:00
parent 7ed27e3ef7
commit df8097e31e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -383,7 +383,7 @@ ExportGraphBuilder::Encoder::init_writer (boost::shared_ptr<AudioGrapher::CmdPip
* SystemExec is deleted when writer is destroyed */
ARDOUR::SystemExec* exec = new ARDOUR::SystemExec (ffmpeg_exe, argp);
PBD::info << "Encode command: { " << exec->to_s () << "}" << endmsg;
if (exec->start ()) {
if (exec->start (SystemExec::MergeWithStdin)) {
throw ExportFailed ("External encoder (ffmpeg) cannot be started.");
}
writer.reset (new AudioGrapher::CmdPipeWriter<T> (exec, writer_filename));