首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用VLC将RTSP实时流式传输到本地网络HTTP

使用VLC将RTSP实时流式传输到本地网络HTTP
EN

Stack Overflow用户
提问于 2016-06-10 19:47:46
回答 1查看 1.7K关注 0票数 1

我正在尝试通过使用VLC的网站在本地网络上流式传输RTSP提要(从ABUS摄像头)。我已经尝试将我在这里或其他地方找到的所有解决方案应用到这里或其他地方,直到现在都没有成功。

我需要从rtsp://192.168.0.2:554/stream1捕获饲料,并将其与VLC转换为192.168.0.2:1234/stream.ogg文件。VLC保持崩溃。如果没有代码转换,它不会崩溃,但我没有流文件。

我使用XAMP (和WAMP )作为Windows7和Windows10上的can服务器。不管我怎么尝试,我都不能让它工作。作为HTML播放器,我使用Projekktor,下面是我的代码行:

代码语言:javascript
复制
<video id="player_a" class="projekktor" poster="intro.png" title="RTS Stream" controls autoplay loop>
<source src="http://192.168.2.103:1234/stream.ogg" type="video/ogg" />
</video>

<script type="text/javascript">
$(document).ready(function() {
projekktor('#player_a', {
volume: 0.0,
playerFlashMP4: 'http://localhost:6969/streaming/js/projekktor/swf/StrobeMediaPlayback/StrobeMediaPlayback_hls.swf',
playerFlashMP3: 'http://localhost:6969/streaming/js/projekktor/swf/StrobeMediaPlayback/StrobeMediaPlayback.swf',
platforms: ['browser', 'android', 'ios', 'vlc', 'native', 'flash'],
});
});
</script>

任何帮助都将不胜感激!谢谢!

EN

回答 1

Stack Overflow用户

发布于 2016-06-13 16:11:32

我已经找到了解决方案,使用flash播放器和VLC浏览器插件。

代码语言:javascript
复制
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"  width="100%"  height="100%" id="vlc" loop="yes" autoplay="yes" controls="false" target="rtsp://192.168.0.2:554/stream1"></embed>
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37747510

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档