summaryrefslogtreecommitdiffstats
path: root/v4l2-mfc-encoder/main.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2013-05-20 08:20:33 (GMT)
committerAndrzej Hajda <a.hajda@samsung.com>2013-05-22 14:14:13 (GMT)
commit00d0905bb34476729b8588679776515c77407694 (patch)
treeea52ec819755fad853336045237e70ad906e240b /v4l2-mfc-encoder/main.c
parentbccf89a62a2e45cd45f4bf5d4adff9ec8a16b3bd (diff)
Added codec parameters setting in command lineHEADmaster
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Diffstat (limited to 'v4l2-mfc-encoder/main.c')
-rw-r--r--v4l2-mfc-encoder/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/v4l2-mfc-encoder/main.c b/v4l2-mfc-encoder/main.c
index 5681bab..22bca26 100644
--- a/v4l2-mfc-encoder/main.c
+++ b/v4l2-mfc-encoder/main.c
@@ -76,10 +76,8 @@ int main(int argc, char *argv[])
if (mfc_set_rate(mfc, opts.rate))
return 1;
- if (mfc_set_bitrate(mfc, opts.bitrate))
- return 1;
-
- mfc_set_mpeg_control(mfc, V4L2_CID_MPEG_VIDEO_B_FRAMES, 2);
+ for (i = 0; i < opts.nctrls; ++i)
+ mfc_set_mpeg_control(mfc, opts.ctrls[i][0], opts.ctrls[i][1]);
if (opts.in_name)
if (v4l_copy_fmt(mfc, DIR_IN, input, DIR_OUT))

Privacy Policy