Raspberry pi 使用Gstreamer的流帧缓冲区
如何使用Gstreamer读取帧缓冲区(/dev/fb0) 我正在尝试读取Raspberry PI上的帧缓冲区,并使用RP上的硬件h264编码器将其传输到我的笔记本 首先我尝试了这个链接: 并使用命令:Raspberry pi 使用Gstreamer的流帧缓冲区,raspberry-pi,gstreamer,framebuffer,Raspberry Pi,Gstreamer,Framebuffer,如何使用Gstreamer读取帧缓冲区(/dev/fb0) 我正在尝试读取Raspberry PI上的帧缓冲区,并使用RP上的硬件h264编码器将其传输到我的笔记本 首先我尝试了这个链接: 并使用命令: gst-launch-1.0 -v multifilesrc location=/dev/fb0 ! videoparse format=29 framerate=30/1 ! decodebin ! videoconvert ! omxh264enc ! rtph264pay ! gdppa
gst-launch-1.0 -v multifilesrc location=/dev/fb0 ! videoparse format=29 framerate=30/1 ! decodebin ! videoconvert ! omxh264enc ! rtph264pay ! gdppay ! tcpserversink host=192.168.11.100 port=5000
但是视频没有垂直同步
然后我找到了这个
并尝试:
gst-launch-1.0 -v filesrc location=/dev/fb0 blocksize=1920000 ! video/x-raw,format=BGRA,width=800,height=600,framerate=1/1 ! videoconvert ! video/x-raw,format=RGB,framerate=1/1 ! videoflip method=vertical-flip ! videoscale ! video/x-raw,width=400,height=300 ! imagefreeze ! video/x-raw,format=RGB,framerate=30/2 ! clockoverlay shaded-background=true font-desc="Sans 38" ! omxh264enc ! rtph264pay ! gdppay ! tcpserversink host=192.168.11.100 port=5000
但它只在黑屏上显示一个时钟
我正在使用此命令监视流:
gst-launch-1.0 -v tcpclientsrc host=192.168.11.100 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false