Changes

Jump to navigation Jump to search
Line 80: Line 80:     
与此同时,实现视频实时显示到HDMI输出。(如不需要preview功能,可以添加 ''-n'' 选项)
 
与此同时,实现视频实时显示到HDMI输出。(如不需要preview功能,可以添加 ''-n'' 选项)
 +
 +
* veye_raspivid 网络传输(gstreamer)
 +
 +
'''''树莓派一侧执行'''''
 +
 +
<code>./veye_raspivid -b 4000000 -t 0 -o -  | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=x.x.x.x port=5000</code>
 +
 +
码流带宽为4Mbps,持续传输,监听端口为5000。
 +
 +
电脑一侧,如为windows系统,建议使用powershell。
 +
 +
'''''电脑一侧使用gstreamer'''''
 +
 +
<code>gst-launch-1.0 -v tcpclientsrc host=x.x.x.x port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false</code>
 +
 +
其中x.x.x.x为树莓派的IP地址
 +
 +
gstreamer的windows版本下载地址。只安装runtime files即可。
    
*veye_raspivid 网络传输(direct tcp stream with netcat)
 
*veye_raspivid 网络传输(direct tcp stream with netcat)
Line 94: Line 112:     
<code>./gst-launch-1.0 -v tcpclientsrc host=x.x.x.x port=5000 ! decodebin ! autovideosink</code>
 
<code>./gst-launch-1.0 -v tcpclientsrc host=x.x.x.x port=5000 ! decodebin ! autovideosink</code>
  −
其中x.x.x.x为树莓派的IP地址
  −
  −
[https://gstreamer.freedesktop.org gstreamer]的windows版本[https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c 下载地址]。只安装runtime files即可。
      
'''''电脑一侧使用mplayer'''''
 
'''''电脑一侧使用mplayer'''''

Navigation menu