Java RTSP 客户端/服务器库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/820888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java RTSP client/server library
提问by SyRenity
Is anyone aware about good RTSP client/server Java library?
有人知道好的 RTSP 客户端/服务器 Java 库吗?
Search on Google reveals JMF, which is very outdated.
在 Google 上搜索显示 JMF,这是非常过时的。
Thanks.
谢谢。
回答by Greg Adamski
回答by user106013
There is no java implementation of RTSP protocol. You must do it yourself using a NIO framework (MINA, GRIZZLY, NETTY...) its a possible solution.
没有 RTSP 协议的 java 实现。您必须使用 NIO 框架(MINA、GRIZZLY、NETTY...)自己完成,这是一个可能的解决方案。
回答by Sam
Red5 has some support or is going to have support for RTSP and is Java based.
Red5 有一些支持或即将支持 RTSP,并且是基于 Java 的。
回答by user17481
回答by Jjreina
you can use vlc(Videolan client) whith vlcj and JNA
您可以使用带有 vlcj 和 JNA 的 vlc(Videolan 客户端)
回答by Siddharth
You can use Netty NIO framework to write your own RTSP server / client implementation.
您可以使用 Netty NIO 框架编写自己的 RTSP 服务器/客户端实现。
回答by enthusiasticgeek
Look at Gstreamer. I have created a Java code for RTSP Client. And also posted link on RTSP server rtsp streaming on java
看看 Gstreamer。我为 RTSP 客户端创建了一个 Java 代码。并且还在java上的RTSP服务器rtsp流上发布了链接
回答by Cynichniy Bandera
Some time ago I've coded android rtsp streaming client (android could stream to media server, wowza in that particular case). There are only couple tricky moments with that approach:
前段时间我编写了 android rtsp 流媒体客户端(android 可以流式传输到媒体服务器,在这种情况下 wowza)。这种方法只有几个棘手的时刻:
- it was based on known trick with unix sockets and parsing mp4 generated by the device in order to get NALU out of it;
- timestamps synchronisation for audio and video is really not trivial on android when two media recorders used (for vide and for audio) for getting the media.
- 它基于已知的 Unix 套接字技巧,并解析设备生成的 mp4,以便从中获取 NALU;
- 当两个媒体记录器(用于视频和音频)用于获取媒体时,音频和视频的时间戳同步在 android 上确实不是微不足道的。