14

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

Search on Google reveals JMF, which is very outdated.

Thanks.

SyRenity
  • 841
  • 5
  • 11
  • 18

9 Answers9

23

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

user17481
  • 763
  • 6
  • 12
5

You can use Netty NIO framework to write your own RTSP server / client implementation.

Siddharth
  • 161
  • 2
  • 7
2

Look at Gstreamer. I have created a Java code for RTSP Client. And also posted link on RTSP server rtsp streaming on java

Community
  • 1
  • 1
enthusiasticgeek
  • 2,640
  • 46
  • 53
1

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

Sam
  • 6,240
  • 4
  • 42
  • 53
  • Red5 is RTMP, not RTSP. They are *completely* different. (Granted, they are both streaming protocols, but apart from that, completely different.) – Jeremy Visser Apr 19 '10 at 06:15
  • I posted about Red5 RTP/RTSP in the similar question here: http://stackoverflow.com/questions/3193837/java-rtp-rtcp-library-using-nio – Paul Gregoire Aug 01 '10 at 20:55
1

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

Art Clarke
  • 2,495
  • 18
  • 15
1

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:

  • 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.
Cynichniy Bandera
  • 5,991
  • 2
  • 29
  • 33
1

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

Jjreina
  • 2,633
  • 6
  • 33
  • 54
1

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

Greg Adamski
  • 1,099
  • 7
  • 7
  • I actually familiar with this, but it doesn't support RTSP :(. Any other suggestions? – SyRenity May 06 '09 at 16:48
  • 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. – Paul Gregoire Sep 03 '10 at 01:32
1

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

user106013
  • 11
  • 1