A simple example of using webrtc to stream video from server (PYTHON) to client browser (JS).
- install OpenFace, MacOS, Ubuntu
- update
OPEN_FACE_BINARIES_PATH
to point to the location of the OpenFace binary files - run
> pip install -r requirements.txt
- run
> python server.py
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.
- 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
.
- On Ubuntu run
- 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
- On MacOS run
sudo apt-get install g++-8sudo apt-get install g++-8