# 切root
sudo su
# 套件安裝
apt-get install gtk-doc-tools
apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base
apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
apt-get install gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools
apt-get install gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
# gst-rtsp-server下載與編譯
git clone git://anongit.freedesktop.org/gstreamer/gst-rtsp-server
cd gst-rtsp-server
git clone https://github.com/GStreamer/common.git
./autogen.sh
make -j4
make install
#啟動RTSP Server:
cd examples
#直接讀取CSI鏡頭
./test-launch "nvarguscamerasrc ! nvvidconv ! clockoverlay ! omxh264enc ! rtph264pay pt=96 name=pay0" --- 成功
./test-launch "( mfw_v4lsrc device=/dev/video0 ! queue ! vpuenc codec=6 ! rtph264pay name=pay0 pt=96 )" --- 失敗
參考: Jetson 学习笔记(十二):CSI摄像头实现rtsp流的传输并对动态获取多路流进行探索_nvvidconv含义_ZZY_dl的博客-CSDN博客
沒有留言:
張貼留言