aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/args.c b/args.c
index 25bbf73..0dd0b58 100644
--- a/args.c
+++ b/args.c
@@ -36,7 +36,6 @@ void print_usage(char *name)
printf("\t-c <codec> - The codec to be used for encoding\n");
printf("\t\t Available codecs: mpeg4, h264\n");
printf("\t-d use dmabuf instead of mmap\n");
- printf("\t-i <file> - Input file name in NV12\n");
printf("\t-m <device> - video encoder device (e.g. /dev/video33)\n");
printf("\t-w video width\n");
printf("\t-h video height\n");
@@ -74,17 +73,15 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "w:h:c:di:m:f:n:")) != -1) {
+ while ((c = getopt(argc, argv, "w:h:c:d:m:f:n:")) != -1) {
switch (c) {
case 'c':
i->codec = get_codec(optarg);
+ i->codec_name = optarg;
break;
case 'd':
i->use_dmabuf = 1;
break;
- case 'i':
- i->in.name = optarg;
- break;
case 'm':
i->video.name = optarg;
break;
@@ -107,8 +104,8 @@ int parse_args(struct instance *i, int argc, char **argv)
}
}
- if (!i->in.name || !i->video.name) {
- err("The following arguments are required: -i -m -c");
+ if (!i->video.name) {
+ err("The following arguments are required: -m -c");
return -1;
}