From d2a44efbe707b7210107fabce58fb99c1a3b251e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 10 Jul 2011 21:46:09 +0200 Subject: mass commit Signed-off-by: Florian Pritz --- convert2mp4 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'convert2mp4') 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 # @@ -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", -- cgit v1.2.3-24-g4f1b