diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-07-10 21:46:09 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-07-10 21:48:01 +0200 |
commit | d2a44efbe707b7210107fabce58fb99c1a3b251e (patch) | |
tree | c5527ba09d85d044326a06393ad8d0f88d8ac167 /convert2mp4 | |
parent | 5a311acfe51d396dd65fe72ec478ceebea64f6c1 (diff) | |
download | bin-d2a44efbe707b7210107fabce58fb99c1a3b251e.tar.gz bin-d2a44efbe707b7210107fabce58fb99c1a3b251e.tar.xz |
mass commit
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'convert2mp4')
-rwxr-xr-x | convert2mp4 | 10 |
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", |