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:
parent
7ed27e3ef7
commit
df8097e31e
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user