gst-launch-1.0 -v rtspsrc location=rtsp://root:root@192.168.1.220/axis-media/media.amp latency=0 \
! rtph264depay \
! h264parse \
! avdec_h264 \
! videoconvert \
! fpsdisplaysink text-overlay=true sync=false
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
sudo apt-get install build-essential cmake git pkg-config libgtk-3-devsudo | |
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-devsudo | |
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev gfortran openexr libatlas-base-devsudo | |
sudo apt-get install python3-dev python3-numpy libtbb2 libtbb-dev libdc1394-22-dev | |
mkdir ~/opencv_build && cd ~/opencv_build | |
git clone https://github.com/opencv/opencv.git | |
git clone https://github.com/opencv/opencv_contrib.git | |
cd ~/opencv_build/opencv |
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/sh | |
# Crete SMTPE bar video | |
ffmpeg -f lavfi -i smptebars=duration=10:size=1920x1080:rate=30 smptebars.mp4 | |
# raw h264 from file to HTTP server (in loop) | |
ffmpeg.exe -stream_loop -1 -re -i <filename>.mp4 -c:v libx264 \ | |
-vprofile baseline -b:v 600k -bufsize 600k -tune zerolatency -pix_fmt yuv420p \ | |
-an \ |
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
# gstreamer | |
# Check with: | |
# $ which gst-launch-1.0 | |
# gst-launch-1.0 --gst-version | |
sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good | |
sudo apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly | |
sudo apt-get install gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools | |
sudo apt-get install gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools |
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/sh | |
sudo apt-get update | |
sudo apt-get install | |
sudo apt-get upgrade | |
# tools | |
sudo apt install git | |
# tweak tools |