Problems building JVLC.DLL

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
ballofking
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Dec 2006 18:24

Postby ballofking » 15 Jan 2007 14:22

:cry: Excuse me,did you send me the e-mail?Because i can't find the e-mail.

My E-mail Address s2131172@ss24.mcu.edu.tw

ballofking
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Dec 2006 18:24

Postby ballofking » 17 Jan 2007 21:45

Ahmdprog,thanks for your help.I received the files.It worked but still many bugs.I think i need to find another way to finish my ap.Anyway,thanks so much.

otrofox
New Cone
New Cone
Posts: 7
Joined: 25 Jan 2007 18:20

Postby otrofox » 25 Jan 2007 18:29

I finally could compile vlc-0.8.6 using cross-platform compiler from cygwin. Of course I had to define the usleep function in jni-playlist.cc and change a lot of include paths and evironment variables JAVA_HOME and so... but... after all, it doesn't seem to work fine.

I mean, it works, yes, it works but... the panel where the video should appear, misteriously, becomes a window and move itself automatically making a "cascade effect" over my desktop. The name of the window is "VLC (hardware YUV overlay DirectX output).

After some stops&loads, the jpanel works fine but sometimes I get a JVM FATAL ERROR.

Concluding, there are a lot of error and it's not stable but... we are on the right way!!! for sure!!!

Does anybody know if we'll have a stable version soon?

Best regards

otrofox
New Cone
New Cone
Posts: 7
Joined: 25 Jan 2007 18:20

Postby otrofox » 26 Jan 2007 12:33

Just a point. When using the precompiled JVLC.DLL, the examples work fine but, the API offered is not as powerfull as the one included with the last version (fullscreen, setVideoSize, etc.).
On the other hand, those new features don't work at all in my VLC0.8.6 build but, at least, they are available.

Any ideas?

ahmdprog
Blank Cone
Blank Cone
Posts: 29
Joined: 25 Nov 2006 00:01

Postby ahmdprog » 02 Feb 2007 12:48

hi otrofox,

how you did setup for cross compiler, actually I am not much familiar of setup cross compiler, i tried to setup using Fedora core 6, but many errors and not success. which operating system you used and how you did setup for that.

many thanks,

VID123
New Cone
New Cone
Posts: 1
Joined: 05 Feb 2007 10:09

Exceptions using jvlc project.

Postby VID123 » 06 Feb 2007 14:01

Hi Ahmad,

I downloaded the jclv project as you described below.
Now when I am trying to create an output video stream using this project I get an exception:
Exception in thread "main" org.videolan.jvlc.VLCException: thrown from C code
e.g. jvlc.addBroadcast or jvlc.setInput

Have you got an idea what could be the cause here?

Regards,

Henk.




Hi,

First of all, I apologize because I didn’t tell you some guideline when you are planning to compile and have JVLC working:

1- You need set setup couple of coffee cubs near you.
2- If you are smoker, then you need to buy some packages for this process.
3- Do the compilation and configuration while you are in closed room, because if any compilation error maybe you will harm one of your family.
:lol: :lol: :lol:

Kidding stoped.

Now, if you are interesting of having working JVLC, then it is better to download the current one that is a viable at website

http://phmorin.free.fr/jvlc-win32-060612.zip

This one is working pretty fine in windows (although it has bugs).

I recommend using the latest sun java development kit, the latest one is JDK 6
http://java.sun.com/javase/downloads/index.jsp

Then, the required files from the downloaded package are

1- org directory
2- plugins directory
3- and JVLC.DLL
That is all.

Now you need to have some experience to make and compile java application.

Ok, no problem, I will explain more.

If you are using Netbeans(Netbeans.org) for java development,

Crate new project, for example (jvlcproject). Then this project will be created in the following directory( by default)

C:\Documents and Settings\(your windows user name)\ jvlcproject

Then,
Copy the plugins directory + jvlc.dll to the following directory

C:\Documents and Settings\(your windows user name)\ jvlcproject

Then,

Copy the org directory to the following directory
C:\Documents and Settings\(your windows user name)\ jvlcproject\src\ jvlcproject

Then at your main class, do the following code for example

package jvlcproject;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import org.videolan.jvlc.JVLC;
import org.videolan.jvlc.VLCException;

