I guess you know VLC, there is also a JAVA bind­ing for Java avail­able to download.

Edit 2.11.10 // the jvlc repo can be found here: http://code.google.com/p/vlcj/

You can down­load the jvlc-core-1.0.0-SNAPSHOT.jar - or down­load the source from the git tree. I did two sim­ple examples:

Exam­ple 1:
DvbRip: con­nect to a Dream­box receiver and down­load a snap­shot image.

Exam­ple 2:
MovieS­nap: cre­ate screen­shots from a Movie.

Here is a closeup of the scene above, a movie poster mosaic cre­ated with movie screen­shots:

Down­load the java source and bin files here. Hint: you need a installed VLC to use this tool!

DvbRip para­me­ter:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#neophob.com DvbRip v0.1
para­me­ter:
url: file­source (needed argu­ment)
snap­shot­Size: size of snap­shot image, 0 means no resize
snap­shot­Dir: snap­shot direc­tory
noVer­bose: dis­able vlc ver­bose mes­sages
vlcPlug­in­Path: path to vlc plu­gin direc­tory
snap­shot­Pre­fix: pre­fix for snap­shot files
noVideoOut: dis­able video out­put
crop: crop video, aspect ration 1:1
noS­nap­shot­Pre­view: do not dis­play snap­shot pre­view
init­Wait­Time: wait until con­nec­tion is estab­lished, default 3000ms</code>

exam­ple:
java –class­path .;%class­path%;jvlc-core-1.0.0-SNAPSHOT.jar;jna.jar DvbRip snap­shot­Pre­fix=p1 url=http://192.168.111.15:8001/1:0:1:3:45:1:FFFF018A:0:0:0: snap­shot­Dir=C: init­Wait­Time=5000

MovieS­nap parameters:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#neophob.com MovieS­nap v0.1
para­me­ter:
url: file­source (needed argu­ment)
snap­shot­Size: size of snap­shot image (128)
pic­sPer­Movie: get # of snap­shot per file (1500)
snap­shot­Dir: path where to save the snap­shots
noVer­bose: dis­able vlc ver­bose mes­sages
vlcPlug­in­Path: path to vlc plu­gin direc­tory
snap­shot­Pre­fix: pre­fix for snap­shot files
noVideoOut: dis­able video out­put
crop: crop video, aspect ration 1:1
noS­nap­shot­Pre­view: do not dis­play snap­shot pre­view</code>

exam­ple:
java –class­path .;%class­path%;jvlc-core-1.0.0-SNAPSHOT.jar;jna.jar MovieS­nap snap­shot­Size=256 noVer­bose noVideoOut crop vlcPlug­in­Path=c:ProgrammeVideoLANVLCplugins url=c:movie.avi

Last hint for Java devs: jVLC needs the JNA (Java Native Access) to work.