Java Video Grabber (with vlcj/libvlc)

This forum is about all development around libVLC.
Chromanoid
New Cone
New Cone
Posts: 1
Joined: 31 Oct 2009 12:35

Java Video Grabber (with vlcj/libvlc)

Postby Chromanoid » 31 Oct 2009 20:18

Hello,
I use libVLC to capture webcam output in java. It works very well, but my way doing it is a bit half-baked.
I use vlcj (Thank you very much @ sherington) and a custom DLL for accessing the video memory (heavily inspired by LibVLC_SampleCode_SDL Thank you very much @ Sam Hocevar). BTW Thank you super very much @ all VLC developers... :) This project is so superior!

Do you know other/better ways to access video memory in java (plattform independent and without using SDL)? Or is there even a way to receive the video frames via the canvas :?: ?

I have nearly no practice in C++ Programming or Java Native DLL access so I would be very pleased if you could tell me about best practices or optimizations i should use in my code... I uploaded everything to kenai.com (i use Netbeans). I packed JNA, VLCJ, SDL and VLC in there too, so you can start using/testing it with a win32 jre immediately. BTW: Is distribution of these libs ok as long as I distribute the licenses/readmes along with them?

http://kenai.com/projects/javavideograbber
https://svn.kenai.com/svn/javavideograbber~svn

SDL Video Memory Grabber:
http://kenai.com/projects/javavideograb ... SDLVMG.cpp
JNA Impl of SDLVMG.cpp as dll:
http://kenai.com/projects/javavideograb ... DLVMG.java
"Access Manager for LibSDLVMG":
http://kenai.com/projects/javavideograb ... abber.java
Simple Runnable that will start a minimally modified vlcj mediaplayer and pushes video frames as byte arrays to its "VideoCaptureListeners" (gets frames via VideoMemoryGrabber):
http://kenai.com/projects/javavideograb ... rvice.java

Best regards
Christian

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 42 guests