使用gstreamer通过RTSP从Framebufferr流式传输

时间:2017-09-04 14:37:04

标签: gstreamer rtsp framebuffer

我已经构建了GStreamer,GStreamer RTSP Server以及一些通过RTSP运行流媒体的相关插件。 GStreamer RTSP Server示例可以使用来自网络摄像头(dev / video0)的一些来源,其中包含v4l2src,videotestsrc或带有filesrc的.MP4文件。

那么,我如何通过RTSP从帧缓冲源(dev / fb0)流式传输?

2 个答案:

答案 0 :(得分:0)

您可以使用GStreamer抓取帧缓冲区。

以下是一个例子:

gst-launch-1.0 -v multifilesrc location=/dev/fb0 ! videoparse format=29 width=1680 height=1080 framerate=30/1 ! decodebin ! videoconvert ! autovideosink sync=false

然后,您必须使其适应您的RTSP应用程序。

答案 1 :(得分:0)

我在/ gst-rtsp-server / example中输入命令:

  

sudo ./test-launch"(multifilesrc location = / dev / fb0!videoparse format = 29 framerate = 30/1!decodebin!videoconvert!x264enc!rtph264pay name = pay0 pt = 96)"

但是,我收到了错误:

  

流准备在rtsp://127.0.0.1:8554 / test
  x264 [错误]:基线配置文件不支持4:4:4

使用VLC视图

  

vlc vlc rtsp://127.0.0.1:8554 / test

它只有黑屏

帧缓冲信息:

  

模式" 1280x720"
      几何1280 720 1280 720 32
      时间0 0 0 0 0 0 0
      rgba 8 / 0,8 / 8,8 / 16,8 / 24
  endmode

相关问题