# Integration of MJPG Format Camera

**URL:** <https://discuss.bluerobotics.com/t/integration-of-mjpg-format-camera/3932>\
**Category:** Blue Robotics Software\
**Created:** [December 17, 2018, 8:12pm UTC](https://discuss.bluerobotics.com/t/integration-of-mjpg-format-camera/3932 "2018-12-17T20:12:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [December 17, 2018, 8:23pm UTC](https://discuss.bluerobotics.com/t/integration-of-mjpg-format-camera/3932/2 "2018-12-17T20:23:10Z")

</div>

Hi Jake,

Yes it’s possible, the only problem is the encode that’ll be necessary to convert MJPG to H264.  
This is an example of how to create a gstreamer pipeline from MJPG to H264.

```auto
gst-launch-1.0 -v v4l2src device=/dev/video0 ! image/jpeg,width=1280,height=720,type=video,framerate=30/1 ! jpegdec ! videoscale ! videoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=192.168.1.146 port=5600

```

Try to read more about gstreamer and figure out the best configuration for your camera.

> Note: the encode process will use 100% of the cpu and may result in a unstable system and low fps.

Also, take a look here:

> [@Companion C270 logitech camera](https://discuss.bluerobotics.com/t/companion-c270-logitech-camera/3617/6):
>
> Hi Ryan, Yes it is possible, but you’ll have 2s+ delays in the video and can be much more worst if the processor or the system start to hangs (high cpu temperature and power consumption). But… If you really really want to use it, you’ll need to study gstreamer pipelines and read some good documentation to build your own gstreamer pipeline, start with [x264enc](https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-ugly-plugins/html/gst-plugins-ugly-plugins-x264enc.html), but the final result will not work as the way you want.

---

_[View the full topic](https://discuss.bluerobotics.com/t/integration-of-mjpg-format-camera/3932)._
