使用Java实时视频流? [英] Live video streaming using Java?
问题描述
是否有使用Java流式传输实时视频的好库?理想情况下,管道的两端应该用Java编写,但我最关心的是视频播放器。你会推荐什么软件?
Are there any good libraries for streaming live video using Java? Ideally both ends of the pipe should be written in Java but I am mostly concerned about the video player. What software would you recommend?
UPDATE :似乎VLC引入了1-2秒的延迟。我需要真正实时的视频流。记录到播放延迟必须小于300毫秒。
UPDATE: It seems that VLC introduces a 1-2 second delay. I need video streaming that is truly live. The record-to-playback delay must be under 300ms.
推荐答案
我见过的最好的视频播放/编码库是< a href =http://ffmpeg.org/ =noreferrer> ffmpeg 。它会播放你所投入的一切。 (它由MPlayer使用。)它是用C语言编写的,但我找到了一些Java包装器。
The best video playback/encoding library I have ever seen is ffmpeg. It plays everything you throw at it. (It is used by MPlayer.) It is written in C but I found some Java wrappers.
- FFMPEG-Java :使用JNA围绕ffmpeg的Java包装器。
- jffmpeg :这个集成到JMF。
- FFMPEG-Java: A Java wrapper around ffmpeg using JNA.
- jffmpeg: This one integrates to JMF.
这篇关于使用Java实时视频流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!