Hi ,how to make vlc activex under mingw?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
chiao
New Cone
New Cone
Posts: 5
Joined: 30 Sep 2006 04:58

Hi ,how to make vlc activex under mingw?

Postby chiao » 30 Sep 2006 05:30

I want to build vlc activex (axvlc.dll) under mingw by myself.
BTW:I don't wanna install vlc-0.8.5-win32.exe :)
after built, I put it in a CAB file through microsoft cabarc command. then I put the cab file under my web server.
when I want to stream media through IE ,I found it is ok to register and install axvlc.dll ,but failed to stream media file such as mp3.
the following is my test code :

/*************************/
html page:
...
function doGo()
{
var TargetUrl = "d:\\1.mp3";
var options = new Array(":vout-filter=deinterlace", ":deinterlace-mode=linear");
document.vlc.addTarget(TargetUrl, options, 4+8, -666);
};
...

/*************************/
config script before building axvlc.dll :

#! /bin/sh
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml -I/usr/local/include" \
LDFLAGS="-L/usr/win32/lib -L/usr/local/lib" \
./configure \
--disable-gtk \
--disable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--disable-hal \
--enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
--enable-real \
--enable-realrtsp \
--enable-activex \
--enable-release \
--enable-mostly-builtin \
--disable-kde --disable-qt \
--enable-wxwindows

can you tell me why not to stream media through axvlc.dll ? thanks a lot!

chiao
New Cone
New Cone
Posts: 5
Joined: 30 Sep 2006 04:58

I don't find relevant topic in this forum ,why?

Postby chiao » 30 Sep 2006 19:02

Is it easy or not ? anybody resolved it ?
It seems to be right when calling document.vlc.addtarget() through javascript in web page, but ... where is bug on earth?
can you help me?

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Seems that...

Postby digizar » 12 Oct 2006 12:35

...it is not a simple task. :?

Having a similar problem here. :roll:

Lack of info -caused by many independent developers obviously- is a great deal in the VLC/VLS/VLM software.

Sorry to say that - and it might be just my personal impression.
Though we have three people here,
understanding 'nothing what the hell is going on there'.

Again sorry, the product looks promising,
but the documentation is a mess,
so in general it might/must? be denied by professionals.

:idea: A detailed up-to-date description -how to compile/handle
that source- would be required. For ALL affected platforms.
Kiss: Keep It Simple Stupid.


Just my 2 cents.
Groet uit Netherlands - digi
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 12 Oct 2006 22:45

Your problem lies mostly with the fact that you do not deploy the modules with axvlc.dll, therefore the dll cannot execute any actions as it cannot find any module to process the requests.
May i point out that this issue is actually documented in the README.TXT that ships with the activex source.
Before you complain about the lack of documentation, don't forget that you are getting this stuff for free and that this software is open source and written by a community of developers who are mostly writing this stuff in their spare time (including me).
So why don't you participate (yes, I mean YOU) and help us improve the product by at least helping us with the documentation, there is a wiki site waiting for your prose

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Re: Hi ,how to make vlc activex under mingw?

Postby xiaobei » 12 Feb 2007 10:23


config script before building axvlc.dll :

#! /bin/sh
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml -I/usr/local/include" \
LDFLAGS="-L/usr/win32/lib -L/usr/local/lib" \
./configure \
--disable-gtk \
--disable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--disable-hal \
--enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
--enable-real \
--enable-realrtsp \
--enable-activex \
--enable-release \
--enable-mostly-builtin \
--disable-kde --disable-qt \
--enable-wxwindows

can you tell me why not to stream media through axvlc.dll ? thanks a lot!
Hello chiao
I suffer the same proble as you . Did you solusion sovled it?
Another question : how can I configure the set under mingw?
Thanks!

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 12 Feb 2007 15:21

I solved it when I EXACTLY followed the instructions given in

INSTALL.win32

I used the cygwin version.

Well, the compilation is really easy --
once you snap the idea behind that whole beast.
And that took me several weeks.

