Skip to content

Rock1965/glive

 
 

Repository files navigation

glive - a Gstreamer-based Live Example
RTP/RTCP video server and client

(C) John Weber (rjohnweber@gmail.com)
Avnet Electronics Marketing

This example program shows how to use the Gstreamer library to 
create an RTP/RTCP video streamer on i.MX6 boards, though it 
could easily be used on other platforms by changing some of the
elements used for capture, encode, decode, and playback.

They makes use of a TCP socket to control the link.

The program is licensed with the GNU Public License, version 2.

Hardware Dependencies:
Server:
  Freescale i.MX6-based board
  Image sensor connected to and working on CSI
Client:
  x86 host
  - or -
  i.MX6-based board with LCD or HDMI monitor connected
  - or, in the case the server is configured for RTSP mode -
  Any RTSP client program (e.g. VLC)

Software Dependencies:
  Gstreamer-0.10
  gst-fsl-plugins (mfw_v4lsrc, vpuenc)
  For x86 clients, it uses the ffdec_h264, ffmpegcolorspace, and
  autovideosink elements
  For i.MX6 clients, it uses vpudec and mfw_v4lsink
  gst-rtsp-server

To build:

1) Make sure that a cross toolchain is configured in your path.

> export CROSS_COMPILE = <cross compiler prefix will end with a dash '-'>
> make

Copy the binaries to the target filesystem using your preferred method.
(e.g. ftp, scp, copying to SDcard)
  
Start server, in normal RTP/RTCP mode (on target):
> glive-server

Start client (on target or host):
> glive-client -s <IP address of server>

The client should connect to the server automatically.

Start server in RTSP mode:
> glive-server -r

then, open an RTSP client program and direct it to the correct URI:
http://<IP address>:8554/camera

About

Gstreamer Live Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.6%
  • Makefile 1.4%