public class Main
{

public Main()
{

}
public static void main( String[] Args )
{
String[] args = new String[1];
args[0] = "-vvv";
boolean videoInput = false;
JVLC jvlc = new JVLC(Args);
try
{
jvlc.playlist.add("file://c:\\a.avi", "a.avi");
jvlc.playlist.add("file://c:\\c.avi", "c.avi");
jvlc.playlist.play( -1 , null );
}
catch (VLCException e)
{
e.printStackTrace();
}
while (! jvlc.isInputPlaying()) ;
while (! jvlc.hasVout() );




try
{
Thread.sleep(2500);
if (jvlc.hasVout()) videoInput = true;
}
catch (InterruptedException e)
{
e.printStackTrace();
}

if (videoInput)
{
try
{
System.out.print(jvlc.video.getWidth());
System.out.print("x");
System.out.println(jvlc.video.getHeight());
}
catch (VLCException e)
{
e.printStackTrace();
}
}
try
{
if (videoInput)
{
System.out.print("Fullscreen... ");
jvlc.video.setFullscreen(true);
Thread.sleep(3000);
System.out.println("real size.");
jvlc.video.setFullscreen(false);
System.out.print("Taking snapshot... ");
jvlc.video.getSnapshot( System.getProperty( "user.dir" ) + "/snap.png");
System.out.println("taken. (see " + System.getProperty( "user.dir" ) + "/snap.png )");
Thread.sleep(2000);
System.out.println("Resizing to 300x300");
jvlc.video.setSize(300, 300);

}
System.out.print("Muting...");
jvlc.audio.setMute(true);
Thread.sleep(3000);
System.out.println("unmuting.");
jvlc.audio.setMute(false);
Thread.sleep(3000);
System.out.println("Volume is: " + jvlc.audio.getVolume());
System.out.print("Setting volume to 150... ");
jvlc.audio.setVolume(150);
System.out.println("done");
Thread.sleep(3000);
System.out.println("INPUT INFORMATION");
System.out.println("-----------------");
System.out.println("Total length (ms) :\t" + jvlc.input.getLength());
System.out.println("Input time (ms) :\t" + jvlc.input.getTime());
System.out.println("Input position [0-1]:\t" + jvlc.input.getPosition());
if (videoInput)
System.out.println("Input FPS :\t" + jvlc.input.getFPS());


}

catch (Exception e)
{
System.out.println("Something was wrong. I die :(.");
jvlc.destroy();
}

System.out.println("Everything fine ;)");
System.out.println("Playing next item");
try
{
jvlc.playlist.next();
}
catch (VLCException e)
{
e.printStackTrace();
}

try
{
Thread.sleep(3000);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
jvlc.destroy();
return;
}
}


According these process, the you have successfully using JVLC with your java application. :wink:

Regards,
Ahmad.

ahmdprog
Blank Cone
Blank Cone
Posts: 29
Joined: 25 Nov 2006 00:01

Postby ahmdprog » 06 Feb 2007 14:50

hi,

first of all, you need to put at your mind that the JVLC is not stable at windows.
for your problem, you need to ensure that the JVLC.DLL and plugins directory is the same directory of your project. and what is the tool you are using to develop Java. some tools they don't consider the classPath correctly.

anyway, for people that interesting in JVLC, i have build stable one, and i am now at testing stage. but i don't know how to uploaded to somewhere to make it a viable for all.


regards,
Ahmad.

bioye
New Cone
New Cone
Posts: 1
Joined: 07 Feb 2007 14:57
Location: Lagos, Nigeria
Contact:

Can you email the stable release to me?

Postby bioye » 07 Feb 2007 15:08

Ahmad, well done for the work on the jvlc stable version. Can you mail it to me at bioyexx@yahoo.com? I am working on adding video support to a java-based conferencing solution (webhuddle).

Thank you.
the emperor has no clothes!

GX
New Cone
New Cone
Posts: 2
Joined: 02 Feb 2007 11:29
Location: Netherlands

Please e-mail me you're stable JVLC.

Postby GX » 08 Feb 2007 10:37

Hi Ahmad,

I've been struggeling with JVLC for some time to manage and define video broadcasts from my java program.
If you can send me you're stable JVLC at videostuf@gmail.com
I'd be very gratefull. :D


Thanks,

Maarten

vdaburon
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 14:46

Postby vdaburon » 08 Feb 2007 15:32

hi,

first of all, you need to put at your mind that the JVLC is not stable at windows.
for your problem, you need to ensure that the JVLC.DLL and plugins directory is the same directory of your project. and what is the tool you are using to develop Java. some tools they don't consider the classPath correctly.

anyway, for people that interesting in JVLC, i have build stable one, and i am now at testing stage. but i don't know how to uploaded to somewhere to make it a viable for all.


regards,
Ahmad.
Hello Ahmad,

I think you can contact the 2 developpers of jvlc :
phmo95 - Philippe Morin (phmorin[----] at [ -----] free [------] dot [------] fr)
or
littlejohn (filippo [-----] at [----] carone ------] dot ------] org)

Sorry, i did not find their email at videolan.org
But may be phmo95 at [----] videolan [------] dot [------] org, and littlejohn at [----] videolan [------] dot [------] org.

When you say "stable" version, which version it is ? like vlc 0.8.6a with java option and jvlc at specific date

Please, could you send the all vlc dll, the jvlc.dll and jvcl.jar : only one directly operational file zip for Windows OS.

Thanks Ahmad.

Vincent D.

ahmdprog
Blank Cone
Blank Cone
Posts: 29
Joined: 25 Nov 2006 00:01

Postby ahmdprog » 08 Feb 2007 20:08

gentlemen,

I have asked these people for help when i was compiling in windows, but they didn't offer anything ... unfortunately.

Mr. Filippo filippo@carone.org
Mr. Philippe phmorin@free.fr

they claim that the JVLC is very easily compiling in Cross compilation. but actually, it is very very hard job to compile JVLC using cross compilation.
epically i am not professional at Linux.
i tried to write document describing how to build using Cross compilation with JVLC, but unfortunately is is very complex to build it from scratch.

when any one asked them( JVLC developer) about building in cross compiler they always saying go to http://phmorin.free.fr/jvlc/JVLC_cross_compilati.html
but this page have totally nothing to describe, even they have mistake in writing the binding switch.... they put
--enable-bindings-java insted of --enable-java-bindings :lol: :lol: :lol: :lol: so how this page is helpful !!!!!.

all of us we a ware of problems of JVLC that it is not stable, and actually i am concentrating to know why the JVM crashed sometimes.

recently, i have build JVLC with vlc-0.8.6a with the latest ffmpeg svn and even with AMR.

and i got pretty good and stable, but unfortunately for some criteria the JVM crashed, and now I am concentrating to solve the problem.

once I have confident one, I will reform the JVLC and try to build stable Jar file for all.

please, I am not much familiar with the structure C code of VLC, if there is any professional guy who know the C structure of VLC, please let me know, it will make building JNI very easier.

regards,
Ahmad.

AJ
New Cone
New Cone
Posts: 3
Joined: 16 Feb 2007 18:15

JVLC

Postby AJ » 27 Feb 2007 11:36

I run the example you mention above and it works but the main problem is when i run this example using netbean my computer getting slow and also i cann see the video just audio...i dont know why is it the jvlc.dll size is 13 mb and compiling jvlc through cygwin is nightmare l... any one has working example in which jvl used as dynamic not static as above mention.......

