summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-07-07 10:22:44 +0200
committerFlorian Pritz <f-p@gmx.at>2009-07-07 10:22:44 +0200
commit75a56a34eda75758640948a8ff2ac023b5615b4a (patch)
treee9bb040a8c9ca03e06c98a0e9762c3269a230d0b
parentc5ea973f2a31f6caa68c83a84d2215173d555d05 (diff)
downloadbin-75a56a34eda75758640948a8ff2ac023b5615b4a.tar.gz
bin-75a56a34eda75758640948a8ff2ac023b5615b4a.tar.xz
add mapping options to convert2mp4
-rwxr-xr-xconvert2mp47
1 files changed, 7 insertions, 0 deletions
diff --git a/convert2mp4 b/convert2mp4
index 23894b8..9df1494 100755
--- a/convert2mp4
+++ b/convert2mp4
@@ -26,6 +26,8 @@ def main():
help="change the video bitrate", metavar="<bitrate>")
p.add_option("--ab", dest="abitrate", default="160000",
help="change the audio bitrate", metavar="<bitrate>")
+ p.add_option("-m", "--map", action="append", dest="maps", default=None,
+ help="change the mappings", metavar="<input_stream_id:sync_stream_id>")
p.add_option("--nd", action="store_false", dest="deinterlace", default=True,
help="don't deinterlace the video")
@@ -49,6 +51,11 @@ def main():
ffmpeg_args.append(options.abitrate)
if options.deinterlace:
ffmpeg_args.append("-deinterlace")
+ if options.maps[0]:
+ for cur_map in options.maps:
+ ffmpeg_args.append("-map")
+ ffmpeg_args.append(cur_map)
+
for name in args:
p1 = subprocess.Popen(["echo", "-n", name], stdout=subprocess.PIPE)