ArduCAM / MIPI_Camera

223 stars 107 forks source link

MJPEG video #8

Open anbello opened 4 years ago

anbello commented 4 years ago

In this example an H264 video is captured and streamed. I would like to do the same but with MJPEG video through gstreamer. Is it possible?

Moreover I would like to know if it is possible to set the framerate.

glddiv commented 4 years ago

Hi @anbello

I would like to do the same but with MJPEG video through gstreamer. Is it possible?

It is possible to use the MJPG stream. You can simply change the state->encoding = VIDEO_ENCODING_H264;in video.c to state->encoding = FOURCC('M', 'J', 'P', 'G');, but The performance of the MJPG stream is not guaranteed and this has not been tested.

Moreover I would like to know if it is possible to set the framerate.

Frame rate settings are not currently supported.