video - Media player libraries in Java -
i evaluating libraries playing audio/video in java. it not need 100% java; java bindings native libraries ok. external application can controlled java fine, long can render video on java component.
the target platform linux. windows support plus, not required.
i have played vlc using vlcj bindings, , works pretty in general, keeps crashing when put under stress. have used mplayer in slave mode, looks good. i'd evaluate other options well.
these requirements:
- live playback of h.264, mpeg4 through rtp using rtsp. points mjpeg on http.
- able render video on java (swing or awt) component
- open source, , actively maintained
- stable, rock-solid
suggestions? advice?
ok, i've spent last month playing several options , these results:
vlc. first thought, keeps saying "plays everything". have used both vlcj java bindings, , built-in remote interface (
-i rc
). found work pretty in general, had issues. kept seeing ocassional crashes under heavy load (not vlcj's fault happens when using binary directly). i've found memory consumption relatively high when compared other options.mplayer. performs better vlc in experience, no crashes, , memory consumption lower. no java bindings, although slave mode works well.
gstreamer. powerful, flexible, while still easy started with. tried both java bindings , running
gst-launch
binary java. both approaches work remarkably well.xuggler looked good, seems have issues rtp (as stated in faq). since both gstreamer , mplayer worked well, did not past initial research.
i found gstreamer best solution given requirements, mplayer being second option.
Comments
Post a Comment