用Java流视频流 [英] Stream video in Java

查看:619
本文介绍了用Java流视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将实时视频录制并流式传输到多个客户端的最佳方法是什么?是否有任何库?

What is the best way to record and stream live video to many clients? Are there any libraries?

推荐答案

Xuggler是一个很好的开源Java库,可以动态处理流媒体和修改媒体。

Xuggler is a nice opensource Java library that deals with streaming and modifying media on the fly.

http://www.xuggle.com/xuggler/

您可以将它与Red5一起使用,或者如果您想要完全控制,Xuggler有一个IContainer类,其中每个实例都可以设置为流入或流出媒体。我已经能够通过UDP和TCP / IP重新播放媒体。

You can either use it with Red5 or if you want complete control, Xuggler has an IContainer class where each instance can be set up to stream media in or out. I've been able to restream media over UDP and TCP/IP.

此外,Xuggler会自动拆分各种流,供您分析/修改(视频,音频,元数据) )并使用FFMPEG(大量开箱即用的编解码器)=)构建。

Also, Xuggler will automatically split various streams for you to analyze/modify (video, audio, metadata) and is built using FFMPEG (tons of out of the box codecs) =).

这篇关于用Java流视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