gstreamer的rtsp推流

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


你可能感兴趣的:(GStreamer)