直接基于相机驱动硬编码rtsp推流,以下命令基于gst-rtsp-server运行
sudo ./test-launch "( v4l2src device=/dev/video-camera0 ! videoconvert ! mpph264enc ! rtph264pay name=pay0 pt=96 )"
gst-rtsp-server的部署
安装gstreamer基础库
sudo apt-get install libgl1-mesa-dev
sudo apt-get install gstreamer1.0-libav
sudo apt-get install gstreamer1.0-plugins-bad
sudo apt-get install gstreamer1.0-plugins-base
sudo apt-get install gstreamer1.0-plugins-ugly
sudo apt-get install gstreamer1.0-plugins-good
安装gstreamer-rtsp-server
git clone -b 1.8 https://github.com/GStreamer/gst-rtsp-server.git //下载源码
cd gst-rtsp-server
./autogen.sh
make
sudo make install