summaryrefslogtreecommitdiffstats
path: root/convert2mp4
diff options
context:
space:
mode:
Diffstat (limited to 'convert2mp4')
-rwxr-xr-xconvert2mp410
1 files changed, 7 insertions, 3 deletions
diff --git a/convert2mp4 b/convert2mp4
index fb285c9..1e8e975 100755
--- a/convert2mp4
+++ b/convert2mp4
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#----------------------------------------------------
# Author: Florian "Bluewind" Pritz <flo@xssn.at>
#
@@ -68,18 +68,22 @@ def main():
continue
p1 = subprocess.Popen(["echo", "-n", name], stdout=subprocess.PIPE)
p2 = subprocess.Popen(["sed", "s/\(.*\)\..*/\\1/"], stdin=p1.stdout, stdout=subprocess.PIPE)
- name_mp4 = p2.communicate()[0] + ".mp4"
+ name_mp4 = "tmp_" + p2.communicate()[0] + ".mp4"
for encpass in ["1", "2"]:
if encpass == "1":
filename = "/dev/null"
+ ffmpeg_args.append('-vpre')
+ ffmpeg_args.append('medium_firstpass')
else:
filename = name_mp4
+ ffmpeg_args.append('-vpre')
+ ffmpeg_args.append('medium')
subprocess.Popen(merge(
[["ffmpeg", "-i", name,
"-vcodec", "libx264",
# "-r", "25",
# "-g", "250", "-keyint_min", "25",
- "-vpre", "hq",
+# "-vpre", "hq",
# "-coder", "ac", "-me_range", "16",
# "-subq", "5", "-sc_threshold", "40",
"-acodec", "libfaac",