Skip to content

Commit

Permalink
Fix writing x264 dual pass log file on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 8, 2015
1 parent d3b1386 commit e9bf4cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/docks/encodedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ MeltJob* EncodeDock::createMeltJob(const QString& target, int realtime, int pass
consumerNode.setAttribute("mlt_service", "avformat");
consumerNode.setAttribute("target", mytarget);
collectProperties(consumerNode, realtime);
if (pass == 1 || pass == 2)
if (pass == 1 || pass == 2) {
consumerNode.setAttribute("pass", pass);
consumerNode.setAttribute("passlogfile", mytarget + "_2pass.log");
}
if (pass == 1) {
consumerNode.setAttribute("fastfirstpass", 1);
consumerNode.removeAttribute("acodec");
Expand Down

0 comments on commit e9bf4cf

Please sign in to comment.