ffmpeg2theora oggfwd 无法与icecast2 一起使用
我在 http://192.168.xx/image 中有一个相机流(mjpeg)(其中 x 是其余的IP)。我启动 Icecast2 服务器(Ubuntu 10.10),然后使用以下方式进行流式传输:
ffmpeg2theora -f mjpeg http://192.168.x.x/image -o /dev/stdout - | oggfwd localhost 8000 password /test
挂载点已创建,但视频未在 Firefox 上显示。我确实看到了视频框,但它只是无限地显示“思考”图标,并且视频不显示。
如果我下载了正确的 ogg 文件,
cat proper_ogg_file.ogg | oggfwd localhost 8000 password /test
我会在 Icecast 服务器的网站上看到该视频吗?
另外我做了:
ffmpeg2theora -f mjpeg http://192.168.x.x/image -o test_video.ogg
一旦我停止进程(CTRL + C)并转到保存视频的桌面并使用VLC或任何其他媒体播放器打开它,它就会播放我允许全部录制的流的部分按 CTRL+C 的方式。
如果我获取该文件并使用以前的方法:
cat test_video.ogg | oggfwd localhost 8000 password /test
我会遇到与直接将相机连接到 stdout 然后连接到 oggfwd 时相同的问题。因此我认为这是一个向 ogg 问题的“转换”?有人可以帮忙吗?知道为什么我不能这样做吗?
I have a camera streaming (mjpeg) in http://192.168.x.x/image (where x are the rest of the IP). I start my icecast2 server (Ubuntu 10.10) and then I stream using:
ffmpeg2theora -f mjpeg http://192.168.x.x/image -o /dev/stdout - | oggfwd localhost 8000 password /test
The mountpoint is created but the video is not showing on Firefox. I do see the video box but it's just infinitely showing the "thinking" icon and video does not show.
If I download a proper ogg file and do
cat proper_ogg_file.ogg | oggfwd localhost 8000 password /test
I see the video on the icecast server's website.
In addition I did:
ffmpeg2theora -f mjpeg http://192.168.x.x/image -o test_video.ogg
Once I stop the process (CTRL+C) and go to my Desktop where the video is saved and open it with VLC or any other media player, it plays the portion of the stream that I allowed to be recorded all the way up to pressing CTRL+C.
If I take that file and use the previous method:
cat test_video.ogg | oggfwd localhost 8000 password /test
I get the same issue as when I was directly piping the camera to stdout and then to oggfwd. So therefore I assume this is a "conversion" to ogg issue? Can anybody help? Any idea why i can't do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案。解决方案是使用 Flumotion。它使用起来更容易,并且可以满足我的需要。如果有人需要的话,我可以提供有关如何使用它的信息。
谢谢
I found a solution. The solution is to use flumotion. It is a lot easier to use and works for what I needed it. I can provide information on how to use it if anybody needs to do so.
Thank you