summaryrefslogtreecommitdiffstats
path: root/convert2mp4
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-07-07 16:56:20 +0200
committerFlorian Pritz <f-p@gmx.at>2009-07-07 16:56:20 +0200
commita93d1a1c5d2bff75fd83965e7ebd3e75acf54437 (patch)
treeb200d05ad0b3c4a6d6684dc3fd4a44dda5e3e528 /convert2mp4
parent7f5fb3f68d96dc944b94f2182161285385ebdf17 (diff)
downloadbin-a93d1a1c5d2bff75fd83965e7ebd3e75acf54437.tar.gz
bin-a93d1a1c5d2bff75fd83965e7ebd3e75acf54437.tar.xz
add support to pass extra args to ffmpeg
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: