From 75a56a34eda75758640948a8ff2ac023b5615b4a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 7 Jul 2009 10:22:44 +0200 Subject: add mapping options to convert2mp4 --- convert2mp4 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'convert2mp4') 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="") p.add_option("--ab", dest="abitrate", default="160000", help="change the audio bitrate", metavar="") + p.add_option("-m", "--map", action="append", dest="maps", default=None, + help="change the mappings", metavar="") 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) -- cgit v1.2.3-24-g4f1b