This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gist for Binary Files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
#-*- encoding: utf-8 -*- | |
import cv2 | |
import numpy as np | |
# start this: | |
# ffmpeg -i /dev/video0 -f mpegts udp://localhost:1337 | |
# ffmpeg -i rtsp://... -f mpegts udp://localhost:1337 |