Skip to content

JacobChen1998/Streaming-with-Django-and-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streaming with Django and OpenCV

This is a simple example to demonstrate how to stram your source on your website. Here we use two packages : Django and OpenCV

Prerequisites

  • Python > 3.6

Quick start with anaconda

0. Clone and into project

git clone https://github.com/JacobChen1998/Streaming-with-Django-and-OpenCV.git
cd Streaming-with-Django-and-OpenCV/

1. Environment create

conda create --name django-stream python=3.8

2. Environment activate

conda activate django-stream

3. Packages install

pip install -r requirements.txt

4. Replace playing source in cfg.py

   stream_link =  <your source>

5. Run the server

python manage.py runserver

6. Go to 127.0.0.1:8000 with your browser than enjoy!

Support source type:

✅ webcam (stream_link=0)
✅ RTSP source (stream_link="rtsp://.........")
✅ .mp4
✅ .3gp
✅ .avi
✅ .MOV

⚠️ Notice ⚠️

The local video can not play is normal, you must make your video openable with browser detectly first.

This http.server document can help you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published