summaryrefslogtreecommitdiffstats
path: root/convert2mp4
diff options
context:
space:
mode:
Diffstat (limited 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)