|
|
|
|
@ -40,7 +40,7 @@ func Run(encoding config.VideoOpts, pass int, pid int, input string, output stri |
|
|
|
|
"-preset", encoding.Speed, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if pass != 3 { |
|
|
|
|
if pass != encoding.Passes { |
|
|
|
|
mp4_encoding = append(mp4_encoding, "-an") |
|
|
|
|
} else { |
|
|
|
|
encode.AudioCodec("aac") |
|
|
|
|
@ -80,10 +80,12 @@ func DevNull() string { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func RenderFile(opts config.VideoOpts, pid int, path string, target string) { |
|
|
|
|
Run(opts, 1, pid, path, DevNull()) |
|
|
|
|
Run(opts, 2, pid, path, DevNull()) |
|
|
|
|
Run(opts, 3, pid, path, target) |
|
|
|
|
func RenderFile(encoding config.VideoOpts, pid int, path string, target string) { |
|
|
|
|
for i := 1; i < encoding.Passes; i++ { |
|
|
|
|
Run(encoding, i, pid, path, DevNull()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Run(encoding, encoding.Passes, pid, path, target) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func RenderToDir(encoding config.VideoOpts) { |
|
|
|
|
|