Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Raspberry pi 使用Gstreamer的流帧缓冲区_Raspberry Pi_Gstreamer_Framebuffer - Fatal编程技术网

Raspberry pi 使用Gstreamer的流帧缓冲区

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

如何使用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 ! 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