any one know any other open source libraries for playing mpg4 format for java as video lan is not reliable :(
please email me on m_amjad16@yahoo.co.uk


Thanks

ahmdprog
Blank Cone
Blank Cone
Posts: 29
Joined: 25 Nov 2006 00:01

Postby ahmdprog » 01 Mar 2007 06:35

hi,

Video lan is reliable, and you need to understand that Multimedia in Java is not easy job, because the JVM is very slow in native processing, recently they developed better performance one, but I don't think that any success for implementing MP4 in pure java.

I have seen many H263 and H264 implementation in java purely, but it is not success at all.


so, what is required from you, is to try with JVLC, I know that it is not much scalable in windows, but I have tried Old VLC in Linux with Java and it is working excellent.

you need to be patient, since I think the JVLC are doing something good for us. :wink: hopefully

Regards,
Ahmad

AJ
New Cone
New Cone
Posts: 3
Joined: 16 Feb 2007 18:15

Postby AJ » 01 Mar 2007 19:05

Would you like to send me the stable jvlc if you have to my email address

m_amjad16@yahoo.co.uk


Thanks

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Postby littlejohn » 13 Mar 2007 23:35

Would you like to send me the stable jvlc if you have to my email address

m_amjad16@yahoo.co.uk


Thanks
Please take a look at the news windows release in the download section of the jvlc site an report any issues you find.

Cheers

AJ
New Cone
New Cone
Posts: 3
Joined: 16 Feb 2007 18:15

HI

Postby AJ » 21 Mar 2007 19:50

I have downloaded the new version but it does have any example and i cannot run it with previous example as i having different problem using VLCExample any body any idea how to use thanks below the error log

init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Administrator\jvlcproject\build\classes
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:97: cannot find symbol
symbol : method getChannel()
location: class org.videolan.jvlc.Audio
int currentChannel = jvlc.audio.getChannel();
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:98: cannot find symbol
symbol : method getTrack()
location: class org.videolan.jvlc.Audio
System.out.println("Audio track number: " + jvlc.audio.getTrack());
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:99: cannot find symbol
symbol : method getChannel()
location: class org.videolan.jvlc.Audio
System.out.println("Audio channel info: " + jvlc.audio.getChannel());
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:101: cannot find symbol
symbol : method setChannel(int)
location: class org.videolan.jvlc.Audio
jvlc.audio.setChannel(AudioIntf.LEFT_CHANNEL);
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:105: cannot find symbol
symbol : method setChannel(int)
location: class org.videolan.jvlc.Audio
jvlc.audio.setChannel(AudioIntf.RIGHT_CHANNEL);
C:\Documents and Settings\Administrator\jvlcproject\src\VLCExample.java:109: cannot find symbol
symbol : method setChannel(int)
location: class org.videolan.jvlc.Audio
jvlc.audio.setChannel(currentChannel);
6 errors
BUILD FAILED (total time: 0 seconds)

vdaburon
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 14:46

Postby vdaburon » 30 Mar 2007 10:55

hello,

I have installed the jvlc-0.9.0-20070310-win32 on my Windows 2000 PC but i have error : ""Le point d'entrée de procédure freeaddrinfo est introuvable dans la bibliothèque de liaisons dynamique WS_32.DLL",

when i click on vlc.exe or when i try to launch the VLCExample
--------------------------------------
set JAVA_HOME=C:\j2sdk\jdk1.5.0_10
%JAVA_HOME%\bin\java -classpath . VLCExample
--------------------------------------

javascript:emoticon(':(')
Sad


Vincent.
Would you like to send me the stable jvlc if you have to my email address

m_amjad16@yahoo.co.uk


Thanks
Please take a look at the news windows release in the download section of the jvlc site an report any issues you find.

Cheers
:(

vdaburon
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 14:46

Postby vdaburon » 02 Apr 2007 12:16

Hello,

I try on a Windows 2003 server, i have some problems but i can see the first image of my video.

I will try on my personal Windows XP at home.


Vincent
hello,

I have installed the jvlc-0.9.0-20070310-win32 on my Windows 2000 PC but i have error : ""Le point d'entrée de procédure freeaddrinfo est introuvable dans la bibliothèque de liaisons dynamique WS_32.DLL",

when i click on vlc.exe or when i try to launch the VLCExample
--------------------------------------
set JAVA_HOME=C:\j2sdk\jdk1.5.0_10
%JAVA_HOME%\bin\java -classpath . VLCExample
--------------------------------------

javascript:emoticon(':(')
Sad


Vincent.
Would you like to send me the stable jvlc if you have to my email address

m_amjad16@yahoo.co.uk


Thanks
Please take a look at the news windows release in the download section of the jvlc site an report any issues you find.

Cheers
:(

vdaburon
New Cone
New Cone
Posts: 9
Joined: 08 Feb 2007 14:46

Postby vdaburon » 02 Apr 2007 14:02

Hello,

I find informations about the freeaddrinfo function missing on Windows 2000.

http://msdn2.microsoft.com/en-us/library/ms737931.aspx
-------------------- extract -------------------------------------------
The freeaddrinfo function was added to the Ws2_32.dll on Windows XP and later. To execute an application using this function on earlier versions of Windows (Windows 2000, Windows NT, and Windows Me/98/95), then you must include the Ws2tcpip.h file and also include the Wspiapi.h file. When the Wspiapi.h include file is added, the freeaddrinfo function is defined to the WspiapiFreeAddrInfo inline function in the Wspiapi.h file.
-------------------------------------------------------------------------

I don't know if it's easy to compile with Ws2tcpip.h and Wspiapi.h files ?

I use Windows 2000 on my professional laptop.

Vincent
hello,

I have installed the jvlc-0.9.0-20070310-win32 on my Windows 2000 PC but i have error : ""Le point d'entrée de procédure freeaddrinfo est introuvable dans la bibliothèque de liaisons dynamique WS_32.DLL",

when i click on vlc.exe or when i try to launch the VLCExample
--------------------------------------
set JAVA_HOME=C:\j2sdk\jdk1.5.0_10
%JAVA_HOME%\bin\java -classpath . VLCExample
--------------------------------------

javascript:emoticon(':(')
Sad


Vincent.
Would you like to send me the stable jvlc if you have to my email address

m_amjad16@yahoo.co.uk


Thanks
Please take a look at the news windows release in the download section of the jvlc site an report any issues you find.

Cheers
:(

littlejohn
Blank Cone
Blank Cone
Posts: 73
Joined: 04 May 2006 14:59

Postby littlejohn » 02 Apr 2007 14:05

Hello,

I find informations about the freeaddrinfo function missing on Windows 2000.

http://msdn2.microsoft.com/en-us/library/ms737931.aspx
-------------------- extract -------------------------------------------
The freeaddrinfo function was added to the Ws2_32.dll on Windows XP and later. To execute an application using this function on earlier versions of Windows (Windows 2000, Windows NT, and Windows Me/98/95), then you must include the Ws2tcpip.h file and also include the Wspiapi.h file. When the Wspiapi.h include file is added, the freeaddrinfo function is defined to the WspiapiFreeAddrInfo inline function in the Wspiapi.h file.
-------------------------------------------------------------------------

I don't know if it's easy to compile with Ws2tcpip.h and Wspiapi.h files ?

I use Windows 2000 on my professional laptop.

Vincent
Hi Vincent,
thanks for the pointer. I don't know either how to integrate the missing functions support in jvlc, but I'll try to find a way to do it.

Of course, any windows developer help will be really appreciated.

Cheers,
lj

adanecito
Cone that earned his stripes
Cone that earned his stripes
Posts: 151
Joined: 06 Mar 2007 17:59

Postby adanecito » 03 Apr 2007 16:24

Hi littlejohn,

I was able to figure it out an I am running on Windows 2000 Professional.

What I did was find all the locations in the code where socket2.h is being referred to and added directly below it wstcpip.h. Do not ask me why I did not add wspiapi.h except I was getting tons of errors when compiling.

So, if littlejohn can get it to work repeatably by doing that it would be great.
Also, I had to add --CLASSPATH="./" as a javac parameter to the makefile in the bindings/java folder otherwise it the make did not build becuase it could not find the org/videolan/jvlc package.

Hopefully littlejohn at least can take care of the classpath issue in the builds.

There is at least 2 issues with 0.9.0 nightly builds for me:

1. Video window pops out of the jvlccanvas.
2. Video running way too fast and no audio.

Both are being looked at right now. Hopefully #2 gets resolved quickly and #1 if ANYBODY and I mean ANYBODY has it working under windows I would really like to know.

Regards,
-Tony

Regards,
-Tony

otrofox
New Cone
New Cone
Posts: 7
Joined: 25 Jan 2007 18:20

Postby otrofox » 07 May 2007 15:48

hi otrofox,

how you did setup for cross compiler, actually I am not much familiar of setup cross compiler, i tried to setup using Fedora core 6, but many errors and not success. which operating system you used and how you did setup for that.

many thanks,
I'm a completely newbie for linux and cross compiling (and C++) but I could make the project following the guides on the JVLC site.
I'm cross compiling from Windows XP SP2 using cygwin.
Of course, I had to change a loooooot of things to make it work. For example, the usleep function is not defined and thinks like that but I found, on the guides, tricks to solve those problems.

Good luck.

reluto
New Cone
New Cone
Posts: 1
Joined: 21 May 2007 20:08

Postby reluto » 21 May 2007 20:38

Would you like to send me the stable jvlc if you have to my email address
reluto@gmail.com


Thanks


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests