1.获取树莓派的摄像头的视频源并且输出到 gstreamer中,并将数据传输到tcpserversink中,设定端口为5000

 raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch-1.0  fdsrc ! h264parse ! gdppay ! tcpserversink host=127.0.0.1 port=5000

 

2.在gst-rtsp-server的example中test-launch,从本机的5000端口获取数据流作为服务器的源数据,建立rtsp的服务器。

  ./test-launch --gst-debug=3 "( tcpclientsrc host=127.0.0.1 port=5000 ! gdpdepay ! rtph264pay name=pay0 pt=96 )" 

 

3.在ubuntu14.2 中安装gstreamer ,执行以下代码来获取摄像头的图像

 gst-launch-1.0 -v rtspsrc location=rtsp://192.168.11.22:8554/test ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink 

 

相关文章:

  • 2022-01-21
  • 2021-08-06
  • 2022-12-23
  • 2021-04-30
  • 2021-12-11
  • 2021-08-15
  • 2021-07-14
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案