# Interfacing Cameras with Companion Computer

**URL:** <https://discuss.bluerobotics.com/t/interfacing-cameras-with-companion-computer/10781>\
**Category:** Companion (Retired)\
**Tags:** guide\
**Created:** [October 12, 2021, 2:40am UTC](https://discuss.bluerobotics.com/t/interfacing-cameras-with-companion-computer/10781 "2021-10-12T02:40:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![yvesyves](https://avatars.discourse-cdn.com/v4/letter/y/dc4da7/32.png) [@yvesyves](https://discuss.bluerobotics.com/u/yvesyves)\
**Post date:** [October 24, 2021, 7:07am UTC](https://discuss.bluerobotics.com/t/interfacing-cameras-with-companion-computer/10781/6 "2021-10-24T07:07:21Z")

</div>

Hi there, Eliot! So far, we have had a new camera to try. Unfortunately, the issue is still the same with the Camera tab not being to detect the camera, although the System tab shows the video device and video as an active service. I’m suspecting that the camera we have bought still doesn’t have H.264. However, we have seen from the forums that the feed may be converted from one format to H.264 as shown [here](https://discuss.bluerobotics.com/t/about-usb-camera/499). We have tried the code and while we are not sure if it works, it definitely is better than our previous attempts which only shows the pipeline either getting errors or closing. The code that we used is:

`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 config-interval=10 pt=96 ! udpsink host=192.168.1.146 port=5600`

and produced an output like this (although this shows only the start and the end since it is too long):

```auto
Setting pipeline to PAUSED ...                                                  
Pipeline is live and does not need PREROLL ...                                  
Setting pipeline to PLAYING ...                                                 
New clock: GstSystemClock                                                       
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "image/jpeg\,\ wid
th\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ 
colorimetry\=\(string\)2:4:7:1\,\ framerate\=\(fraction\)30/1\,\ type\=\(string\
)video"                                                                        
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "image/jpeg\
,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1
/1\,\ colorimetry\=\(string\)2:4:7:1\,\ framerate\=\(fraction\)30/1\,\ type\=\(s
tring\)video"                                                                   
.
.
.                                                                  
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = "video/x
-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ in
terlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ ch
roma-site\=\(string\)mpeg2\,\ colorimetry\=\(string\)1:4:0:0\,\ framerate\=\(fra
ction\)30/1"                                                                    
Redistribute latency...       
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 1874450511        
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 7397

```

> [@EliotBR](#):
>
> When the companion computer is streaming it does so over UDP to the topside computer (IP 192.168.2.1) at port 5600, as shown in the Camera page in your second screenshot. QGroundControl is set to look for a stream at that port by default, but if you want you can instead go to [http://192.168.2.1:2770/vlc.sdp](http://192.168.2.1:2770/vlc.sdp) to access an sdp file that can be run using VideoLAN (VLC), or you can view it through any other application that’s capable of receiving and displaying a H264 stream over UDP.

We also tried to do this through VLC and created an .sdp file which contains the following code:

```auto
v=0
m=video 5600 RTP/AVP 96
c=IN IP4 192.168.2.1
a=rtpmap:96 H264/90000

```

However, VLC only runs, loads, and just does nothing. We are currently trying to watch the stream from the camera in the companion computer to the topside. Do you know what could be the problem with what we did? Thanks!

---

_[View the full topic](https://discuss.bluerobotics.com/t/interfacing-cameras-with-companion-computer/10781)._
