All Projects → petergaal → Jpegrtspcamera

petergaal / Jpegrtspcamera

Sample RTSP server streaming MJPEG video from PC camera

Programming Languages

cpp
1120 projects

Projects that are alternatives of or similar to Jpegrtspcamera

Vidgear
A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features 🔥
Stars: ✭ 2,048 (+8092%)
Mutual labels:  multithreading, opencv, video-streaming
Media Stream Library Js
JavaScript library to handle media streams on the command line (Node.js) and in the browser.
Stars: ✭ 192 (+668%)
Mutual labels:  jpeg, rtsp, video-streaming
mini
OpenSource Mini IP camera streamer
Stars: ✭ 64 (+156%)
Mutual labels:  rtsp, mjpeg
chat-app
Multithreading TCP server and client communicating over TCP/IP - Windows Forms Application.
Stars: ✭ 39 (+56%)
Mutual labels:  visual-studio, multithreading
uvc-streamer
MJPEG webcam network streamer for linux
Stars: ✭ 25 (+0%)
Mutual labels:  jpeg, mjpeg
Rtsp Client Ffmpeg Opencv On Qt
RTSP Client Program using FFmpeg and OpenCV on Qt
Stars: ✭ 31 (+24%)
Mutual labels:  opencv, rtsp
Cvdrone
CV Drone (= OpenCV + AR.Drone)
Stars: ✭ 178 (+612%)
Mutual labels:  visual-studio, opencv
react-native-vlc-media-player
React native media player for video streaming and playing. Supports RTSP, RTMP and other protocols supported by VLC player
Stars: ✭ 221 (+784%)
Mutual labels:  rtsp, video-streaming
Jmuxer
jMuxer - a simple javascript mp4 muxer that works in both browser and node environment.
Stars: ✭ 222 (+788%)
Mutual labels:  rtsp, video-streaming
Amazon Rekognition Video Analyzer
A working prototype for capturing frames off of a live MJPEG video stream, identifying objects in near real-time using deep learning, and triggering actions based on an objects watch list.
Stars: ✭ 309 (+1136%)
Mutual labels:  opencv, mjpeg
Ipcam View
MJPEG video streaming on Android
Stars: ✭ 292 (+1068%)
Mutual labels:  video-streaming, mjpeg
Rtsp Stream
Out of box solution for RTSP - HLS live stream transcoding. Makes RTSP easy to play in browsers.
Stars: ✭ 349 (+1296%)
Mutual labels:  rtsp, video-streaming
Pi Camera Connect
Library to capture and stream Raspberry Pi camera data directly to NodeJS
Stars: ✭ 81 (+224%)
Mutual labels:  jpeg, mjpeg
Ustreamer
µStreamer - Lightweight and fast MJPG-HTTP streamer
Stars: ✭ 533 (+2032%)
Mutual labels:  jpeg, mjpeg
Animated Jpeg
Proposed JPEG/JFIF APP0 marker application extension for playback control of concatenated JPEGs, as stand-alone animation stream or Motion-JPEG
Stars: ✭ 7 (-72%)
Mutual labels:  jpeg, mjpeg
py-mjpeg
Python MJPEG streaming utilities
Stars: ✭ 32 (+28%)
Mutual labels:  mjpeg, video-streaming
Live Stream Face Detection
Live Streaming and Face Detection with Flask in Browser
Stars: ✭ 47 (+88%)
Mutual labels:  rtsp, video-streaming
rtsp2html5
A small and simple PHP-script to convert RTSP-stream from IP-cameras to HTML5-video (with switch to MJPEG on failure)
Stars: ✭ 15 (-40%)
Mutual labels:  rtsp, video-streaming
Gocv
Go package for computer vision using OpenCV 4 and beyond.
Stars: ✭ 4,511 (+17944%)
Mutual labels:  opencv, mjpeg
Speed Camera
A Unix, Windows, Raspberry Pi Object Speed Camera using python, opencv, video streaming, motion tracking. Includes a Standalone Web Server Interface, Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync script. watch-app allows remotely controller camera configuration from a remote storage service name. Uses sqlite3 and gnuplot for reporting. Recently added openalpr license plate reader support.
Stars: ✭ 539 (+2056%)
Mutual labels:  opencv, video-streaming

JpegRtspCamera - RTSP server streaming MJPEG video from PC camera

###A server side demo project, using live555 and OpenCV library.

This project was originally written in 2015, making a basic framework for an intelligent camera running on Linux, developed and debugged first in Visual Studio 2013, then transferred to Linux. Haven't tested the Linux version yet but will test it later and make build files also for Linux. At least I updated the project files to Visual Studio 2015 and verified if everything works.

It is quite hard to start with any similar project as there are very few resources on the internet about it. So I decided to make this project available on GitHub to help other developers with quick start on a similar project.

You will need to download OpenCV library, preferably 2.4.13 and unpack it. The installer is available here. On my installation I unpacked it into folder "D:\OpenCV2.4.13" so if you will unpack somewhere else you'll need to update the project settings in Visual Studio (include and library paths). The project should work with any 2.4 OpenCV version, at least I used it with 2.4.9, 2.4.10 and 2.4.10 in the past without problems. I am not sure if it will work with OpenCV 3.0.X version or newer, but you can try and tell me.

OpenCV is used here as an image processing library. It's possible to use something else in your project for grabbing a video stream, some USB (or other) cameras will support jpeg and H.264 directly so maybe you can grab it using DirectShow (on Windows) or V4L2 (on Linux). Here the goal of the project is different, you can grab a raw image, do some manipulation (transformation, put a text or logo, etc.) on it with OpenCV, then compress with image encoder and send this out to the RTSP part. But if you need just to broadcast image directly without modification then DirectShow/V4L2 is a good option which will save you CPU time.

Other library used here is live555, known library for RTSP. Live555 is also used in VLC. You don't need to download as this is part of the project directly with source code.

After installing OpenCV you can compile the project and everything should work. Make sure you have a working camera device on your system, otherwise the program will fail. The program takes on parameter where you specify the frame rate (in units of frames per second).

JpegRtspCamera.exe <fps>

Currently the resolution for video is 640x480 but you can change it to something else (at least from the values which are supported by the camera or library).If the frames are too big make sure you will allocate bigger buffer in the source code (CameraJPEGDeviceSource.cpp, MAX_SIZE, currently 256kB).

Testing

Run the program with desired frame rate. After starting it will print the current RTSP url, for example:

rtsp://192.168.1.1/jpeg

. You can open this URL in VLC, using Media, Open Network Stream... from the main menu. Enter url, press play. You can open more VLC clients, I tested it with 5 player session and it worked without problem.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].