Code Monkey home page Code Monkey logo

stream-transport's Introduction

Video Stream Transport Server/Client based on RTSP/RTP/RTCP

Functionalities

  • Support DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, SET_PARAMETER commands in RTSP, and support RTP encapsulation.
  • Repositioning of play point.
  • Change of speed.
  • Forward and backward.
  • Almost all the video formats supported.
  • Multiple clients on a single server.
  • Delay or advance audio track.
  • Remember the position before leave.
  • Show the play list.
  • Search on the server by name or category.
  • Switch to full screen.
  • Video quality specification.
  • Buffer mechanism for better user’s experience.
  • Mute.

Dependencies:

Python3.7

numpy 1.16.3

PIL 6.0.0

sounddevice 0.3.14

cv2 4.1.0

moviepy 1.0.0

(There are some bugs in moviepy=1.0.1, get more information from Zulko/moviepy#938)

How to run

Server

Just like

cd Server
python3 Server.py --host="0.0.0.0" --port=554 --dir="../../movies/"

You can also put a json file called ‘category.json’ in dir, so that the server can search videos by category. ‘category.json’ just likes:

{
	"category1": ["filename1", "filename2", ...],
	"category2": ["filename3", ...],
}

By the way, it’s very slow to start the server. Please wait until ‘listening ... ’ and ‘Search engine listening ...’ are BOTH printed on the console.

Client

cd Client
python3 Client.py --host="127.0.0.1" --port=554

The port must be the same with the server. Please wait until the video list are shown in the right of the window.

stream-transport's People

Contributors

zhangxwww avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

1375917982

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.