Jetson-AGX-Xavier gstreamer-rtsp-server rtsp推拉流
安装nvidia-jetpack 使用硬件编解码
sudo apt-get install nvidia-jetpack
安装gstreamer-rtsp-server
sudo apt-get install gtk-doc-tools
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev
git clone -b 1.8 https://github.com/GStreamer/gst-rtsp-server.git
cd gst-rtsp-server
./autogen.sh
sudo make
sudo make install
test-launch rtsp推流
cd gst-rtsp-server/examples
./test-launch "( v4l2src device=/dev/video4 ! videoconvert ! video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080 ! nvvidconv ! omxh264enc profile=2 preset-level=2 MeasureEncoderLatency=1 control-rate=0 bitrate=10000000 iframeinterval=50 ! rtph264pay name=pay0 pt=96 )"
./test-launch "( v4l2src device=/dev/video0 ! videoconvert ! video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080 ! nvvidconv ! nvv4l2h264enc maxperf-enable=1 bitrate=8000000 ! h264parse ! rtph264pay name=pay0 pt=96 )"
gst-launch-1.0 拉流
gst-launch-1.0 playbin uri= rtsp://127.0.0.1:8554/test uridecodebin0::source::latency=0