Go to advanced search

by Crymes
Tue Jul 19, 2016 10:44 am
Forum: Camera board
Topic: How to set the bitrate in v4l2 ?
Replies: 1
Views: 1952

How to set the bitrate in v4l2 ?

Hi, I want to record a video with v4l2 and have to change the bitrate for a smaller size. This command in the terminal works : v4l2-ctl --set-ctrl video_bitrate=10000000 But I need the command in the c v4l2 api. I already took a look at the source code of v4l2-ctl but it seems to me as if the progra...
by Crymes
Sat Apr 16, 2016 3:30 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 557
Views: 462225

Re: Official V4L2 driver

Does anyone know how I can control the h.264 Codec data in V4L2? I have got the following source of my sample program: #include <iostream> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mman.h> //mmap #include <fcntl.h> #include <unistd.h> #incl...
by Crymes
Sat Apr 09, 2016 11:30 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 557
Views: 462225

Re: Official V4L2 driver

Thank you for your reply. The program runs fine if I set up the mmap mode with only one buffer. However, the v4l2-requestbuffers structure contains the value 3 for 'count' after the ioctl 'VIDIOC_REQBUFS' function. What happens with the other two buffers which I do not enqueue ? Is it safe to run v4...
by Crymes
Fri Apr 08, 2016 7:49 pm
Forum: Camera board
Topic: Official V4L2 driver
Replies: 557
Views: 462225

Re: Official V4L2 driver

I have studied the V4L2 specification and have got a few questions left: - Is it right that the fps of my video capture are only controlled by queuing the buffers via ioctl to the kernel ? - For example I want to capture 10 fps. In this case more than 1 buffer wouldn't give me any advantage because ...
by Crymes
Thu Apr 07, 2016 10:17 am
Forum: Camera board
Topic: Official V4L2 driver
Replies: 557
Views: 462225

Re: Official V4L2 driver

Hi, I want to stream video from the RasPI Camera to an other computer. The project is written in C/C++.
Can anyone suggest a book or a tutorial how to use V4L2 to capture h.264 frames/video ?
All tutorials I found only describe how to capture images.

Go to advanced search