summaryrefslogtreecommitdiffstats
path: root/convert2mp4
diff options
context:
space:
mode:
Diffstat (limited to 'convert2mp4')
-rwxr-xr-xconvert2mp46
1 files changed, 6 insertions, 0 deletions
diff --git a/convert2mp4 b/convert2mp4
index 5714baf..747d942 100755
--- a/convert2mp4
+++ b/convert2mp4
@@ -28,6 +28,8 @@ def main():
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("-e", "--extra", action="append", dest="extras", default=None,
+ help="pass extra options to ffmpeg", nargs=2, metavar="<ffmpeg switch> <argument>")
p.add_option("--nd", action="store_false", dest="deinterlace", default=True,
help="don't deinterlace the video")
@@ -55,6 +57,10 @@ def main():
for cur_map in options.maps:
ffmpeg_args.append("-map")
ffmpeg_args.append(cur_map)
+ if options.extras:
+ for switch, arg in options.extras:
+ ffmpeg_args.append(switch)
+ ffmpeg_args.append(arg)
for name in args: