tags:

views:

4668

answers:

7

Hi.

Is anyone aware about good RTSP client/server Java library?

Search on Google reveals JMF, which is very outdated.

Thanks.

+1  A: 

You can try using FMJ. It's a set of libraries that wrap a lot of modern codecs in Java interfaces.

Greg Adamski
I actually familiar with this, but it doesn't support RTSP :(.Any other suggestions?
SyRenity
FMJ was ahead of its time but hasn't been touched in probably 3+ years. Their ffmpeg implementation was really out-of-date when I tried to use it several years ago, go with Xuggler.
Mondain
+1  A: 

There is no java implementation of RTSP protocol. You must do it yourself using a NIO framework (MINA, GRIZZLY, NETTY...) its a possible solution.

+1  A: 

Red5 has some support or is going to have support for RTSP and is Java based.

Sam
Red5 is RTMP, not RTSP. They are *completely* different. (Granted, they are both streaming protocols, but apart from that, completely different.)
Jeremy Visser
I posted about Red5 RTP/RTSP in the similar question here: http://stackoverflow.com/questions/3193837/java-rtp-rtcp-library-using-nio
Mondain
+2  A: 

And, as I think you know already, you can use Xuggler :)

Xuggle
A: 

Here is good place to start: http://stackoverflow.com/questions/820888/java-rtsp-client-server-library

Code is break some java and OOP conventions but it's enough to understand how to make your own implementation.

Method DESCRIBE required by most of clients (but marked as recommended in specification of RTSP)

for debugging and testing I use live555 server/client it's C++ opensource application client used in mplayer and vlc AFAIK

Also you can use wireshark to analyze client/server communication.

Sergey Dryganets
+2  A: 

If you're still interested, Netty provides RTSP support since version 3.2.

A: 

you can use vlc(Videolan client) whith vlcj and JNA

Jjreina