Not to blame it on the developers.
That vlc-machine is a real nice beast.

Have fun - digi

REPEAT:
FOLLOW THE INSTRUCTIONS EXCATLY !
JUST DO NOT THINK!
BLINDLY FOLLOW THE INSTRUCITONS STEP BY STEP.
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 13 Feb 2007 06:33

I solved it when I EXACTLY followed the instructions given in

INSTALL.win32

.
Hello digizar
Thanks for your response.
My purpose is that of compiling the axtivex
I install cygwin on my pc .The source of activex has be put under the path :/home/administrator/activex .When enter the file ,I find an Makefile .Runing "make",it hints :
$ make
/bin/sh: ../vlc-config:No such file or directory
make:*** No rule to make target ' .. /configure.ac',needed by 'Makefile.in'.Stop.

Please help me !
Could I need rewrite the "Makefile" or samething wrong during my installation of cygwin?
Please ,give me some suggestions.


Thanks !
Best Regards!

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 13 Feb 2007 13:23

Based on the impression of your question, I assume you are a young unexperienced person/programmer?
NOT to insult you, though.

You would obviously need some more information about the 'make' process.
'make' requires a 'configure' parameter file.
No 'configure' > no 'make' > no result.
The 'make' utility is based on some more prereqisits,
as there be 'Makefile', 'Makefile.am', 'Makefile.in' .... such things
These in turn are generated by some other utilities like 'automake'.....
That is a hell of 'confusion', which you obviously can not resolve with your current level of knowledge.
So, STAY WITH THE EXISTING CONFIGURATION.
DO NOT CHANGE ANYTHING, JUST DO IT.
DO NOT MOVE THINGS AROUND.

The source of activex has be put under the path :/home/administrator/activex .When enter the file ,I find an Makefile .Runing "make",it hints :
You simply do not listen.
FOLLOW THE INSTRUCTIONS, given in the *win32.
No one told you to move the sources around.
Or did you read it in the *win32 ?

FOLLOW THE INSTRUCTIONS STRICTLY.

Best luck - digi
btw: improve your english language a bit,
it wouldn't hurt. :)
It also helps a lot in reading the f... manuals
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 15 Feb 2007 04:14

Thank you very much!
I will follow your advice,though it's not a piece of cake to me.
Thanks again.

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 15 Feb 2007 11:43

will follow your advice, though it's not a piece of cake to me.
No one ever said so.
It took me a few weeks, because I did not follow the instructions either.
But be assured, that will change when you did the first compilation.

Again - good look, with vlan you picked a nice tool, really.
digi
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 07 Mar 2007 09:42

will follow your advice, though it's not a piece of cake to me.
No one ever said so.
It took me a few weeks, because I did not follow the instructions either.
But be assured, that will change when you did the first compilation.

Again - good look, with vlan you picked a nice tool, really.
digi
Hi digi,

Thank you for you kindheartedness !
I biult the whole vlc source code successfully under cygwin . But I didn't get what I wanted.
I feel like to put axvlc.dll in a CAB file through microsoft cabarc command. then I put the cab file under my web server. However,I find it work fine only if the plugins file being put under the \windows\system32 fold
Could samebody tells me how should I compile the vlc code ,in order to get an axvlc.dll that work fine without the plugins fold ?

Good luck

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 07 Mar 2007 12:16

Could samebody tells me how should I compile the vlc code ,in order to get an axvlc.dll that work fine without the plugins fold ?
That actually would not make much sense,
because the REAL functionality like converting the streams to audible/visible media is actually done in the plugins.
the axt...dll just are the frame(s) to select and trigger the correct plugin (this explanation is very rudimentary).
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Postby Jean-Baptiste Kempf » 07 Mar 2007 16:09

To compile the best way VLC, do as us: Use MingW32 under windows or under a linux box.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 08 Mar 2007 07:08

To compile the best way VLC, do as us: Use MingW32 under windows or under a linux box.
Hi,

My question is not the way of compileing vlc . I can build it under cygwin successfully and vlc.exe can work fine on my computer.

After I biult the vlc source ,I got two axvlc.dll. One is /vlc0.8.6/activex/axvlc.dll which is 5.8M .Another is /vlc0.8.6/vlc-0.8.6/activex/axvlc.dll which is only 1.8M. What is the difference between the two .dll?

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 08 Mar 2007 11:49

After I biult the vlc source ,I got two axvlc.dll. One is /vlc0.8.6/activex/axvlc.dll which is 5.8M .Another is /vlc0.8.6/vlc-0.8.6/activex/axvlc.dll which is only 1.8M. What is the difference between the two .dll?
One (the smaler one) is the executable for the 'normal' user application,
the bigger one contains an additional IDE interface to implement it in the Visual Studio as an 'object', similar to a ListBox, PushButton, ...
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 09 Mar 2007 08:24

One (the smaler one) is the executable for the 'normal' user application,
the bigger one contains an additional IDE interface to implement it in the Visual Studio as an 'object', similar to a ListBox, PushButton, ...
Thanks for your explanation!
In the vlc source code ,(./configure --help) I find a relative option
"--disable-plugins make all plugins built-in (default plugins enabled)"
Maybe I think if I enable the option ,I can get what I want.But unfortunately,I got so many errors when I run make command. :cry:
The outcome has dismayed me.

Good luck!

digizar
Blank Cone
Blank Cone
Posts: 19
Joined: 09 Oct 2006 14:09
VLC version: 0.8.2
Operating System: win, linux
Location: moved from NL to Germany, to Bad-Soden-Salmuenster, Spessart
Contact:

Postby digizar » 09 Mar 2007 13:49

ni hao, xiaobei
"--disable-plugins make all plugins built-in (default plugins enabled)"
Maybe I think if I enable the option ,I can get what I want.
It is the same as I would think,
but that seldom turned out to be working in the first step.
What I would suggest (even if that means 'defaults enabled'):
Mention every single plug in explicitely anyway,
how else would the tool know which plugins to implement.
You could do that in a batch file, where all your plugin names are mentioned.
See the description (example) in the win32 readme file.

And another thing is,
keep in mind that you have to run the './configure' first, before the 'make'.
You could include that in the mentioned batch file, too;
as the sample in the win32 readme schows.
Otherweise the make will not know what to look for.

Thirdly: Do not give up so soon
It took me several weeks! to just get that thing compiled.
The descriptions are somewhat 'unconventional'.
One has to follow them really literally letter by letter.

Usually the IT business is really boring;
if one can not stand it, one just has to pick another profession.
One must be able to perform 104%, everytine, anytime.
That business is also known as the one with the highest devorce rate.

zai jian - digi :)
Since 1962 in IT-Business -with the big BLUE IBMs-
(I am 67 now, still in business better than ever),
12 years experience of MS-V-Studio,
A few handful of years experience in Línux/Unix.
Lots of years of experience in microcontrollers.
See the personal website.

marcuschan
Blank Cone
Blank Cone
Posts: 54
Joined: 08 Jul 2006 16:31

Postby marcuschan » 30 Mar 2007 04:32

Hi ..

I am trying to prepare a vlc activeX for my project with following requirements in my mind .. any guideline and suggestion may share with me?

1. just for H264 stream receive and play - other codec not included to reduce the active size
2. easy and auto deploy - not a full vlc installation
3. plugin already built-in in my axvlc.dll - don't need extra plugins folder

Thanks,
marcus

xiaobei
Blank Cone
Blank Cone
Posts: 26
Joined: 01 Feb 2007 06:28
Contact:

Postby xiaobei » 16 Apr 2007 08:00

Hi ..


3. plugin already built-in in my axvlc.dll - don't need extra plugins folder

Thanks,
marcus
Hi marcuschan,
Did you built the vlc under cygwin ?
How did you built the vlc with plugin built-in the axvlc.dll?

thanks!
xiaobei


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 9 guests