简体   繁体   English

如何使用 RTSP Url 同时使用 FFPLAY 播放多个流

[英]How to Play Multiple Streams with FFPLAY at the Same Time using RTSP Url

I am trying to play live stream coming from the server with RTSP URL.我正在尝试使用 RTSP URL 播放来自服务器的实时流。 A sample RTSP URL is given below:下面给出了一个示例 RTSP URL:

rtsp://username:password@machine_ip/42331536059e9f21

Actually, this stream is the call between two participants (caller & called).实际上,这个流是两个参与者(呼叫者和被叫者)之间的呼叫。 But when I play this URL with FFPLAY, I get just one stream(called) while I should get both streams (caller and called).但是当我用 FFPLAY 播放这个 URL 时,我只得到一个流(被调用),而我应该得到两个流(调用者和被调用者)。 I am using the following command:我正在使用以下命令:

ffplay rtsp://username:password@machine_ip/42331536059e9f21

Am I missing some parameters along with this command to fetch all streams.我是否缺少一些参数以及此命令来获取所有流。

It's actually the limitation of FFPLAY that it doesn't support multiple streams at the same time.实际上是FFPLAY的限制,它不能同时支持多个流。

FFplay has currently no support for playing two audio streams simultaneously. FFplay 目前不支持同时播放两个音频流。

Here is the reference of this answer.这是这个答案的参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM