[edit3] start with link collection here for setting up jvlc under windows:
viewtopic.php?f=14&t=50774
[/edit3]
[edit2]
the binary IS working.
VlcClient is in your actual folder.
java run command
java -cp .;jvlc-core-0.9.0-SNAPSHOT-20080727.jar VlcClient
(i'm using VlcClient from the source, not from jar... i think you can get this source and examples from
http://nightlies.videolan.org/build/source/
but i'm not sure... look in the jar for bindings/java folder)
edit vlcrc file (which is a hidden file, make it visible first in windows explorer - tools - folder options - view - show hidden files)
somewhere located similar to
C:\Documents and Settings\Lukas Meier\Application Data\vlc\vlcrc
edit 2 lines
# boolean (Plugin-Cache benutzen)
plugins-cache=0
# string (Modulsuchpfad)
plugin-path=C:\Program Files\VideoLAN\VLC\plugins
e.g. your plugin folder of vlc with all necessary dlls. Remember to remove # of the line beginning!
[ / edit2]
[edit ]
Working description to get JVLC running in eclipse:
e.g. build vlc and jvlc urself...
i got it working in eclipse... no idea how to start it outside from there tbh. So if someone can help me out and tell me how to export a running jar for different system from eclipse, please enlighten me. [edit1b] the java command from eclipse is
"C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe" -Dfile.encoding=Cp1252 -classpath "E:\programs\eclipse\workspace\jvlc-samples-client\target\classes;C:\Documents and Settings\Lukas Meier\.m2\repository\com\jna\jna\3.0.2\jna-3.0.2.jar;E:\programs\eclipse\workspace\jvlc-core\target\test-classes;E:\programs\eclipse\workspace\jvlc-core\target\classes;C:\Documents and Settings\Lukas Meier\.m2\repository\commons-io\commons-io\1.3.2\commons-io-1.3.2.jar;C:\Documents and Settings\Lukas Meier\.m2\repository\junit\junit\4.4\junit-4.4.jar;C:\Documents and Settings\Lukas Meier\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Documents and Settings\Lukas Meier\.m2\repository\org\slf4j\slf4j-api\1.5.2\slf4j-api-1.5.2.jar;C:\Documents and Settings\Lukas Meier\.m2\repository\org\slf4j\slf4j-log4j12\1.5.2\slf4j-log4j12-1.5.2.jar;C:\Documents and Settings\Lukas Meier\.m2\repository" VlcClient
[ /edit1b]
Second good thing would be a complete! package (e.g. zip file) with all necessary files etc to import into eclipse with short docu, so not everybody has to compile jvlc himself.
so the complete guide would look like this:
What i've done so far is:
Today it's the 27. August 2008
get a 0.9* build and install (i dont recall which version i have)
http://nightlies.videolan.org/build/win32/
Use the exe installer.
Get maven for windows
http://maven.apache.org/download.html
or directly http://www.apache.org/dyn/closer.cgi/ma ... .9-bin.zip
Follow the installation procedure which was:
Windows 2000/XP
1. Unzip the distribution archive, i.e. apache-maven-2.0.9-bin.zip to the directory you wish to install Maven 2.0.9. These instructions assume you chose "C:\Program Files\Apache Software Foundation\" . The subdirectory apache-maven-2.0.9 will be created from the archive.
2. Add the M2_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding the M2_HOME variable in the user variables with the value "C:\Program Files\Apache Software Foundation\apache-maven-2.0.9" . Note : for Maven < 2.0.9, be sure that the M2_HOME doesn't have a '\' as last character.
3. In the same dialog, add the M2 environment variable in the user variables with the value "%M2_HOME%\bin" .
5. In the same dialog, update/create the Path environment variable in the user variables with the value "%M2%;%Path%" to add maven available in the command line.
6. In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. "C:\Program Files\Java\jdk1.5.0_02" and that "%JAVA_HOME%\bin" is in your Path environment variable.
7. Open a new command prompt (Winkey + R then type "cmd" ) and run "mvn --version" to verify that it is correctly installed.
Get git for windows
the only for me working way to do this was to get cygwin
http://www.cygwin.com/setup.exe
in the installation procedure you'll be prompted to select packages (that was at the point where I actually did not know what they wanted from me)
Go to the devel packages and select git
now start cygwin, you'll be in the console mode
now enter
git clone git://git.videolan.org/vlc.git
exit the command line
now go using the command prompt to your vlcgit clone which is somewhere in your cygwin installation dir (default is c:/cygwin *yeah right everybody installs into c:/*... so mine was: D:\programs\cygwin\home\Lukas Meier\vlc)
To start your command prompt press
Windowskey+R (or press start - run)
then type
cmd
press enter
Now you should be in your command prompt in your cygwin dir. Find your git clone of vlc and go into the bindings/java folder which was at my computer at D:\programs\cygwin\home\Lukas Meier\vlc\bindings\java
Write:
mvn -Dmaven.test.skip=true install
You'll get some errors when u do it with tests... so we skip em. I know of a linux programmer that those are not of importance as he used JVLC for himself.
Now it downloads and makes the jvlc files
go to the bindings folder
do
mvn eclipse:eclipse
now you can import the hole stuff into eclipse
in eclipse do
File
import
existing project, then choose the folder where the bindings are
you should get jvlc core and jvlc sample client
now u cant compile cause of some missing variables...
now from our friend called GodLike Smads
"You will need to ad the M2_REPO path into the jvlc-core project. This is under properties->Java Build Path->Libraries(tab)->Add Variable(button)
M2_REPO = (something like)C:/Documents and Settings/username/.m2/repository
There is example code in the jvlc-core project. If you import projects from the bindings/java directory it will find jvlc-core and jvlc-samples-client.
You will still need to make sure the args are correct for the jvlc = new JVLC(args) call."
e.g. in VlcClient.java
String[] args = new String[] { "-vvv", "--plugin-path=c:\\Program Files\\VideoLAN\\VLC\\plugins" };
jvlc = new JVLC(args); //replacing --> jvlc = new JVLC();
and wow
HA! You can use JVLC.
Bug me if it's not working for ya.
[ /edit]
from here is the old post
--------------------
I almost successfully tried to get the up to date version of JVLC running
still... it does not work! so dont try to do what i did to end at the same error message when trying to run the example.
The error i get is:
Code: Select all
C:\Program Files\VideoLAN VLC>java -cp jna-3.0.2.jar;jvlc-core-0.9.0-SNAPSHOT.ja
r;. -Djna.library.path="c:/program files/VideoLan VLC/plugins";. VLCExample
== Starting VLCExample ==
Creating a JVLC instance without args[00000001] main libvlc debug: VLC media pla
yer - version 0.9.0-test2-20080702-1913 Grishenko - (c) 1996-2008 the VideoLAN t
eam
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-
debug' '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-shared-libvlc' '
--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--disable-gtk' '--disable
-dca' '--disable-hal' '--disable-libcdio' '--enable-nls' '--enable-skins2' '--en
able-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-zlib' '
--with-ffmpeg-config-path=/usr/win32/bin' '--enable-faad' '--enable-flac' '--ena
ble-theora' '--enable-twolame' '--enable-dvdread' '--disable-vcdx' '--disable-cd
dax' '--en
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc error: no memcpy module matched "any"
[00000007] main access error: no access module matched "file"
[00000006] main input error: open of `file/xspf-open://C:\Documents and Settings
\Lukas Meier\Application Data\vlc\ml.xspf' failed: could not create access: no a
ccess module matched "file"
[00000010] main interface error: no interface module matched "hotkeys,none"
[00000010] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
... done.
Media instance paused. MRL: D:\TempD\Seven.Sunny.Days.cd1.avi
[00000013] main access error: no access module matched "any"
[00000011] main input error: open of `D:\TempD\Seven.Sunny.Days.cd1.avi' failed:
could not create access: no access module matched "any"
------------------------------------------------------------------------------------------------------------------------------------------------------
What i've done so far is:
Today it's the 3. july 2008
get latest build and install
http://nightlies.videolan.org/build/win32/latest/
Use the exe installer.
Get maven for windows
http://maven.apache.org/download.html
or directly http://www.apache.org/dyn/closer.cgi/ma ... .9-bin.zip
Follow the installation procedure which was:
Windows 2000/XP
1. Unzip the distribution archive, i.e. apache-maven-2.0.9-bin.zip to the directory you wish to install Maven 2.0.9. These instructions assume you chose "C:\Program Files\Apache Software Foundation\" . The subdirectory apache-maven-2.0.9 will be created from the archive.
2. Add the M2_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding the M2_HOME variable in the user variables with the value "C:\Program Files\Apache Software Foundation\apache-maven-2.0.9" . Note : for Maven < 2.0.9, be sure that the M2_HOME doesn't have a '\' as last character.
3. In the same dialog, add the M2 environment variable in the user variables with the value "%M2_HOME%\bin" .
5. In the same dialog, update/create the Path environment variable in the user variables with the value "%M2%;%Path%" to add maven available in the command line.
6. In the same dialog, make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. "C:\Program Files\Java\jdk1.5.0_02" and that "%JAVA_HOME%\bin" is in your Path environment variable.
7. Open a new command prompt (Winkey + R then type "cmd" ) and run "mvn --version" to verify that it is correctly installed.
Get git for windows
the only for me working way to do this was to get cygwin
http://www.cygwin.com/setup.exe
in the installation procedure you'll be prompted to select packages (that was at the point where I actually did not know what they wanted from me)
Go to the devel packages and select git
now start cygwin, you'll be in the console mode
now enter
git clone git://git.videolan.org/vlc.git
exit the command line
now go using the command prompt to your vlcgit clone which is somewhere in your cygwin installation dir (default is c:/cygwin *yeah right everybody installs into c:/*... so mine was: D:\programs\cygwin\home\Lukas Meier\vlc)
To start your command prompt press
Windowskey+R (or press start - run)
then type
cmd
press enter
Now you should be in your command prompt in your cygwin dir. Find your git clone of vlc and go into the bindings/java folder which was at my computer at D:\programs\cygwin\home\Lukas Meier\vlc\bindings\java
Write:
mvn -Dmaven.test.skip=true install
You'll get some errors when u do it with tests... so we skip em. I know of a linux programmer that those are not of importance as he used JVLC for himself.
Now it downloads and makes the jvlc files
What i did was to copy the bindings folder to my real vlc installation dir (not the source dir, but the dir with all the exe files etc). At my computer this was
C:\Program Files\VideoLAN VLC
So i put there the folder bindings
Next i did was copy the VLCExample.java from the C:\Program Files\VideoLAN VLC\bindings\java\core\src\main\java\org\videolan\jvlc\example folder to the C:\Program Files\VideoLAN VLC\ folder and removed the package line. Then I changed the file access of vlcexample which was unix based to a windowslike line (e.g. c:\a.mov)
I download the right jna version 3.0.2 (the up to date version will NOT work)
this was found here
https://jna.dev.java.net/source/browse/ ... r?rev=HEAD
I renamed the jar to the version so i know what i'm having
jna.jar to jna-3.0.2.jar
Next I copied the jvlc-core-0.9.0-SNAPSHOT.jar from C:\Program Files\VideoLAN VLC\bindings\java\core\target\jvlc-core-0.9.0-SNAPSHOT.jar to my C:\Program Files\VideoLAN VLC\ folder
I had to create a copy of libvlc.dll in the C:\Program Files\VideoLAN VLC\ and named this copy vlc.dll because I got an error otherwise
Compilation is achieved with
C:\Program Files\VideoLAN VLC>javac -cp .;jna-3.0.2.jar;jvlc-core-0.9.0-SNAPSHOT.jar VLCExample.java
I run the example with
C:\Program Files\VideoLAN VLC>java -cp jna-3.0.2.jar;jvlc-core-0.9.0-SNAPSHOT.jar;. -Djna.library.path="c:/program files/VideoLan VLC/plugins";. VLCExample
Then i get those errors:
C:\Program Files\VideoLAN VLC>java -cp jna-3.0.2.jar;jvlc-core-0.9.0-SNAPSHOT.ja
r;. -Djna.library.path="c:/program files/VideoLan VLC/plugins";. VLCExample
== Starting VLCExample ==
Creating a JVLC instance without args[00000001] main libvlc debug: VLC media pla
yer - version 0.9.0-test2-20080702-1913 Grishenko - (c) 1996-2008 the VideoLAN t
eam
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-
debug' '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-shared-libvlc' '
--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--disable-gtk' '--disable
-dca' '--disable-hal' '--disable-libcdio' '--enable-nls' '--enable-skins2' '--en
able-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-zlib' '
--with-ffmpeg-config-path=/usr/win32/bin' '--enable-faad' '--enable-flac' '--ena
ble-theora' '--enable-twolame' '--enable-dvdread' '--disable-vcdx' '--disable-cd
dax' '--en
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc error: no memcpy module matched "any"
[00000007] main access error: no access module matched "file"
[00000006] main input error: open of `file/xspf-open://C:\Documents and Settings
\Lukas Meier\Application Data\vlc\ml.xspf' failed: could not create access: no a
ccess module matched "file"
[00000010] main interface error: no interface module matched "hotkeys,none"
[00000010] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
... done.
Media instance paused. MRL: D:\TempD\Seven.Sunny.Days.cd1.avi
[00000013] main access error: no access module matched "any"
[00000011] main input error: open of `D:\TempD\Seven.Sunny.Days.cd1.avi' failed:
could not create access: no access module matched "any"
I tried other things to access the media like
c:\\TempD\\Seven.Sunny.Days.cd1.avi
or
file:///c://bla.mov
and other things
all leading to smth similar like
[00000013] main access error: no access module matched "any"
[00000011] main input error: open of `D:\TempD\Seven.Sunny.Days.cd1.avi' failed:
could not create access: no access module matched "any"