Giter Site home page Giter Site logo

qiri07 / video_reconnect Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 14 KB

use python opencv lib to process video streaming (any network stream URL such as rtsp,rtmp,camera,etc.) while the network is down and reconnect. use video buffer to process in queue and record to mp4 file

License: MIT License

Python 100.00%
camera opencv python reconnect streaming video video-processing video-streaming videocapture

video_reconnect's Introduction

video_reconnect 视频流 断链重连处理

use python (opencv) lib to process video streaming while the network is down and reconnect.

1 stream_url 传入本地视频流地址 或者网络视频流地址 ,比如 rtsp,rtmp都可以

2 通过 ThreadPoolExecutor 启动2个线程处理 视频 线程1 负责将视频流 存储 队列,线程2 负责将队列缓存视频 保存成文件.mp4(每隔5秒生成一个)

3 不论是启动程序后,视频流是中断的,还是 运行中 视频流中断,都可断联重连处理。

场景:传入视频流地址,进行视频 算法处理,确保视频流的网络波动不稳定,进行的 视频流断线重连处理

The tools to push streaming can use (OBS),(ffmpeg) etc. The MediaCenter can use (ZLMediakit)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.