Skip to content

scs/leanXstream

Repository files navigation

leanXstream
Author:  Reto Bättig
License: Lesser GPL V3
Oscar-Version: v1.3-p1

Description
-----------

LeanXstream is a very simple application for streaming Video (uncompressed).
It allows the following basic tasks

o Watch a live video stream in Windows or Linux
o Save live images to a harddisk as .BMP
o Save video the a harddisk (uncompressed)
o Play video from the harddisk

How it works
------------

The leanXstream application takes images as fast as it can and writes them to a buffer.
Client can connect with a TCP connection to port 8111. As soon as a client is connected, the camera sends the raw image data over the TCP connection. Multiple clients can connect at the same time, it just slows down the frame rate.

To receive the stream on a client, nc (netcat) can be used. The following command receives the stream and writes it to a file (Video recording)

 nc 192.168.1.10 8111 > video.dat

If you want to play the video, simply play the raw data with mplayer:
 
 cat test.dat| mplayer - -demuxer rawvideo -rawvideo w=752:h=480:format=y8:fps=100 -vo x11

There is also a small application which takes the raw video stream from the standard input and writes it to .BMP files. This works like this:

 nc 192.168.1.10 8111 | ./writebmps

If you just want to play a live video stream, you connect to the camera with nc and pipe the data directly to mplayer:

 nc 192.168.1.10 8111 | mplayer - -demuxer rawvideo -rawvideo w=752:h=480:format=y8:fps=100 -vo x11


Installation and usage
----------------------
 make config
 make
 scp leanXstream_target [email protected]:.
 
Run leanXstream on camera:

 telnet 192.168.1.10
 cd /root
 #(kill all applications that are still running and using the camera, eg. with the following line:)
 killall *target
 ./leanXstream_target

In the linux virtualbox
 # Save images to .BMP files:
 nc 192.168.1.10 8111 | ./writebmps
 
 # Play live video stream
 nc 192.168.1.10 8111 | mplayer - -demuxer rawvideo -rawvideo w=752:h=480:format=y8:fps=100 -vo x11

 # Save video stream to file
 nc 192.168.1.10 8111 > video.dat
 
 # Replay the recorded video
 cat test.dat| mplayer - -demuxer rawvideo -rawvideo w=752:h=480:format=y8:fps=100 -vo x11

Using it with MS Windows
------------------------

There are nc and mplayer versions precompiled for windows. Just download them and use the same commands as above.

Enyoy!

About

Simple video streaming from leanXcam

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published