GStreamer hlssink 管道终止
使用以下管道播放本地文件时:
gst-launch-1.0 filesrc location=/tmp/test.mp4 ! qtdemux ! queue ! h264parse ! mpegtsmux ! hlssink
我得到以下输出:
streamer_1 | Setting pipeline to PAUSED ...
streamer_1 | Pipeline is PREROLLING ...
streamer_1 | Pipeline is PREROLLED ...
streamer_1 | Setting pipeline to PLAYING ...
streamer_1 | New clock: GstSystemClock
streamer_1 | Got EOS from element "pipeline0".
streamer_1 | Execution ended after 0:00:22.647824881
streamer_1 | Setting pipeline to NULL ...
streamer_1 | Freeing pipeline .
该管道的工作原理是我可以在浏览器中看到内容的输出,但它会在 22 秒后终止。我的 test.mp4 文件是一个 15 分钟的流。
有人可以帮助我理解为什么它会终止以及我将如何播放完整的 15 分钟文件吗?
When playing back a local file using the following pipline:
gst-launch-1.0 filesrc location=/tmp/test.mp4 ! qtdemux ! queue ! h264parse ! mpegtsmux ! hlssink
I get the following output:
streamer_1 | Setting pipeline to PAUSED ...
streamer_1 | Pipeline is PREROLLING ...
streamer_1 | Pipeline is PREROLLED ...
streamer_1 | Setting pipeline to PLAYING ...
streamer_1 | New clock: GstSystemClock
streamer_1 | Got EOS from element "pipeline0".
streamer_1 | Execution ended after 0:00:22.647824881
streamer_1 | Setting pipeline to NULL ...
streamer_1 | Freeing pipeline .
This pipeline works in the sense that I can see the output of the content in a browser but it terminates after 22 seconds. My test.mp4 file is a 15 minute stream.
Can someone help me to understand why it terminates when it does and how I would play the full 15 minute file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
我终于明白了这一点。如果您引入
clocksync
步骤,那么它将以预期的速率发出帧:I finally figured this out. If you introduce a
clocksync
step then it will emit frames at the expected rate: