video原始站点服务器,Red5服务器仅记录来自AIR的RTMP视频源的前几秒(Red5 server only records first few seconds of RTMP video fe...

Red5服务器仅记录来自AIR的RTMP视频源的前几秒(Red5 server only records first few seconds of RTMP video feed from AIR)

我正在使用安装的oflaDemo测试Red5服务器的新安装。 我想要发布要录制到文件的实时视频。 这似乎工作正常,除了只记录了一小部分视频输入的事实。 只有大约30秒的视频的第一帧似乎可以播放,并且只有几秒钟的视频被录制了更长时间(约10分钟)的视频。

是什么原因导致Red5开箱即可录制几秒钟的视频?

------------继承人的代码片段---------------------------------- -------------------------------------------------- -------

nc = new NetConnection();

nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

nc.connect("rtmp://myurl");

nc.client = this;

ns_out = new NetStream( nc );

ns_out.attachCamera( cam )

protected function onNetStatus(event:NetStatusEvent):void

{

switch(event.info.code)

{

case "NetConnection.Connect.Success":

ns_out.publish(_filename, "record");

break;

}

}

I am testing a new installation of Red5 server using the oflaDemo that is installed. I am wanting to publish a live video feed to be recorded to a file. This seems to work ok except for the fact that only a fraction of the video feed is ever recorded. Only the first frame for videos of around 30 seconds ever seems to be available to play back and only a few seconds of video is recorded for longer (~10 minutes) of video.

What could cause Red5 out of the box to only record a few seconds of video?

------------ Heres a code snippet -------------------------------------------------------------------------------------------

nc = new NetConnection();

nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

nc.connect("rtmp://myurl");

nc.client = this;

ns_out = new NetStream( nc );

ns_out.attachCamera( cam )

protected function onNetStatus(event:NetStatusEvent):void

{

switch(event.info.code)

{

case "NetConnection.Connect.Success":

ns_out.publish(_filename, "record");

break;

}

}

原文:https://stackoverflow.com/questions/14675398

更新时间:2019-12-19 23:06

最满意答案

在我看来,这是最新版本的Red5中的一个错误。 我的录音机应用程序也有同样的问题。 虽然我曾经在旧版本的Red5中记录流没有问题。

It seems to me this is a bug in the latest version of Red5. I have the same issue with an audio recorder app. Although I used to record streams with no problems in older versions of Red5.

相关问答

出现这样的问题,只能说你在安装oflaDemo没有成功的前提下后面这一系列的操作都是无用功,建议先将oflaDemo安装好再说

I have done streaming from mobile AIR applications via Wowza media server. The standard streaming code should work, just note that H.264 video isn't supported in iOS via Flash. I have done streaming from mobile AIR applications via Wowza media server.

...

您可以通过Vitamio Lib轻松实现。 Vitamio可以在Android和iOS中播放720p / 1080p的高清,mp4,mkv,m4v,mov,flv,avi,rmvb,rm,ts,tp等许多视频格式。 Vitamio支持几乎所有流行的流媒体协议,包括HLS(m3u8),MMS,RTSP,RTMP和HTTP。 从这里下载Vitamio Bundle。 和从这里演示。 这里的教程。 You can easily do it via Vitamio Lib. Vitamio can pla

...

我进一步探讨了Red5,发现无需重启Red5服务器即可部署应用程序。 以下是执行此操作的步骤: 根据您的要求创建/配置Red5应用程序。 从配置目录中创建一个war文件。 将生成的war文件放在/ webapps /下 Red5使用War部署Bean,可以将其识别为warDeployService。 这是一个调度程序服务,在webapps目录中监视新的Red5应用程序。 必须将新应用程序部署为.war文件。 当warDeployService发现一个新的.war文件候选者时,它会尝试自动提取它并在

...

流不存在,正确。 但为什么? 可能有一两个原因:您没有创建实时广播流,2)因为您使用的是错误的范围。 除非您手动配置(不太可能),否则请使用“实时”广播器范围,该范围位于/ live中。 因此,发布到rtmp://216.224.181.197/live/red5StreamDemo并订阅完全相同的mrl,在此示例中为rtmp://216.224.181.197/live/red5StreamDemo。 注意:为此,您需要创建一个“实时”流并将其提供给RED5服务器。 您可以使用avconv(ak

...

但你有一个真正的IP在你的家里你做流媒体,因为要做到这一点,你应该有一个固定的IP ex 127.0.0.1,当然nessesary端口应该打开,然后你可以在你的Android应用程序中url rtmp:// YOUR_IP_ADDRESS:YOUR_PORT / oflaDemo,它应该流式传输。 But do you have an real ip at your home where yo make the streaming, because to do that you should h

...

在我看来,这是最新版本的Red5中的一个错误。 我的录音机应用程序也有同样的问题。 虽然我曾经在旧版本的Red5中记录流没有问题。 It seems to me this is a bug in the latest version of Red5. I have the same issue with an audio recorder app. Although I used to record streams with no problems in older versions of Red

...

本文介绍了每个Red5版本的录制问题。 修补后的Red5 1.0.2修复了录制问题。 This article covers recording issues with each Red5 version. This patched Red5 1.0.2 fixes the recording issues.

好吧,我解决了我的问题! 我最终尝试使用不同的播放器和不同的设置并设法获得一些帧延迟(或根本没有延迟),所以我猜这个ffmpeg命令根本不会引入延迟。 仅供记录,我正在使用带有以下设置的flowplayer: $f("streams", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {

clip: {

url: 'mystream',

...

我找到的一个解决方案是回到0.9版本,1.0 RC有一些问题。 我切换回0.9,一切似乎都有效。 One solution I found is to go back to 0.9 version, 1.0 RC has some issues. I switched back to 0.9 and everything seems working.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值