aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/args.c b/args.c
index f6bb18c..e2248a6 100644
--- a/args.c
+++ b/args.c
@@ -35,7 +35,7 @@ void print_usage(char *name)
printf("Usage:\n");
printf("\t%s\n", name);
printf("\t-c <codec> - The codec to be used for encoding\n");
- printf("\t\t Available codecs: mpeg4, h264\n");
+ printf("\t\t Available codecs: mpeg4, h264, h263, xvid, mpeg2, mpeg1, vp8\n");
printf("\t-d use dmabuf instead of mmap\n");
printf("\t-m <device> - video encoder device (e.g. /dev/video33)\n");
printf("\t-w video width\n");
@@ -43,6 +43,8 @@ void print_usage(char *name)
printf("\t-f save encoded frames on disk\n");
printf("\t-g disable test pattern generator\n");
printf("\t-v verbose mode\n");
+ printf("\t-B bitrate\n");
+ printf("\t-F framerate\n");
printf("\n");
}
@@ -77,7 +79,7 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "w:h:c:d:m:f:n:gv")) != -1) {
+ while ((c = getopt(argc, argv, "w:h:c:d:m:f:n:gvB:F:")) != -1) {
switch (c) {
case 'c':
i->codec = get_codec(optarg);
@@ -108,6 +110,12 @@ int parse_args(struct instance *i, int argc, char **argv)
case 'v':
i->verbose = true;
break;
+ case 'B':
+ i->bitrate = atoi(optarg);
+ break;
+ case 'F':
+ i->framerate = atoi(optarg);
+ break;
default:
err("Bad argument");
return -1;