Flash Media Server:同时录制 2 个音频/视频流时遇到问题?

发布于 2024-07-22 04:31:21 字数 1176 浏览 6 评论 0原文

简而言之

对于一个项目,我需要 2 人的音频/视频聊天,并且能够录制(部分)会话。 我遇到了第二个用户录制的视频混乱的问题,有大量(看似)跳帧和/或音频丢失,很可能是由音频流引起的(不录制音频时,问题不会出现)发生)。

概述

对于一个项目,我需要一种设置,让两个客户端可以彼此进行视频(+音频,显然:)聊天。 此外,“主持人”应该能够在按下按钮时录制会话,并以相同的方式停止录制。

虽然这种设置远非火箭科学,但我一直遇到我似乎无法弄清楚的问题。 客户端连接良好,彼此的视频正常显示,甚至可以很好地听到对方的声音。 我选择在主机开始录制时重新初始化连接,效果也很好。 然而,录制的文件有时会遇到问题。

可能的原因

通常主持人的录音效果很好,音频和视频都正常工作。 客户端视频显示问题,播放时视频确实会跳跃(在许多应用程序中,例如 VLC、KMPlayer、Adobe 自己的媒体播放器等)。 我尝试调试这种情况,它似乎与音频直接相关,尽管我不确定这是如何发生的。 当我在没有录制音频的情况下进行测试时,两个视频都播放得很好。

问题

我会尝试解释客户端视频中发生的情况; 视频播放正常,音频也正常。 但在视频看似随机的位置,播放会突然跳过视频(和音频)的几秒钟,因此一分钟的视频有时只持续几秒钟(即使播放栏等显示视频实际上持续了一分钟) 。

我还没有发现它如何跳过的任何逻辑——有些视频每个只显示 4/5 几秒的间隙,其他则提前 20-30 秒——所以我假设这是一个随机的事情。

场景

我已经测试了多个场景,并且问题似乎足够一致(例如,它每次都会发生,只是当我不录制音频时不会发生)。 我使用了本地(开发人员版)FMS 服务器,托管 influxis 服务,并且我使用了两台本地计算机,一台本地计算机(使用 2 个网络摄像头)和 1 台本地计算机,1 台(真正的)远程计算机。 所有设置似乎都与录制的(客户端)视频存在相同的问题。

最后

我不确定您需要什么详细信息,因此请向我询问您可能需要的任何信息,以帮助我找到解决方案。 我像没有明天一样进行搜索和调试,但无法找出导致此问题的原因。

非常非常感谢!

-戴夫

In short

For a project I need an audio/video-chat for 2 people, with the ability to record (part of) the session. I am running into issues where the 2nd user's recorded video gets messed up, with massive amounts of (seemingly) skipping frames and/or audio loss, most likely caused by the audio stream (when not recording the audio, the problem doesn't appear to occur).

Overview

For a project I need a setup where two clients can video(+audio, obviously :) chat with one another. Also, the 'host' should be able to record the session when (s)he presses a button, and stop recording in the same way.

While this setup is far from rocket science, I've been experiencing issues that I can't seem to figure out. The clients connect fine, and each other's videos show up propely and they can even hear each other just fine. I chose to re-initialize the connection when the host starts the recording, which also works just fine. The recorded files, however, at times experience issues.

The possible cause

Usually the hosts' recording is great, with audio and video working as it should. The client video shows problems, with the video literally jumping when played back (in a number of applications such as VLC, KMPlayer, Adobe's own media player, etc.). I tried to debug the situation and it seems to be directly related to the audio, though how this happens I'm not sure. When I did tests with no recorded audio, both videos played back fine.

The problem

I'll try to explain what happens in the client video; the video plays back normally, with audio working fine too. But in seemingly random locations of the video, playback suddenly skips seconds of the video (and audio), so a one minute video sometimes lasts mere seconds (even though the playback bar and the such show that the video in fact lasts for a minute).

I have not found any logic in how it skips --some videos show only 4/5 gaps of a few seconds each, others jump 20-30 seconds ahead--, so I'm assuming it's a random thing.

Scenarios

I have tested multiple scenarios, and the problem seems consistent enough (as in, it occurs every time, just not when I dont record audio). I have used a local (developer edition) FMS server, the hosted influxis service, and I have used two local computers, one local machine (using 2 webcams) and 1 local, 1 (really) remote computer. All setups seem to have the same issues with the recorded (client) video.

In closing

I'm not sure what details you need, so please, ask me for anything you might need to help me find a solution to this. I have searched and debugged like there was no tomorrow, and haven't been able to figure out what is causing this.

Many, many thanks in advance!

-Dave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

往日 2024-07-29 04:31:21

我在 FMS 方面拥有相当丰富的经验,特别是在 influxis 方面...还录制了音频和视频,因为出于安全原因我需要它。 然而,在所有情况下,视频和音频都记录在服务器上 - 而不是与客户端在同一台计算机上。

我看到的问题包括对音频和视频质量进行大量调整,以找到正确的组合以获得最佳结果。 这就是我要开始的地方,降低质量,看看效果如何。

对于测试环境,我建议使用不同的机器,这样 CPU 就不会成为您的问题 - 因为实际环境会将客户端放在具有更多 CPU 的不同机器上。

请与我联系并提供其他信息等 - 我和几个朋友有一个正在运行的系统,我很乐意提供帮助。

<>

查看我的笔记 - 我们能够与涌入者谈论滞后的音频 - 他们使用了一些服务器设置,这是我们的每秒帧数和其他质量人员......

I've had some pretty extensive experience with FMS and specifically with influxis... Also did recording of both audio and video as the system I had needed it for security reasons. However, in all cases the video and audio were recorded on the server - not on the same machine as either client.

The issues I've seen include a vast amount of tweaking of both audio and video quality - to find the correct mix to get optimal results. That's where I'd start, adjust quality down and see where that gets you.

For a test environment, I'd suggest using different machines so the CPU doesn't become your issue - as the actual environment would have the clients on different boxes with more CPU.

Contact me with addition information, etc - I and several friends have a system working and I'm happy to help.

<>

Looked over my notes - we were able to talk to influxis about the lagging audio - and there were a couple of server setting they played with AND it was our frames-per-second and other quality guys...

新一帅帅 2024-07-29 04:31:21

我不确定我的问题是否与您的相同,但我们找到了解决方案。

Flash 部件需要设置静音级别 (setSilenceLevel),以便它不会插入表示无音频的音频数据包。 这些音频数据包会导致录制问题,从而产生随机跳过和音频丢失。

I'm not sure if my problem was the same as yours, but we found a solution.

The flash piece needed to set the silence level (setSilenceLevel) such that it didn't insert audio packets that signal no audio. These audio packets caused recording problems that produced random skips and audio drops.

魄砕の薆 2024-07-29 04:31:21

戴夫,你排除了延迟的可能性吗? 带有两个摄像头的计算机是否已连接到高速网络? 我还会检查正在录制的机器上的处理器利用率。

Dave, have you ruled out latency? are the computers with both cams connected to a high speed network? I would also check the processor utilisation on the machine which is recording.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文