我正在尝试在基于 zynqmp 的平台内使用 gstreamer 将视频流式传输到 petalinux 中的 html usign busybox。
所以主要思想是将视频管道流式传输到嵌入式网络服务器并从外部 PC 网络浏览器(我使用的是 chrome)打开它。
index.html 文件如下所示:
<!DOCTYPE html>
<html>
<p> video test ! </p>
<body>
<video autoplay controls width=1280 height=1024>
<source src="http://192.168.1.12:5000" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
测试管道是:
gst-launch-1.0 -v videotestsrc pattern=snow is-live=true ! video/x-raw,width=1280,height=1024 ! theoraenc ! oggmux ! tcpserversink host=192.168.1.12 port=5000
我还尝试从 C 应用程序实时流式传输摄像机,如下所示:
appsrc -> queue -> omxh264 -> h264parser -> mp4mux (streamable=true fragment-duration = 100) -> queue -> tcpserversink (host=192.168.1.12 port=5000)
(请注意,上面这行是一个伪代码来说明应用程序在做什么)
我期待在 PC 网络浏览器中看到视频,但不幸的是,我有一个带有视频控件的灰色框。
有谁知道这是否可以使用busybox?或者这种方法有什么根本错误吗?