Jetson Nano的jetpack自带的有Gstreamer环境,可以使用如下命令验证环境是否正常。执行指令之后会显示如下图所示的彩色测试图像。
当Jetson Nano连接的有显示器时,可以用如下指令进行测试。
gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink
使用VNC viewer或其他远程桌面时,用上述指令无法正常显示测试图像,可以用下面两个指令测试。
gst-launch-1.0 videotestsrc ! videoconvert ! ximagesink
gst-launch-1.0 videotestsrc ! videoconvert ! xvimagesink
使用命令播放IPC的rtsp流视频。
gst-launch-1.0 rtspsrc location="rtsp://your_camera_ip:your_camera_port/your_rtsp_stream" ! decodebin ! autovideosink