Close

First WebCam Streaming Test

A project log for Phoebe

Amphibious multi-purpose wireless-control vehicle. IamPhoebe

Juan SandubeteJuan Sandubete 06/11/2017 at 17:350 Comments

The streaming has been done, for now, with the program ffmpeg, installed in the Raspberry and computer both parts. The installation way can be seen in the phoebe github, in the ffmpeg folder. One of the texts are the instruction. I will write another instructions more detailed later.

Once installed, you only have to configure the program to take the video data from your webcam and pass it in rtp protocol (that uses UDP protocol) to the destiny IP address, followed by ":" and the port to which you want to transmit.

This is the command I used:

ffmpeg -f v4l2 -framerate 60 -video_size 640x480 -i /dev/video0 -tune zerolatency -f rtp rtp://192.168.1.191:1234

The framerate have been put to the maximum since, with udp protocol, a lot of data is lost in the way, so you have to send as much as you can for receiving a decent quality image in the computer.

The IP address taken was the IP which the computer had with the AdHoc connection, that will be explained in the instructions later.

These are the results:

The latency is about half second. The quality is so low, so we have to improve it. More ways will be tested with the same or different programs (We accept suggestions !).

Discussions