Stream video in Java

Etam picture Etam · Apr 7, 2011 · Viewed 62.1k times · Source

What is the best way to record and stream live video to many clients? Are there any libraries?

Answer

Teddy Yueh picture Teddy Yueh · Apr 7, 2011

Xuggler is a nice opensource Java library that deals with streaming and modifying media on the fly.

http://www.xuggle.com/xuggler/

You can either use it with Red5 or if you want complete control, Xuggler has an IContainer class where each instance can be set up to stream media in or out. I've been able to restream media over UDP and TCP/IP.

Also, Xuggler will automatically split various streams for you to analyze/modify (video, audio, metadata) and is built using FFMPEG (tons of out of the box codecs) =).