gstreamer的rtsp推流
阿新 • • 發佈:2019-02-10
1. 安裝 gstream 1.0
sudo apt-get update
sudo apt-get install gstreamer1.0
2.安裝gst-rtsp需要的庫檔案
sudo apt-get install libgstreamer*
sudo apt-get install gstreamer-tools gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
3.編譯安裝gst-rtsp
wget http://gstreamer.freedesktop.org/src/gst-rtsp/gst-rtsp-0.10.8.tar.bz2 bzip2 -d gst-rtsp-0.10.8.tar.bz2 tar -xvf gst-rtsp-0.10.8.tar cd gst-rtsp-0.10.8/ ./configure sudo make
4、測試gst-rtsp
./test-readme
./test-launch --gst-debug=3 "( v4l2src ! video/x-raw,width=640,height=480 ! omxh264enc ! h264parse ! rtph264pay name=pay0 pt=96 )"
播放rtsp://192.168.1.110:8554/test