blob: f66ebab353e38d4126f152fdc4fc998fa844fcc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From: Paul Gevers <elbrus@debian.org>
Date: Sun, 2 Feb 2014 19:24:22 +0100
Subject: Fix 2-pass option by passing -f null to first pass
Bug: http://code.google.com/p/winff/issues/detail?id=26
Source: http://code.google.com/p/winff/source/detail?r=815
---
unit1.pas | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/unit1.pas b/unit1.pas
index b0b8752..979b51e 100755
--- a/unit1.pas
+++ b/unit1.pas
@@ -2983,7 +2983,9 @@ begin
end
else if cbx2Pass.Checked = true then
begin
- command := ffmpegfilename + usethreads + precommand + ' -i "' + filename + '" ' + commandline + ' -an'
+ // See issue 26 for the rational for -f null
+ command := ffmpegfilename + usethreads + precommand + ' -i "' + filename + '" ' +
+ replaceParam(commandline, '-f', '-f null') + ' -an'
+ ' -passlogfile "' + passlogfile + '"' + ' -pass 1 ' + ' -y ' + nullfile ;
scr[vIndex].FirstPass := command;
command := ffmpegfilename + usethreads + precommand + ' -y -i "' + filename + '" ' + commandline + ' -passlogfile "'
|