gstreamer - Gstreamer 到 html 与busybox
问题描述
我正在尝试在基于 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?或者这种方法有什么根本错误吗?
解决方案
推荐阅读
- python - 为什么 open(1) 不抛出异常?
- r - ggplot线图中的组排序方法
- reactjs - 盖茨比博客未显示所有帖子,仅显示本月课程
- python - 使用 Pip 安装但无法识别的正则表达式
- selenium - 部署在 kubernetes 上的 Selenium Hub 在访问应用程序时返回 504 错误
- python - 创建两列,一列包含随机数,另一列第一列立方
- acumatica - 为什么我在视图查询中收到多部分标识符错误(在将新创建的扩展字段添加到查询中之后?)
- ios - 在 iOS 14 中实现状态恢复
- cmd - 无法在 cmd 上运行 wasm 模块。错误:无法运行主模块“demo.wasm”
- java - 出现错误使用 apache http 核心和 http 客户端库时无法访问类型 org.apache.http.HttpResponse