Skip to content

maqduni/video-stream-webrtc

Repository files navigation

Description

A simple example of using webrtc to stream video from server (PYTHON) to client browser (JS).

Installation

  1. install OpenFace, MacOS, Ubuntu
  2. update OPEN_FACE_BINARIES_PATH to point to the location of the OpenFace binary files
  3. run > pip install -r requirements.txt
  4. run > python server.py

To use .TS files

Use the following to convert .mp4 to .ts:

ffmpeg -i abc.mp4 -c:v libx264 -c:a aac -b:a 160k -bsf:v h264_mp4toannexb -f mpegts -crf 32 pqr.ts

No need of conversion to try out the example. Added just in case.

Troubleshooting

  1. If you encounter ERROR: Failed building wheel for pyaudio
    • On Ubuntu run sudo apt-get install portaudio19-dev python3-dev to install the required dependencies for pyaudio.
    • On MacOS run brew install portaudio.
  2. If you encounter CMake Error at cmake/modules/FindOpenBLAS.cmake:103 (MESSAGE): Could not find OpenBLAS
    • On MacOS run brew install openblas.
    • On MacOS set environment variables
      export OpenBLAS_HOME=$(brew --prefix openblas)
      export CMAKE_PREFIX_PATH=$OpenBLAS_HOME:$CMAKE_PREFIX_PATH
      

sudo apt-get install g++-8sudo apt-get install g++-8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published