Skip to content

wayne931121/Python_Live_Stream_Video_Http_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Live-Stream-Video-Http-Server

Live Stream Video, using python ffmpeg opencv. Test on win10.(Not Included Audio.)

簡單的來說,程式碼是這樣運作的 :

Phone Camera >> DroidCam >> wifi or usb>> DroidCam Client >>

// 以上是實體別人寫好的部分 // 以下是自己寫的程式碼部分 // Server

Python OpenCV >> Python Shared Memory >> Python MediaRecorder.py >> CMD FFMPEG >> Python Shared Memory >> Python Flask Http Server >>

// 以下是客戶端 // Client

<< Client Browser Javascript Ajax >> Html Video >> User Screen

執行: windows cmd> run.bat

環境配置需求

手機 照相、錄影等相機功能 DroidCam (Wifi or usb(If you using usb, remember to open you android phone allow usb debug in devolop mode.) )

電腦 DroidCam Client ffmpeg (要設環境變數) python : (詳情可見setup.bat) opencv flask

#即時串流伺服器功能,不過是非常簡易版的。

#目前尚未支援音訊串流,有時間可能會去做

環境需求詳細:

ffmpeg安裝: https://www.ffmpeg.org/download.html

python安裝: https://www.python.org/downloads/

flask、opencv安裝: pip install opencv-python==3.4.16.57

pip install flask

DroidCam安裝: https://www.dev47apps.com/

About

Live Stream Video, using python ffmpeg opencv. Test on win10.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published