如何从网络摄像头使用Java获取视频和音频流? [英] How to get video and audio streams from web cameras with Java?
本文介绍了如何从网络摄像头使用Java获取视频和音频流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能从网络摄像机与Java视频和音频流(在跨平台的方式)?
How can I get video and audio streams from web cameras with Java (in a cross-platform way)?
例如,我们有3-4个USB网络摄像机一台电脑;我们希望得到他们的数据流,使他们在用户界面中可见。我们怎样才能执行这样的事情?我需要code一个简单的应用程序,它会在计算机上找到的所有摄像头,让我们选择相机瓦奇。可以任何一个,请分享这样的吗?
For example, we have a computer with 3-4 USB web cameras; we want to get their streams and make them visible in the user interface. How can we perform such a thing? I need code for a simple app which would find ALL cameras on the computer and let us select camera to wach. Can any one, please share such one?
推荐答案
通过 Java的媒体框架JMF 或 FMJ
这里是JVM的例子
这篇关于如何从网络摄像头使用Java获取视频和音频流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文